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

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

// Changes "aka" sections on User pages //// Aura $('h2:contains("IAmThePrincessOfHoshidoNohrandValla")') .closest("h2") .css("font-size", "0px"); $("hgroup").toggleClass('removecontent'); $('.removecontent').each(function {        if ($('h2:contains("IAmThePrincessOfHoshidoNohrandValla")')) {            $('h2:contains("IAmThePrincessOfHoshidoNohrandValla")').toggleClass('aura');        } }); //// Stryzzar $('h2:contains("Stry")') .closest("h2") .css("font-size", "0px"); $("hgroup").toggleClass('add'); $('.add').each(function {        if ($('h2:contains("Stry")')) {            $('h2:contains("Stry")').toggleClass('stryzzar');        } }); /* $("h1:contains('Aurathegrojfan14')").text("Marlee"); */