User:AndyZ/monobook.js

From Wikipedia, the free encyclopedia

If a message on your talk page led you here, please be wary of who left it. Code that you insert on this page could contain malicious content capable of compromising your account. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. If this is a .js page, the code will be executed when previewing the page.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
// <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]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:AndyZ/peerreviewer.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
// ******************** //          
// 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]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></s'+'cript>');
 
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]]]]
-----*/