User:PB2008/common.js

From Test Wiki
Revision as of 08:14, 3 February 2024 by PB2008 (talk | contribs) (Restored revision 35573 by PB2008 (Restorer))

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// Undo / Rollback
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/AutoUndo.js&action=raw&ctype=text/javascript' );
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:FR30799386/undo.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/Restorer.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gracenotes/rollback.js&action=raw&ctype=text/javascript');
// Mass js
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Smart_patrol.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Timotheus_Canens/massblock.js&action=raw&ctype=text/javascript');
mw.loader.load('//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Massblock.js&action=raw&ctype=text/javascript');
// Other
importScript('User:JJBullet/findInactiveSysops.js'); // Backlink: [[User:JJBullet/findInactiveSysops.js]]
importScript('User:PB2008/batchdelete.js'); // Backlink: [[User:PB2008/batchdelete.js]]
importScript('User:PB2008/OnlineAdmins.js'); // Backlink: [[User:PB2008/OnlineAdmins.js]]

// Editcount from [https://zh.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-edit-count.js&diff=66671837&oldid=49925631]
// Written by [[w:zh:User:AnYiLin]]
(function(editCount) {
	if (editCount !== null) mw.loader.addStyleTag('#pt-mycontris>a::after, .menu__item--userContributions>span>span::after, #mw-mf-page-left .menu__item--userContributions>span::after {content: " (' + editCount + ')"}')
})(mw.config.get('wgUserEditCount'));
//
importScript('User:PB2008/script-installer.js'); // Backlink: [[User:PB2008/script-installer.js]]