Community Central
Community Central
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
'u:dev:TabKeyInserter/code.js',
 
'u:dev:TabKeyInserter/code.js',
 
//Re-enables user scripts (TabKeyInserter) on MediaWiki:Common.js and so on...
 
//Re-enables user scripts (TabKeyInserter) on MediaWiki:Common.js and so on...
'u:dev:UnsafeScripts/code.js'
+
'u:dev:UnsafeScripts/code.js',
  +
//Automatically append or prepend the same text on many pages that you can add by categories.
  +
'u:dev:AutoEditPages/code.js'
 
]
 
]
 
});
 
});
   
page_dark = dev.colors.wikia.page;
 
   
 
// Skin Switch Button: Monobook (Wikipedia) <-> Oasis (Wikia) <-> wikiamobile
 
// Skin Switch Button: Monobook (Wikipedia) <-> Oasis (Wikia) <-> wikiamobile

Latest revision as of 00:01, 24 November 2014

//The importArticles statement is designed to combine multiple HTTP requests into a single data transfer, allowing multiple scripts to load and execute faster. 
importArticles({	
    type: 'script',
    articles: [
    //HeaderLinks adds an icon to header tags. When these icons are clicked, the URL (on address bar) is altered to target that header.
        'u:dev:HeaderLinks/code.js',
    //PurgeButton adds a "Refresh" option to page controls.
        'u:dev:PurgeButton/code.js',
    //Enables usage of <tab> key on code pages (.js/.css)
        'u:dev:TabKeyInserter/code.js',
    //Re-enables user scripts (TabKeyInserter) on MediaWiki:Common.js and so on...
        'u:dev:UnsafeScripts/code.js',
    //Automatically append or prepend the same text on many pages that you can add by categories. 
        'u:dev:AutoEditPages/code.js'
    ]
});


// Skin Switch Button: Monobook (Wikipedia) <-> Oasis (Wikia) <-> wikiamobile
$( function () {
	if ( !document.getElementById( 'ca-skins' ) ) {
		if ( skin === 'oasis' || skin === 'wikia' ) {
			$( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=monobook">Monobook</a></li>' ).appendTo( '#WikiaBarWrapper > div.wikia-bar > div.toolbar > ul.tools' ); //#AccountNavigation
			$( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">Mobile</a></li>' ).appendTo( '#WikiaBarWrapper > div.wikia-bar > div.toolbar > ul.tools');
		} else {
			$( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikia">Oasis</a></li>' ).appendTo( '#p-cactions > .pBody > ul' ); $( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">Mobile</a></li>' ).appendTo( '#p-cactions > .pBody > ul' );
		} 
	}
} );