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 |
Odd, it just doesn't work Tag: Undo |
||
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'); |
||
//<nowiki> |
|||
(function() { |
|||
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { |
|||
$(".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 |