User:WindStar7125/wikia.js

(function ($) {	if (({Recentchanges: 1, WikiActivity: 1}) [mw.config.get('wgCanonicalSpecialPageName')] === 1) {			var forumhack = function {			$("#mw-content-text a").each(function  { if (/Did sasuke recieve any cells from hashirama? The prosthetic arm i suppose?/.test($(this).text)) $(this).closest("li").remove; });		};		$(forumhack);		window.ajaxCallAgain = window.ajaxCallAgain || [];		window.ajaxCallAgain.push(forumhack);	} }(jQuery));

// Default options that won't change. var myUserName = mw.config.get('wgUserName');

(function (window, $, mw) {       "use strict";        // This adds an attribute to make linking the reply box easier...        $("li.new-reply").attr("id","replybox");

// 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'); }       // 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); });       });

// Add a notice on Special:Forum $("section#Forum > a.policies-link").first.before("" + " Welcome to the Narutopedia Community Forums! This is where you can discuss the series and the wiki itself. " + "Before contributing to the forums, please read our forum policies: they are simple to understand. You can find them by clicking the button to the right. " + " Please note that the wiki's general policies apply at all times, such as the Image Policy. " + "Any moderator requests should be directed to the Requests page. " + " Failure to heed our policies will result in written warnings, followed by wiki blocks if repeatedly ignored. " + " "); // Some forum cleanup. $(".blurb p").last.append($(".policies-link")); $(".policies-link").after($(".admin-link")).text("Forum Policy"); $(".admin-link").attr("style","margin: 10px;").text("Manage"); $("a:contains('Old forum Archives')").remove; // Menu links. mw.util.addPortletLink("AccountNavigation", "/wiki/User:"+myUserName+"/DPL", "DPL", "p-dpl"); mw.util.addPortletLink("AccountNavigation", "/wiki/Special:UserRights", "Manage Rights", "p-userrights"); }(window, jQuery, mediaWiki));

(function (window, $, mw) {	"use strict";       // Adds a banner linking the requests page (only on Thread page)        if(mw.config.get('wgNamespaceNumber') === 1201) {             $("li.SpeechBubble").first.before(' It is strongly recommended that the forum policy be read before contributing to the forums. Also, do NOT upload images specifically for use in the forums. For any assistance, request action from a forum moderator by going to the Requests page. ');       } }(window, jQuery, mediaWiki));