User:Bencherlite/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:Bencherlite/monobook.css. |
function addUnwatch() { //adds 'unwatch' links in watchlist
if (window.location.href.indexOf("Special:Watchlist")!=-1) {
//correct page, so retrieve watchlist items
var items=document.getElementById('bodyContent').getElementsByTagName('li');
for (var i=0;i<items.length;i++) {
//what is the title of this page?
pagename=items[i].getElementsByTagName('a')[0].title;
//create 'unwatch' element
unwatchelt=document.createElement('a');
unwatchelt.setAttribute('href','/w/index.php?title='+pagename+'&action=unwatch');
unwatchelt.setAttribute('title','Unwatch '+pagename);
unwatchelt.appendChild(document.createTextNode('(unwatch)'));
//add the 'unwatch' element
items[i].appendChild(unwatchelt);
}
}
}
// CSD AutoReason
importScript('User:AuburnPilot/csd.js');
importScript('User:The wub/CloseCFD.js');
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
importScript('User:TheDJ/Gadget-HotCat.js');
showbydefault = true;
importScript('User:Splarka/dabfinder.js');
importScript('User:Cameltrader/Advisor.js');
importScript('User:Smith609/toolbox.js');
importScript('User:Plastikspork/monobook.js/script.js');
importScript('User:Ameliorate!/dykeasymode.js'); // [[User:Ameliorate!/dykeasymode.js]]
importScript("User:GregU/dashes.js");
// [[User:Krimpet/CH2.js]]
importScript('User:Krimpet/CH2.js');
importScript('User:Anomie/util.js');
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
importScript('user:js/watchlist.js');
importScript('User:Doug/closemfd.js');
importScript('User:Splarka/ajaxbatchdelete.js');
///////////////////////////////////////////////////
// START I want my Orange Bar //
///////////////////////////////////////////////////
importScript('User:Writ Keeper/Scripts/orangeBar.js'); // Linkback: [[User:Writ Keeper/Scripts/orangeBar.js]]
///////////////////////////////////////////////////
// END I want my Orange Bar //
///////////////////////////////////////////////////