Jump to content

User:Can I Log In/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Can I Log In (talk | contribs) at 03:03, 13 June 2020 (Only rollback in recent changes). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
//Answer Edit Request
importScript('User:Awesome Aasim/editrequest.js'); // Backlink: [[User:Awesome Aasim/editrequest.js]]
//Duplicate Links
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
//Edit Protected Helper
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
//Edit War Checker
importScript('User:Evad37/EditWarChecker.js'); // Backlink: [[User:Evad37/EditWarChecker.js]]
EWC_hours = 72;
//More Menu English Wikipedia Extension
mw.loader.using(['mediawiki.util', 'mediawiki.api'], function () {
	mw.loader.load('https://en.wikipedia.org/w/?title=MediaWiki:Gadget-MoreMenu.enwiki.js&action=raw&ctype=text/javascript');
});
//Move To Draft
importScript('User:Ais523/votesymbols.js'); // Backlink: [[User:Ais523/votesymbols.js]]
//Rater
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]
//RedWarn (here for statistics purposes only since I'm crazy for putting it on [[meta:User:Can I Log In/global.js]]
//importScript('User:Ed6767/redwarn.js'); // [[User:Ed6767/redwarn.js]]
//Sandbox
importScript('User:Can I Log In/sandbox.js'); // Backlink: [[User:Can I Log In/sandbox.js]]
//Stub Search
importScript( 'User:Danski454/stubsearch.js' ); // Backlink: [[User:Danski454/stubsearch.js]]
//Vote Symbols
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
//Apparently this is supposed to show TW rollback in [[Special:RecentChanges]]
if (Twinkle.getPref('showRollbackLinks').indexOf('recent') !== -1) {
        specialPageWhitelist = specialPageWhitelist.concat([ 'Recentchanges', Recentchangeslinked' ]);
//Doing it with generic rollback
if(mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' || mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Contributions'){
    $('span.mw-rollback-link').remove();
}