User:Justarandomamerican/common.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary Tags: Reverted Mobile edit Mobile web edit |
Installing User:Infinityboy7/unblock-review.js (script-installer) Tag: Reverted |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
importScript('User:MacFan4000/findInactiveSysops.js'); // Backlink: [[User:MacFan4000/findInactiveSysops.js]] |
importScript('User:MacFan4000/findInactiveSysops.js'); // Backlink: [[User:MacFan4000/findInactiveSysops.js]] |
||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AJoeytje50%2FJWB.js%2Fload.js&action=raw&ctype=text/javascript'); |
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AJoeytje50%2FJWB.js%2Fload.js&action=raw&ctype=text/javascript'); |
||
importScript('User:Euphoria/massBlock.js'); // Backlink: [[User:Euphoria/massBlock.js]] |
|||
//<nowiki> |
|||
importScript('User:DodoMan/abusefilter.js'); // Backlink: [[User:DodoMan/abusefilter.js]] |
|||
(function() { |
|||
importScript('User:Infinityboy7/confirmationRollback-mobile.js'); // Backlink: [[User:Infinityboy7/confirmationRollback-mobile.js]] |
|||
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { |
|||
importScript('User:Infinityboy7/unblock-review.js'); // Backlink: [[User:Infinityboy7/unblock-review.js]] |
|||
$(".mw-rollback-link").on('click', function(e) { |
|||
var linkText = $(e.target).text(), |
|||
count = linkText.match(/\d/) ? linkText.match(/\d+/)[0] : null, |
|||
message = 'Rollback ' + (count ? count + ' edits' : 'edit') + ' by ' + mw.util.getParamValue('from',e.target.href) + '?'; |
|||
if(!confirm(message)) return e.preventDefault(); |
|||
}); |
|||
} |
|||
}()); |
|||
//</nowiki> |
|||
//From enwiki, see the page history of https://en.m.wikipedia.org/wiki/MediaWiki:Gadget-confirmationRollback-mobile.js for attribution. CC-BY-SA-4 |
Revision as of 20:54, 25 June 2024
importScript('User:MacFan4000/findInactiveSysops.js'); // Backlink: [[User:MacFan4000/findInactiveSysops.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AJoeytje50%2FJWB.js%2Fload.js&action=raw&ctype=text/javascript');
importScript('User:Euphoria/massBlock.js'); // Backlink: [[User:Euphoria/massBlock.js]]
importScript('User:DodoMan/abusefilter.js'); // Backlink: [[User:DodoMan/abusefilter.js]]
importScript('User:Infinityboy7/confirmationRollback-mobile.js'); // Backlink: [[User:Infinityboy7/confirmationRollback-mobile.js]]
importScript('User:Infinityboy7/unblock-review.js'); // Backlink: [[User:Infinityboy7/unblock-review.js]]