Jump to content

User:Perryprog/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Perryprog (talk | contribs) at 18:27, 18 January 2021 (Change autoEd URL to be action=submit). 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.
// Backlink: [[User:Mr. Stradivarius/gadgets/ConfirmRollback.js]]
importScript('User:Mr. Stradivarius/gadgets/ConfirmRollback.js');
ConfirmRollback = "confirm";

importScript('User:Enterprisey/reply-link.js'); // Backlink: [[User:Enterprisey/reply-link.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:SD0001/deleted-metadata-link.js'); // Backlink: [[User:SD0001/deleted-metadata-link.js]] (this script should really not work...)
importScript('Wikipedia:AutoEd/complete.js'); // Backlink: [[Wikipedia:AutoEd/complete.js]]

// AutoEd fixes for 2017 source editor:
if (document.getElementById('ca-AutoEdit')) {
    const autoEdURL = mw.util.getUrl(mw.config.get('wgPageName'), {action: 'submit', AutoEd: 'true'});
    $('#ca-AutoEd > a')[0].href = autoEdURL;
}