User:Maralia/monobook.js

From Wikipedia, the free encyclopedia

If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure whether the code is safe, you can ask at the appropriate village pump.
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.
importScript('User:Dr pda/articlehistory.js'); //[[User:Dr pda/articlehistory.js]]
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
importScript('User:Dr pda/editrefs.js'); //[[User:Dr pda/editrefs.js]]
importScript('User:Dr_pda/templatecheck.js'); //[[User:Dr_pda/templatecheck.js]]
importScript('User:Tra/sidebartranslate.js'); //[[User:Tra/sidebartranslate.js]]
 
// [[User:Lupin/popups.js]]
 
importScript('User:Lupin/popups.js');
popupimages=false;
popupDelay=1;
popupHideDelay=.25;
popupLastEditLink=false;
popupSummaryData=false;
popupLastModified=false;
 
 
 
// install [[User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');
 
importScript('Wikipedia:WikiProject User scripts/Scripts/Add edit section 0');
importScript('Wikipedia:WikiProject User scripts/Scripts/commentLocalize');
 
/**** welcome new user ****/
var welcome_msg = 'W-basic'
document.write('<script type="text/javascript"' +
'src="http://en.wikipedia.org/w/index.php?title=User:Nmajdan/welcome_newuser.js' +
'&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
importScript('User:Alex Smotrov/histcomb.js');
 
function catsattop() {
var cats = document.getElementById('catlinks');
var bc = document.getElementById('bodyContent');
bc.insertBefore(cats, bc.childNodes[0]);
}
 
 
 
function externISBN() {
 
var magicURL = "http://www.amazon.com/exec/obidos/ASIN/MAGICNUMBER";
 
var magicRegex = /MAGICNUMBER/ig;
if(wgPageName != "Special:Booksources" && wgPageName != "Wikipedia:Book_sources"){
for (var i = 0; i < document.links.length; i++) {       
if( document.links[i].href.match(/isbn=(.*)/) ) {
document.links[i].href=magicURL.replace(magicRegex, RegExp.$1);
}
}
}
}
 
addOnloadHook(externISBN);