User:DrLee lihr/common.js

//Forked from User:Dianliang233/common.js /** Dianliang233 common.js **/ /**    CC BY-NC-SA 4.0    **/ // MASSIVE "Thank you" to Jsdelivr.net for the nice CDN and Github for Script Storage //

// InPageEdit-v2 mw.loader.load("https://cdn.jsdelivr.net/gh/dragon-fish/inpageedit-v2@master/script.js");

// JavaScriptWikiBrowser mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/JWB/load.js");

// PreviewTab //// CSS $("head").first.append(''); //// JS mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/PreviewTab/PreviewTab.js");

// Popups mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/Popups.js"); //// Popups Config window.popupStructure = "menus";

// RevisionPatrol //// CSS $("head").first.append(''); //// JS mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/RevisionPatrol/RevisionPatrol.js");

// Editcounter mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/EditCounter.js");

// SpriteEditor mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/SpriteEditor/Load.js");

// DocTabs if ($.inArray(mw.config.get("wgNamespaceNumber"), [ 10, 11, 828, 829 ]) > -1 || $.inArray(mw.config.get("wgNamespaceNumber"), [ 2, 3 ]) > -1 && mw.config.get("wgTitle").replace(/\/doc$/, "").search(/\.(js|css)$/) > -1) { mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/DocTabs.js"); }

// HotCat mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/HotCat.js");

// SchnarkSyntaxHighlight mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/SchnarkSyntaxHighlight.js");

// Clear move/delete reason document.getElementById("wpReason").value = "";

// Smart Rollback mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/SmartRollback.js"); //// Config if (typeof smartRollbackConfig === "undefined") smartRollbackConfig = {}; smartRollbackConfig.editSummaries = {}; smartRollbackConfig.editSummaries[0] = "[SmartRollback] 破坏"; smartRollbackConfig.editSummaries[1] = "[SmartRollback] 错误信息"; smartRollbackConfig.editSummaries[2] = "//revert via SmartRollback"; //EndFork