欢迎来到奇葩栖息地!欢迎加入Discord服务器:XfrfHCzfbW。请先至特殊:参数设置验证邮箱后再进行编辑。在特殊:参数设置挑选自己想要使用的小工具!不会编辑?请至这里学习Wikitext语法。
用户:SkyEye FAST/common.js
来自奇葩栖息地
//<nowiki>
// InPageEdit
window.InPageEdit = window.InPageEdit || {};
InPageEdit.myPreference = {
"editMinor": false,
"editSummary": "$section// Edit via InPageEdit",
"redLinkQuickEdit": true,
"outSideClose": false,
"watchList": true,
"plugins": [
"toolbox.js",
"edit-any-page.js",
"color-preview.js"
]
};
$(function() {
$('#ca-view').after(
$('<li>', {
id: 'ca-quick-edit',
class: 'collapsible'
}).append(
$('<span>').append(
$('<a>', {
href: 'javascript:void(0)'
})
.text('IPE')
.click(function() {
InPageEdit.edit({
page: mw.config.get('wgPageName'),
revision: mw.config.get('wgRevisionId')
});
})
)
)
);
});
// JavaScriptWikiBrowser
mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/JWB/load.js");
// PreviewTab
//// CSS
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/PreviewTab/PreviewTab.css" />');
//// JS
mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/PreviewTab/PreviewTab.js");
// RevisionPatrol
//// CSS
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/RevisionPatrol/RevisionPatrol.css" />');
//// 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: //minecraft.gamepedia.com/index.php?title=MediaWiki:Gadget-spriteEditLoader.js&action=raw&ctype=text/javascript');
mw.loader.load('https: //minecraft.gamepedia.com/index.php?title=MediaWiki:Gadget-spriteEdit.js&action=raw&ctype=text/javascript');
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://minecraft.gamepedia.com/index.php?title=MediaWiki:Gadget-spriteEdit.css&action=raw&ctype=text/css" />');
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://minecraft.gamepedia.com/index.php?title=MediaWiki:Gadget-spriteEditMCW.css&action=raw&ctype=text/css" />');
// Clear move/delete reason
document.getElementById("wpReason").value = "";
// WikiEditor Toolbar
mw.loader.load('https: //minecraft-zh.gamepedia.com/index.php?title=User:SteveZihang/edittools.js&action=raw&ctype=text/javascript');
// codeLinks
mw.loader.load("https://minecraft.gamepedia.com/index.php?title=User:Majr/codeLinks.js&action=raw&ctype=text/javascript");
// watchlist-log-localization
mw.loader.load("https://minecraft-zh.gamepedia.com/index.php?title=User:Dianliang233/js/watchlist-log-localization.js&action=raw&ctype=text/javascript");
// 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";
// 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");
}
//</nowiki>