User:Mike Christie/vector.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.
//importScript('User:Technical 13/Scripts/Gadget-veditLinks.js');//Backlink [[User:Technical 13/Scripts/Gadget-veditLinks]]
//importScript('User:Lingzhi2/reviewsourcecheck-sb.js'); // Ling's source review script

function addLink(where, url, name, id, title, key, after) {
// addLink() accepts either an id or a DOM node, mw.util.addPortletLink() only takes a node
if (after && !after.cloneNode)
after = document.getElementById(after);
 
return mw.util.addPortletLink(where, url, name, id, title, key, after);
}
//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
+ '&action=raw&ctype=text/javascript'); }
 
// Remove rollback on iPhone:
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)) {
   var styleEle = document.getElementsByTagName("head")[0].appendChild(document.createElement("style"))
   styleEle.sheet.insertRule(".mw-rollback-link { display: none; }", 0);
}

// Colour dablinks etc.
importScript('User:Anomie/util.js')
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]

// Comment out Omegatron for now
// importScript('User:Omegatron/monobook.js/addlink.js'); //[[User:Omegatron/monobook.js/addlink.js]]

importScript('User:Dr_pda/editrefs.js'); //[[User:Dr_pda/editrefs.js]]
 
importScript('User:Gary King/nominations viewer.js'); // [[Wikipedia:Nominations Viewer]]
importScript('User:Gary King/reviewer summary.js'); // [[Wikipedia:Reviewer Summary]]