User:Jameboy/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.
// install [[User:Cacycle/wikEd]] in-browser text editor
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript');   

// Persondata no longer used
//importScript('User:Dr pda/persondata.js'); //[[User:Dr pda/persondata.js]]    

// Twinkle anti-vandalism tool
importScript('User:AzaToth/twinkle.js');   

//Prosesize tool 
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]

// Add [[WP:Reflinks]] launcher in the toolbox on left 
$(function () {
mw.util.addPortletLink(  "p-tb",   // toolbox portlet  
"http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName')    
+ "?client=script&citeweb=on&overwrite=&limit=20&lang=" + mw.config.get('wgContentLanguage'),  
"Reflinks"  // link label 
)});

// Enhanced Random article, see [[WP:ERAN]]
// enhancedRandomArticle = {
//	patterns: [],
//	showDisambiguationPages: false,
//	showStubs: true
// };