User:AndyZ/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:AndyZ/monobook.css. |
// <pre><nowiki>
// To use the PR script,
// add {{subst:js|User:AndyZ/peerreviewer.js}} to your own /monobook.js
// to generate the following:
// </nowiki>
// Script from [[User:AndyZ/peerreviewer.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:AndyZ/peerreviewer.js'
+ '&action=raw&ctype=text/javascript');
// ******************** //
// configurable options //
// for the PR script //
// ******************** // please see [[User:AndyZ/peerreviewer]] for more details
allSpaces_PR = true; //use link on all namespaces
select_PR = true; //select text upon opening
toolbarLink_PR = true; //creates link in normal mode also (instead of just edit mode)
spellcheck_PR = true; //simple [[WP:SPELL|spell-checker]]
//defunct variable: noSendTo_PR = true;
// ******************* //
// rest of monobook.js //
// ******************* //
// ******************* // [[WP:POPUP]]
// Script from [[User:Lupin/popups.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript');
popupAdminLinks = true; //for administrators
// ******************* //
// Other scripts //
// not currently used //
// ******************* //
var JSlist = new Array(
// 'User:Bobblewik/monobook.js/dates.js', //Bobblewik's formatting scripts
// 'User:Bobblewik/monobook.js/unitformatter.js',
// 'User:Bobblewik/monobook.js/units_nbsp.js',
// 'User:AndyZ/monobook.js/footnotehelper.js', //un-updated script, no longer maintained
//if you are copying this directly, please remove this script
//personal usage only, see [[User:AndyZ/monobook.js/personalredirect.js]]
'User:AndyZ/personalredirect.js',
'User:Gimmetrow/fixRefs.js',
'User:Mecu/imagevio.js',
'END JS SCRIPTS'
);
for(i = 0; i < JSlist.length - 1; i++){
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=' + JSlist[i]
+ '&action=raw&ctype=text/javascript&dontcountme=s"></s'+'cript>');
}
// ******************* //
// END FILE</pre>
//Incorporates:
/*-----
*[[User:AndyZ/peerreviewer.js]]
*[[User:Lupin/popups.js]]
*[[User:Mecu/imagevio.js]]
*[[User:AndyZ/personalredirect.js]]
*[[User:Gimmetrow/fixRefs.js]]]]
-----*/