User:Lofty abyss/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:Lofty abyss/monobook.css. |
//Detect IE5.5+
//if (navigator.appVersion.indexOf("MSIE")==-1)
//{
//importScript('User:DerHexer/revert.js');
//importScript('User:Lupin/popups.js');
importScript('User:Animum/easyblock.js');
//importScript('User:Animum/revdelete.js');
importScript('User:Animum/massdelete.js');
//importScript('User:Animum/count.js');
importScript('User:Animum/watchlistUpdate.js');
var updateSeconds = 1;
importScript('User:Voice of All/History/monobook.js');
//importScript('User:Ais523/watchlistnotifier.js');
importScript('User:John254/mass rollback.js');
importScript('User:Haza-w/cactions.js'); //[[User:Haza-w/cactions.js]]
var cactions = {
itabs: false,
svars: Array(
['SD', mw.config.get('wgScript')+'?title=Category:Candidates_for_speedy_deletion#Pages_in_category'],
['AIV', mw.config.get('wgScript')+'?title=Wikipedia:Administrator_intervention_against_vandalism&action=history'],
['UAA', mw.config.get('wgScript')+'?title=Wikipedia:Usernames_for_administrator_attention&action=history'],
['User', mw.config.get('wgScript')+'?title=User:Mentifisto/noisulcsnart_rof_egapresU&action=edit'],
['WP', mw.config.get('wgScript')+'?title=User:Mentifisto/WP'],
['PI', mw.config.get('wgScript')+'?title=User:Mentifisto/PrefixIndex'],
['Links', mw.config.get('wgScript')+'?title=User:Mentifisto/Links'],
['Mono js', mw.config.get('wgScript')+'?title=User:Mentifisto/monobook.js&action=edit']
)
};
WatchlistConfig = { ignorePages: [
'Wikipedia talk:Administrator intervention against vandalism',
'Wikipedia talk:Requests for adminship',
], };
importScript('User:Gary King/hide pages in watchlist.js');
showbydefault = true;
importScript('User:Mr.Z-man/patrollinks.js');
importScript('User:Splarka/stalkcontribs.js');
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
npp_refresh = 2;
//importScript('User:TheJosh/Scripts/NewUserPatrol.js');
//nup_refresh = 3;
//importScript('User:TheJosh/Scripts/RecentChangesPatrol.js');
//rcp_refresh = 3;
importScript('User:Cameltrader/Advisor.js');
//importScript('Wikipedia:WikiProject User scripts/Scripts/Formatter');
//importScript('User:TheDJ/Gadget-HotCat.js');
//importScript('Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs');
importScript('User:Ilmari Karonen/prefixindex.js');
importScript('User:Ilmari_Karonen/logslink.js');
importScript('User:Ilmari Karonen/searchnsmenu.js');
//importScript('User:Dr pda/prosesize.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
if (mw.config.get('wgCanonicalNamespace') != "Special") {
addOnloadHook(function () {
mw.util.addPortletLink("p-tb", "http://meta.wikimedia.org/w/index.php?title=Special:Log&type=rights&page=" + encodeURIComponent(mw.config.get('wgPageName')) + "@enwiki", "Rights logs", "pt-logs");
});
}
function lowercase_contrib_links() {
if(mw.config.get('wgCanonicalSpecialPageName') == 'Contributions' || mw.config.get('wgCanonicalSpecialPageName') == 'DeletedContributions') {
links = document.getElementById('contentSub').getElementsByTagName('a');
for(var i=1, len=links.length; i < len; i++) {
links[i].setAttribute('style', 'text-transform:lowercase');
}
}
}
$(lowercase_contrib_links);
if (mw.config.get('wgAction') == 'history') //add a link to call histComb.js
$(function(){
var pagehis = document.getElementById('pagehistory');
if (!pagehis) return;
var lnk = document.createElement('a');
lnk.style.marginLeft = '10px';
lnk.href = '#';
lnk.appendChild(document.createTextNode('Improve…'));
lnk.onclick=function(){this.parentNode.removeChild(this);importScript('User:Alex_Smotrov/histcomb.js')};
pagehis.parentNode.insertBefore(lnk, pagehis);
});