User:JessR9/global.js

importArticles({   type: "script",    articles: [        'u:dev:ViewRemoved/code.js',        'u:dev:QuickThreads/code.js',        'u:dev:QuickDiff/code.js',        'u:dev:MessageBlock/code.js',        "u:dev:AnchoredRollback/code.js",        'u:dev:SkinSwitchButton/code.js',        'u:dev:PageRenameAuto-update/code.js',        'u:dev:AbuseLogRC.js',        'u:dev:DiscussionsFeed.js',        'u:dev:PageRenameAuto-update/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',    ] });

/** Magic editintros **************************************************** * * Description: Adds editintros on disambiguation pages and living person pages. * Wikipedia Maintainers: User:RockMFR * Modified by User:Grunny and User:Sikon for use in both Monobook and Monaco on Wikia * Added section edit functionality by User:Green tentacle * Fix for new edit button next to the title by User:Grunny * New Wikia skin support by Grunny */ function addEditIntro(name) { // Top link if( skin == 'oasis' ) { $('a[data-id="edit"]').attr('href',$('a[data-id="edit"]').attr('href') + '&editintro=' + name); $('span.editsection > a').each( function {			$(this).attr('href',$(this).attr('href') + '&editintro=' + name);		} ); } else { var el = document.getElementById('ca-edit'); if( typeof(el.href) == 'undefined' ) { el = el.getElementsByTagName('a')[0]; }		if( el ) { el.href += '&editintro=' + name; }		// Section links var spans = document.getElementsByTagName('span'); for ( var i = 0; i < spans.length; i++ ) { el = null; if ( spans[i].className == 'editsection' ) { el = spans[i].getElementsByTagName('a')[0]; if (el) el.href += '&editintro=' + name; } else if ( spans[i].className == 'editsection-upper' ) { el = spans[i].getElementsByTagName('a')[0]; if( el ) { el.href += '&editintro=' + name; }			}		}	} } if (wgNamespaceNumber === 0) { jQuery( function( $ ) {		var cats = document.getElementById('mw-normal-catlinks');		if (!cats)			return;		cats = cats.getElementsByTagName('a');		for (var i = 0; i < cats.length; i++) {			if (cats[i].title == 'Category:Canon articles with Legends counterparts') {				addEditIntro('Template:Canon_editintro');				break;			}			else if ( cats[i].title === 'Category:Legends articles with canon counterparts' ) {				addEditIntro( 'Template:Legends_editintro' );				break;			}		}	} ); } /* $("h1:contains('Aurathegrojfan14')").text("Marlee"); */

$("a[href='/wiki/Forum']").attr('href', '/wiki/Special:Forum');

$(".edited-by a[href='http://puppetsaga.wikia.com/wiki/Message_Wall:PuppetSagaBot']:not(.subtle)").text("Aurathegrojfan14"); $("img[src='http://static.wikia.nocookie.net/4b23a926-8401-48e8-aeb9-3546a083448b/scale-to-width-down/50']").attr('src', 'http://static.wikia.nocookie.net/74b33543-23a1-4a83-b327-ac6824539664/scale-to-width-down/50'); $("#notificationsEntryPoint").click(   function {        console.log("clicked...waiting...");

setTimeout(           function { $("#notificationsEntryPoint p").text(function  { return $(this).text.replace("PuppetSagaBot", "Aurathegrojfan14"); }); $("#notificationsEntryPoint p").text(function { return $(this).text.replace("PuppetSagaBot\'s", "Aurathegrojfan14\'s"); }); $("img[src='http://static.wikia.nocookie.net/4b23a926-8401-48e8-aeb9-3546a083448b/scale-to-width-down/50']").attr('src', 'http://static.wikia.nocookie.net/74b33543-23a1-4a83-b327-ac6824539664/scale-to-width-down/50'); var url = $(".unread").children("a").attr("href"); var index = url.lastIndexOf("#"); var hashId = url.substring(index + 1, url.length); $(".unread a[href*='" + url + "'] p").append($("").load(url + " #" + hashId + " p")).parentsUntil("ul").addClass("completed"); var url2 = $(".unread:not(.completed)").children("a").attr("href"); var index2 = url2.lastIndexOf("#"); var hashId2 = url2.substring(index2 + 1, url2.length); $(".unread:not(.completed) a[href*='" + url2 + "'] p").append($("").load(url2 + " #" + hashId2 + " p")).parentsUntil("ul").addClass("completed2"); var url3 = $(".unread:not(.completed2)").children("a").attr("href"); var index3 = url3.lastIndexOf("#"); var hashId3 = url3.substring(index3 + 1, url3.length); $(".unread:not(.completed2) a[href*='" + url3 + "'] p").append($("").load(url3 + " #" + hashId3 + " p")).parentsUntil("ul").addClass("completed3"); var url4 = $(".unread:not(.completed3)").children("a").attr("href"); var index4 = url4.lastIndexOf("#"); var hashId4 = url4.substring(index4 + 1, url4.length); $(".unread:not(.completed3) a[href*='" + url4+ "'] p").append($("").load(url4 + " #" + hashId4 + " p")).parentsUntil("ul").addClass("completed4"); var url5 = $(".unread:not(.completed4)").children("a").attr("href"); var index5 = url5.lastIndexOf("#"); var hashId5 = url5.substring(index5 + 1, url5.length); $(".unread:not(.completed4) a[href*='" + url5+ "'] p").append($("").load(url5 + " #" + hashId5 + " p")).parentsUntil("ul").addClass("completed5"); var url6 = $(".unread:not(.completed5)").children("a").attr("href"); var index6 = url5.lastIndexOf("#"); var hashId6 = url6.substring(index6 + 1, url5.length); $(".unread:not(.completed5) a[href*='" + url6+ "'] p").append($("").load(url6 + " #" + hashId6 + " p")); $(".this-is-quote").css("color","red"); $(".this-is-quote").nextUntil("time").hide; },           600);    }); $("a[href='http://puppetsaga.wikia.com/wiki/Message_Wall:PuppetSagaBot']").attr('href', 'http://puppetsaga.wikia.com/wiki/Message_Wall:Aurathegrojfan14'); $("title").text(function {    return $(this).text.replace("| Fandom powered by Wikia", "| Wikia"); });

function exredirect { window.location.href = document.getElementById("article").id; } if ($('#ExternalRedirect').length !== 0) { exredirect; }