User:PB2008/common.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
已經反轉到由PB2008嘅修定版本27630 Tag: Undo |
mNo edit summary |
||
(82 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
var whitelist = ["PB2008"]; |
|||
⚫ | |||
if (mw.config.get('wgUserName') && whitelist.indexOf(mw.config.get('wgUserName')) === -1) { |
|||
⚫ | |||
alert("Please remove User:PB2008/common.js in your common.js! Unexpected errors may occured."); |
|||
⚫ | |||
throw new Error(); |
|||
⚫ | |||
// 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('https://meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/AutoUndo.js&action=raw&ctype=text/javascript' ); |
||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User: |
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/Restorer.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('//meta.wikimedia.org/w/index.php?title=User:FR30799386/undo.js&action=raw&ctype=text/javascript'); |
||
// Mass js |
|||
⚫ | |||
⚫ | |||
mw.loader.load('//zh.wikipedia.org/w/index.php?title=MediaWiki:Gadget-edit-count.js&action=raw&ctype=text/javascript' ); |
|||
mw.loader.load(' |
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Smart_patrol.js&action=raw&ctype=text/javascript'); |
||
⚫ | |||
window.restorerSummary = 'Restored to version [[Special:Diff/$ID|$ID]] done by [[Special:Contributions/$USER|$USER]] ([[User talk:$USER|Talk]]) ([[wp:en:User:BrandonXLF/Restorer.js|Restorer by User:BrandonXLF (English Wikipedia)]])'; |
|||
mw.loader.load('// |
//mw.loader.load('//it.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Massblock.js&action=raw&ctype=text/javascript'); |
||
// Inactive sysops |
|||
LocalComments = { |
|||
⚫ | |||
dateDifference: true, |
|||
// Script installer |
|||
timeFirst: true, |
|||
// Edit count |
|||
twentyFourHours: true, |
|||
//importScript('User:PB2008/editcount.js'); // Backlink: [[User:PB2008/editcount.js]] |
|||
dayOfWeek: true, |
|||
//importScript('User:PB2008/script-installer.js'); // Backlink: [[User:PB2008/script-installer.js]] |
|||
disablePages: function(){ return false; } |
|||
importScript('User:ZhuofanWu/common.js'); // Backlink: [[User:ZhuofanWu/common.js]] |
|||
⚫ | |||
// TW |
|||
⚫ | |||
⚫ |
Revision as of 15:01, 14 May 2024
var whitelist = ["PB2008"];
if (mw.config.get('wgUserName') && whitelist.indexOf(mw.config.get('wgUserName')) === -1) {
alert("Please remove User:PB2008/common.js in your common.js! Unexpected errors may occured.");
throw new Error();
}
// 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('//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');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:FR30799386/undo.js&action=raw&ctype=text/javascript');
// Mass js
importScript('User:DodoMan/smartpatrol.js'); // Backlink: [[User:DodoMan/smartpatrol.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');
// Inactive sysops
importScript('User:JJBullet/findInactiveSysops.js'); // Backlink: [[User:JJBullet/findInactiveSysops.js]]
// Script installer
// Edit count
//importScript('User:PB2008/editcount.js'); // Backlink: [[User:PB2008/editcount.js]]
//importScript('User:PB2008/script-installer.js'); // Backlink: [[User:PB2008/script-installer.js]]
importScript('User:ZhuofanWu/common.js'); // Backlink: [[User:ZhuofanWu/common.js]]
// TW
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadegt-Twinkle.js&action=raw&ctype=text/javascript');