Jump to content

User:DESiegel/common.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
mw.util.addPortletLink('p-personal', mw.util.getUrl('User:DESiegel/Tools'), 'Tools', 'pt-DEStools', 'Go to User:DESiegel/Tools', null, '#pt-preferences');

// Add [[WP:Reflinks]] launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://dispenser.homenet.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
)});

importScript('User:PrimeHunter/My_subpages.js'); // Linkback: [[User:PrimeHunter/My subpages.js]]

// importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user

//importScript("User:Writ Keeper/Scripts/teahouseTalkback.js"); // Adds Talkback reminder when you save an edit at the Teahouse

importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js"); // Adds a talkback link to signatures on the Teahouse

importScript( 'User:The Earwig/copyvios.js'); // Add copyvio script ro left pane tools

importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool

// Add this to your common.js to use restore-a-lot (admins only, tested on a FFD page)
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/Restore-a-lot.js&action=raw&ctype=text/javascript');
	mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Cat-a-lot.css&action=raw&ctype=text/css', 'text/css');
});