User:Waggers/common.js

Source: 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.
// Add [[WP:Reflinks]] launcher in the toolbox on left
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).then(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://69.142.160.183/~dispenser/cgi-bin/reflinks.py?lang=" + mw.config.get('wgContentLanguage')
  + "&page=" + mw.config.get('wgPageName') + "&autoclick=wpPreview", // updated tool URL as of 27 December 2020
  "Reflinks"  // link label
)});


//WikEd. Added here rather than as a gadget so RegExTypoFixing can be enabled.
//wikEdRegExTypoFix = true;

var wikEdConfig = {};
wikEdConfig.regExTypoFix = true;


// 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');

importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]

//WagTools - production version
//importScript('User:Waggers/wagtools.js');

//WagTools - dev version
//importScript('User:Waggers/wagtools/dev.js');


importScript( 'User:Epicgenius/AWB script toolbar.js' );

/* User:MusikAnimal/responseHelper.js */

$("#pt-sandbox a").text("Sandpit").attr("href","/w/index.php?title=User:Waggers/sandpit&redirect=no");
$("#pt-sandbox a").text("DIR").attr("href","/w/index.php?title=User:Waggers/dir&redirect=no");
$("#pt-sandbox").after("<li id='pt-adash'><a href='/wiki/Template:Admin_dashboard'>Admin dashboard</a></li>");

importScript('User:Dr_pda/prosesize.js');

//popups config
window.popupAdminLinks = true;
window.popupFixDabs = true;


importScript('User:Evad37/OneClickArchiver.js');
importScript('User:Enterprisey/url-select-revdel.js'); // Backlink: [[User:Enterprisey/url-select-revdel.js]]
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]


/**
 * SWViewer
 * See [https://meta.wikimedia.org/wiki/SWViewer]
 * Authored by Tulsi Bhagat [https://meta.wikimedia.org/wiki/User:Tulsi_Bhagat]
 * Shortcut key [alt-shift-v]
 */
mw.loader.using( [ 'mediawiki.util' ], function() {
	"use strict";
	mw.util.addPortletLink(
	'p-tb',
	'//swviewer.toolforge.org/',
	'SWViewer',
	't-swviewer',
	'Launch SWViewer',
	'v',
	'#t-info'
);
});
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript');
importScript('User:DanCherek/UAABotRemover.js'); // Backlink: [[User:DanCherek/UAABotRemover.js]]
importScript('User:TheTVExpert/rmCloser.js'); // Backlink: [[User:TheTVExpert/rmCloser.js]]
importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/SpamUserPage.js]]
importScript('User:Ladsgroup/dashboard.js'); // Backlink: [[User:Ladsgroup/dashboard.js]]
importScript('User:Enterprisey/unblock-review.js'); // Backlink: [[User:Enterprisey/unblock-review.js]]
importScript('User:Theleekycauldron/DYK_promoter.js'); // Backlink: [[User:Theleekycauldron/DYK_promoter.js]]