User:PB2008/common.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
mNo edit summary
m Restored revision 53060 by PB2008 (Restorer)
Tags: Undo Mobile edit Mobile web edit
 
(92 intermediate revisions by 3 users not shown)
Line 1: Line 1:
var whitelist = ["PB2008", "PB08-bot"];
mw.loader.load("//yue.uncyclopedia.info/index.php?title=User:SuperMario/js/mass-rollback.js\u0026action=raw\u0026ctype=text/javascript");
if (mw.config.get('wgUserName') && whitelist.indexOf(mw.config.get('wgUserName')) === -1) {
mw.loader.load('//zh.wikipedia.org/w/index.php?title=User%3ABluedeck%2Fserve%2Fedit-conflict.js&action=raw&ctype=text/javascript');
alert("Please remove User:PB2008/common.js in your common.js! Unexpected errors may occured.");
importScript('User:JJBullet/findInactiveSysops.js'); // Backlink: [[User:JJBullet/findInactiveSysops.js]]
throw new Error();
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:Timotheus_Canens/massblock.js&action=raw&ctype=text/javascript');
// Undo / Rollback
mw.loader.load('//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');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:FR30799386/undo.js&action=raw&ctype=text/javascript');
// Mass js
mw.loader.load('//testwiki.wiki/index.php?title=User:MacFan4000/grantAdmin.js&action=raw&ctype=text/javascript');
importScript('User:DodoMan/smartpatrol.js'); // Backlink: [[User:DodoMan/smartpatrol.js]]
mw.loader.load('//zh.wikipedia.org/w/index.php?title=MediaWiki:Gadget-edit-count.js&action=raw&ctype=text/javascript' );
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Restorer.js&action=raw&ctype=text/javascript');
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Smart_patrol.js&action=raw&ctype=text/javascript');
mw.loader.load('//zh.wikipedia.org/w/index.php?title=MediaWiki:Gadget-CommentsinLocalTime.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');
LocalComments = {
// Inactive sysops
dateDifference: true,
importScript('User:JJBullet/findInactiveSysops.js'); // Backlink: [[User:JJBullet/findInactiveSysops.js]]
timeFirst: true,
// Script installer
twentyFourHours: true,
// Edit count
dayOfWeek: true,
//importScript('User:PB2008/editcount.js'); // Backlink: [[User:PB2008/editcount.js]]
disablePages: function(){ return false; }
importScript('User:PB2008/script-installer.js'); // Backlink: [[User:PB2008/script-installer.js]]
};
// TW
mw.loader.load('//cdn.jsdelivr.net/npm/wikiplus-core@latest/dist/Main.js');
mw.loader.load('https://cdn.jsdelivr.net/npm/wikiplus-highlight');
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadegt-Twinkle.js&action=raw&ctype=text/javascript');
// Mark admins
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');
importScript('User:PB2008/markadmins/tw.js'); // Backlink: [[User:PB2008/markadmins/tw.js]]
// Edit count
(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'));
// InPageEdit
mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit');
mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit');
/** InPageEdit Settings */
/** InPageEdit 偏好設定 */
;(window.InPageEdit = window.InPageEdit || {}).myPreference = {
;(window.InPageEdit = window.InPageEdit || {}).myPreference = {
"doNotCollectMyInfo": false,
"doNotCollectMyInfo": false,
Line 29: Line 39:
"outSideClose": true,
"outSideClose": true,
"watchList": "watch",
"watchList": "watch",
"noConfirmEdit": false,
"noConfirmEdit": true,
"plugins": [
"plugins": [
"toolbox.js",
"toolbox.js",

Latest revision as of 09:32, 13 November 2024

var whitelist = ["PB2008", "PB08-bot"];
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('//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]]
// TW
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadegt-Twinkle.js&action=raw&ctype=text/javascript');
// Mark admins
importScript('User:PB2008/markadmins/tw.js'); // Backlink: [[User:PB2008/markadmins/tw.js]]
// Edit count
(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'));
// InPageEdit
mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit');
/** InPageEdit 偏好設定 */
;(window.InPageEdit = window.InPageEdit || {}).myPreference = {
  "doNotCollectMyInfo": false,
  "editMinor": true,
  "editSummary": "$section // InPageEdit",
  "lockToolBox": false,
  "redLinkQuickEdit": true,
  "outSideClose": true,
  "watchList": "watch",
  "noConfirmEdit": true,
  "plugins": [
    "toolbox.js",
    "wiki-editor.js",
    "edit-any-page.js",
    "quick-thank.js",
    "demo.js",
    "language-pack_demo.js",
    "fix-double-entrance.js",
    "color-preview.js",
    "code-mirror/script.js"
  ]
};