User:TheDireMaster/vector.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
importScript('User:NuclearWarfare/Mark-blocked script.js');
importScript("User:Nihiltres/nothingthree.js");
importScript('User:AzaToth/morebits.js');
importScript('User:Henrik/js/live-edit-counter.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:Alex Smotrov/histcomb.js')
importScript('User:Ale_jrb/Scripts/userhist.js'); //[[User:Ale_jrb/Scripts]]
importScript('Wikipedia:WikiProject User scripts/Scripts/TimeTraveller')
importScript('User:Lupin/recent2.js');
importScript('User:Ais523/topcontrib.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Six tabs');
importScript('User:Tra/sidebartranslate.js'); //[[User:Tra/sidebartranslate.js]]
importScript('User:Misza13/Scripts/View source');
importScript('MediaWiki:Gadget-markblocked.js');
importScript('User:Misza13/statusChanger.js');
//FastButtons 1.0 importScript('User:Macy/FastButtons.js');
var autolinkParseLink = false;
importScript('User:Lenore/autolink.js');importScript('User:John254/mass rollback.js');
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
importAnyScript('meta','wikimedia','User:Mike.lifeguard/sixTabs.js');
addOnloadHook(function() { elems = document.getElementsByClassName('editsection'); for (i = 0; i < elems.length; i++) elems[i].innerHTML = '[<a href="#top">top</a>] ' + elems[i].innerHTML; });
importScript('User:Henrik/js/automod.js');
function hidevfd(){
var divs = document.getElementsByTagName("div");
for(var x = 0; x < divs.length; ++x)
if(divs[x].className.indexOf("vfd") != -1)
divs[x].style.display = "none";
document.getElementById('footer').style.display = 'none';
}
function showvfd(){
var divs = document.getElementsByTagName("div");
for(var x = 0; x < divs.length; ++x)
if(divs[x].className.indexOf("vfd") != -1)
divs[x].style.display = "";
document.getElementById('footer').style.display = '';
}
function addlilink(tabs, url, name){
var na = document.createElement('a');
na.href = url;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.appendChild(na);
tabs.appendChild(li);
return li;
}
function vfdlinks(){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(document.title.indexOf("Wikipedia:Articles for deletion") == 0){
addlilink(tabs, 'javascript:hidevfd()', 'Hide');
addlilink(tabs, 'javascript:showvfd()', 'Show');
}
}
if (window.addEventListener) window.addEventListener("load",vfdlinks,false);
else if (window.attachEvent) window.attachEvent("onload",vfdlinks);
var cactions = { itabs: true, svars: [], tbusr: false, xmlhr: true };
importScript('User:Haza-w/interiot.js'); //[[User:Haza-w/interiot.js]]
// [[User:Dschwen/highlightredirects.js]] - please include this line document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// VIEW SOURCE
addOnloadHook(function () {
if (location.href.indexOf('viewsource=1') != -1) {
sl = document.getElementById('wpSummaryLabel'); sl.parentNode.removeChild(sl);
ed = document.getElementById('wpSummary').parentNode; ed.parentNode.removeChild(ed);
return;
}
editbutton = document.getElementById('ca-edit');
if (editbutton && location.href.indexOf('action=edit')==-1) {
editlink = editbutton.getElementsByTagName('a')[0].href + '&viewsource=1';
tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
na = document.createElement('a');
na.href = editlink; na.appendChild(document.createTextNode('view source'));
li = document.createElement('li'); li.id = 'ca-viewsource'; li.appendChild(na);
tabs.insertBefore(li,editbutton);
}
});
//
addOnloadHook(function () {
var rights_isAdmin = (wgUserGroups.toString().indexOf('sysop') != -1);
if (!rights_isAdmin)
return; //Restrict to admins.
if (wgNamespaceNumber != "2" && wgNamespaceNumber != "3")
return; // restrict to User and User talk
var title = wgTitle;
addPortletLink('p-tb', '/wiki/Special:Userrights/'+title,
'User rights', 't-userrights', 'User rights for "'+title+'"');
});