User:TheDireMaster/vector.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'); $(function { elems = document.getElementsByClassName('editsection'); for (i = 0; i < elems.length; i++)  elems[i].innerHTML = '[top] ' + 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(' ');

// VIEW SOURCE $(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);  } });

//

$(function {    var rights_isAdmin = (mw.config.get('wgUserGroups').toString.indexOf('sysop') != -1);    if (!rights_isAdmin)        return; //Restrict to admins.    if (mw.config.get('wgNamespaceNumber') != "2" && mw.config.get('wgNamespaceNumber') != "3")        return;  // restrict to User and User talk

var title = mw.config.get('wgTitle');

mw.util.addPortletLink('p-tb', '/wiki/Special:Userrights/'+title,                  'User rights', 't-userrights', 'User rights for "'+title+'"');

});