User:SuperSajuuk/wikia.js

(function (window, $, mw) {	"use strict";       // Add an "Edit Page" link on archives.        var page = wgTitle;        var pieces = page.search("Archive");        if(pieces > -1) {             $(".WikiaPageHeader h2 a").last.after('  |  Edit This Archive');        }

// Adds a banner linking the requests page (only on Thread page) if(mw.config.get('wgNamespaceNumber') === 1201) { $("li.SpeechBubble").first.before(' Is something going wrong in this topic and you need assistance? Request action from a forum moderator by clicking here: Requests page '); }

// Adds a quick "edit" button on talkpages (but not pages which have "Edit This Archive" on them) if(mw.config.get('wgNamespaceNumber') === 1 && pieces === -1) { $(".WikiaPageHeader nav.wikia-menu-button").before(' Edit		'); }

// Adds a "Go to Top" link at the bottom of the thread $("#WallTooltipMeta").before(' Go To Top ');

// For quicker removal of redlinks, hide .svg links from WantedPages if(mw.config.get('wgPageName') === "Special:WantedPages") { $("li:contains('.svg')").hide; }

// Redirect the popup uploader to Special:Upload $(window).load(function {              $("a.wikia-button.upphotos").click(function { setTimeout(function {                           window.location.href = "/wiki/Special:Upload";                      },2500); });       });

// Make infinite blocking easier... if(mw.config.get('wgPageName') === "Special:Block") { $("select#mw-input-wpExpiry option").last.before(' Infinite '); } }(window, jQuery, mediaWiki));