Jump to content

User:Lofty abyss/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//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);
});