User:Hersfold/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:Hersfold/monobook.css. |
// [[User:Lupin/popups.js]]
importScript('User:Lupin/popups.js');
popupOnEditSelection=false;
popupHideDelay=0;
popupRedlinkRemoval=true;
// [[User:Ais523/watchlistnotifier.js]] - secure server version
importScript('User:Hersfold/securewatchlistnotifier.js');
// [[User:Ais523/adminrights.js]]
importScript('User:Ais523/adminrights.js');
// Tweaking interface
// Tab name fixer (copied from User:Anomie/fix-tab-text.js, target content modified)
/* A simple javascript function to change the text in various tabs at the top of the
* page. Only tested with the monobook skin.
*/
$(function(){
var fix=function(id, text){
var el=document.getElementById(id);
if(!el) return;
for(el=el.firstChild; el && el.nodeName!='A'; el=el.nextSibling);
if(!el) return;
while(el.firstChild) el.removeChild(el.firstChild);
el.appendChild(document.createTextNode(text));
}
/* Add lines as necessary. Use the Firefox DOM inspector or some such to determine
* the appropriate IDs.
*/
fix('ca-delete', 'nuke this page');
fix('ca-addsection', '+');
});
//end tab name fixer
// One-click userrights [[User:Animum/userrights.js]]
importScript('User:Animum/userrights.js');
// New page patrol links
showbydefault = true;
importScript('User:Mr.Z-man/patrollinks.js');
// Highlight blocked users
importScript('User:NuclearWarfare/Mark-blocked script.js');
// Change background color if logged into secure server - thanks to [[User:TheDJ]]
if( wgServer.indexOf( "https://secure.wikimedia.org" ) == 0 ) {
importStylesheet( "User:Hersfold/secure.css" );
}
// AFC Helper
importScript('User:Timotheus Canens/afchelper4.js');