欢迎来到奇葩栖息地!欢迎加入Discord服务器:XfrfHCzfbW。请先至特殊:参数设置验证邮箱后再进行编辑。在特殊:参数设置挑选自己想要使用的小工具!不会编辑?请至这里学习Wikitext语法。
用户:SkyEye FAST/common.js:修订间差异
来自奇葩栖息地
添加的内容 删除的内容
SkyEye FAST(讨论 | 贡献) 小 (// Edit via InPageEdit) |
SkyEye FAST(讨论 | 贡献) (// Edit via InPageEdit) |
||
第1行: | 第1行: | ||
//<nowiki> |
//<nowiki> |
||
// InPageEdit |
// InPageEdit-v2 Config |
||
window.InPageEdit = window.InPageEdit || {}; |
window.InPageEdit = window.InPageEdit || {}; |
||
第41行: | 第40行: | ||
}); |
}); |
||
⚫ | |||
// JavaScriptWikiBrowser |
|||
mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/JWB/load.js"); |
|||
⚫ | |||
//// CSS |
//// CSS |
||
$("head").first().append('<link rel="stylesheet" type="text/css" href="https:// |
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://terraria.fandom.com/index.php?title=MediaWiki:Gadget-previewTab.css&action=raw&ctype=text/css" />'); |
||
//// JS |
//// JS |
||
mw.loader.load("https:// |
mw.loader.load("https://terraria.fandom.com/index.php?title=MediaWiki:Gadget-previewTab.js&action=raw&ctype=text/javascript"); |
||
⚫ | |||
window.popupStructure = "menus"; |
|||
// RevisionPatrol |
// RevisionPatrol |
||
//// CSS |
//// CSS |
||
$("head").first().append('<link rel="stylesheet" type="text/css" href="https:// |
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://minecraft.fandom.com/zh/index.php?title=MediaWiki:Gadget-revisionPatrol.css&action=raw&ctype=text/css" />'); |
||
//// JS |
//// JS |
||
mw.loader.load("https:// |
mw.loader.load("https://minecraft.fandom.com/zh/index.php?title=MediaWiki:Gadget-revisionPatrol.js&action=raw&ctype=text/javascript"); |
||
// Editcounter |
// Editcounter |
||
mw.loader.load("https:// |
mw.loader.load("https://minecraft.fandom.com/zh/index.php?title=User:Powup333/editcounter.js&action=raw&ctype=text/javascript"); |
||
//// HotCat Config |
|||
// SpriteEditor |
|||
window.hotcat_translations_from_commons = true; |
|||
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 |
// Clear move/delete reason |
||
第69行: | 第65行: | ||
// WikiEditor Toolbar |
// WikiEditor Toolbar |
||
mw.loader.load('https: //minecraft |
mw.loader.load('https: //minecraft.fandom.com/zh/index.php?title=User:SteveZihang/edittools.js&action=raw&ctype=text/javascript'); |
||
// codeLinks |
// codeLinks |
||
mw.loader.load("https://minecraft. |
mw.loader.load("https://minecraft.fandom.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"); |
|||
⚫ | |||
if (typeof smartRollbackConfig === "undefined") smartRollbackConfig = {}; |
|||
smartRollbackConfig.editSummaries = {}; |
|||
smartRollbackConfig.editSummaries[ |
|||
0 |
|||
] = "[SmartRollback] 破坏"; |
|||
smartRollbackConfig.editSummaries[ |
|||
1 |
|||
] = "[SmartRollback] 错误信息"; |
|||
smartRollbackConfig.editSummaries[ |
|||
2 |
|||
] = "//revert via SmartRollback"; |
|||
// DocTabs |
// DocTabs |
||
if ($.inArray(mw.config.get("wgNamespaceNumber"), [ |
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) { |
||
importScript("User:Dianliang233/js/docTabs.js"); |
|||
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"); |
|||
} |
} |
||
2021年8月26日 (四) 05:14的版本
//<nowiki>
// InPageEdit-v2 Config
window.InPageEdit = window.InPageEdit || {};
InPageEdit.myPreference = {
"editMinor": false,
"editSummary": "$section// Edit via InPageEdit",
"redLinkQuickEdit": true,
"outSideClose": false,
"watchList": false,
"plugins": [
"toolbox.js",
"edit-any-page.js",
"color-preview.js",
"quick-thank.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')
});
})
)
)
);
});
// PreviewTab form Terraria Wiki
//// CSS
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://terraria.fandom.com/index.php?title=MediaWiki:Gadget-previewTab.css&action=raw&ctype=text/css" />');
//// JS
mw.loader.load("https://terraria.fandom.com/index.php?title=MediaWiki:Gadget-previewTab.js&action=raw&ctype=text/javascript");
//// Popups Config
window.popupStructure = "menus";
// RevisionPatrol
//// CSS
$("head").first().append('<link rel="stylesheet" type="text/css" href="https://minecraft.fandom.com/zh/index.php?title=MediaWiki:Gadget-revisionPatrol.css&action=raw&ctype=text/css" />');
//// JS
mw.loader.load("https://minecraft.fandom.com/zh/index.php?title=MediaWiki:Gadget-revisionPatrol.js&action=raw&ctype=text/javascript");
// Editcounter
mw.loader.load("https://minecraft.fandom.com/zh/index.php?title=User:Powup333/editcounter.js&action=raw&ctype=text/javascript");
//// HotCat Config
window.hotcat_translations_from_commons = true;
// Clear move/delete reason
document.getElementById("wpReason").value = "";
// WikiEditor Toolbar
mw.loader.load('https: //minecraft.fandom.com/zh/index.php?title=User:SteveZihang/edittools.js&action=raw&ctype=text/javascript');
// codeLinks
mw.loader.load("https://minecraft.fandom.com/index.php?title=User:Majr/codeLinks.js&action=raw&ctype=text/javascript");
// 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) {
importScript("User:Dianliang233/js/docTabs.js");
}
//</nowiki>