No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
articles: [ |
articles: [ |
||
//HeaderLinks adds an icon to header tags. When these icons are clicked, the URL (on address bar) is altered to target that header. |
//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', |
+ | 'u:dev:HeaderLinks/code.js', |
//PurgeButton adds a "Refresh" option to page controls. |
//PurgeButton adds a "Refresh" option to page controls. |
||
− | 'u:dev:PurgeButton/code.js', |
+ | 'u:dev:PurgeButton/code.js', |
//Enables usage of <tab> key on code pages (.js/.css) |
//Enables usage of <tab> key on code pages (.js/.css) |
||
− | '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', |
+ | //Colors provides a list of the most important colors on the current page, |
||
+ | //and provides a bunch of functions for manipulating colors. |
||
+ | 'u:dev:Colors/code.js' |
||
] |
] |
||
}); |
}); |
Revision as of 21:01, 23 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',
//Colors provides a list of the most important colors on the current page,
//and provides a bunch of functions for manipulating colors.
'u:dev:Colors/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' );
}
}
} );