欢迎来到奇葩栖息地!欢迎加入Discord服务器:XfrfHCzfbW。请先至特殊:参数设置验证邮箱后再进行编辑。在特殊:参数设置挑选自己想要使用的小工具!不会编辑?请至这里学习Wikitext语法。
用户:SkyEye FAST/common.js:修订间差异
来自奇葩栖息地
添加的内容 删除的内容
SkyEye FAST(讨论 | 贡献) (建立内容为“//<nowiki> // InPageEdit window.InPageEdit = window.InPageEdit || {}; InPageEdit.myPreference = { "editMinor": false, "editSummary": "$section// Edit v…”的新页面) |
SkyEye FAST(讨论 | 贡献) (// Edit via Wikiplus) |
||
(未显示同一用户的23个中间版本) | |||
第1行: | 第1行: | ||
//<nowiki> |
//<nowiki> |
||
// |
// Wikiplus |
||
//// Wikiplus Highlight |
|||
mw.loader.load('//cdn.jsdelivr.net/npm/wikiplus-highlight'); |
|||
// InPageEdit-v2 |
|||
// InPageEdit-v2 Config |
|||
//// InPageEdit Preferences |
|||
InPageEdit.myPreference = { |
;(window.InPageEdit = window.InPageEdit || {}).myPreference = { |
||
⚫ | |||
"doNotCollectMyInfo": false, |
|||
⚫ | |||
"editMinor": false, |
|||
⚫ | |||
⚫ | |||
"lockToolBox": false, |
|||
"redLinkQuickEdit": true, |
|||
⚫ | |||
⚫ | |||
"watchList": "preferences", |
|||
⚫ | |||
⚫ | |||
"color-preview.js" |
|||
"plugins": [ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
"quick-thank.js", |
|||
"wiki-editor.js", |
|||
"fix-double-entrance.js", |
|||
"code-mirror/script.js" |
|||
⚫ | |||
"doNotShowLocalWarn": false |
|||
⚫ | |||
$(function() { |
$(function() { |
||
第40行: | 第50行: | ||
}); |
}); |
||
// Popups |
|||
// JavaScriptWikiBrowser |
|||
⚫ | |||
mw.loader.load("https://cdn.jsdelivr.net/gh/dianliang233/dianliang-personal-js-css@master/JWB/load.js"); |
|||
window.popupStructure = "menus"; |
|||
// 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"); |
|||
⚫ | |||
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> |
//</nowiki> |
2024年7月31日 (三) 07:32的最新版本
//<nowiki>
// Wikiplus
//// Wikiplus Highlight
mw.loader.load('//cdn.jsdelivr.net/npm/wikiplus-highlight');
// InPageEdit-v2
// InPageEdit-v2 Config
//// InPageEdit Preferences
;(window.InPageEdit = window.InPageEdit || {}).myPreference = {
"doNotCollectMyInfo": false,
"editMinor": false,
"editSummary": "$section//Edit via InPageEdit",
"lockToolBox": false,
"redLinkQuickEdit": true,
"outSideClose": false,
"watchList": "preferences",
"noConfirmEdit": false,
"plugins": [
"toolbox.js",
"edit-any-page.js",
"quick-thank.js",
"wiki-editor.js",
"fix-double-entrance.js",
"code-mirror/script.js"
],
"doNotShowLocalWarn": false
}
$(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')
});
})
)
)
);
});
// Popups
//// Popups Config
window.popupStructure = "menus";
//</nowiki>