注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit')

importScript('User:YFdyh000/rater.js');

importScript('User:SuperGrey/_voter.js');

importScript('User:WhitePhosphorus/js/rrd.js');

window.popupMaxWidth = 400;

/** InPageEdit Preferences */
;(window.InPageEdit = window.InPageEdit || {}).myPreference = {
  "doNotCollectMyInfo": false,
  "editMinor": true,
  "editSummary": "$oldid$section",
  "lockToolBox": false,
  "redLinkQuickEdit": false,
  "outSideClose": true,
  "watchList": "preferences",
  "noConfirmEdit": true,
  "plugins": [
    "toolbox.js",
    "wiki-editor.js",
    "edit-any-page.js",
    "quick-thank.js",
    "fix-double-entrance.js",
    "code-mirror/cm6.js"
  ]
}

/* Full-height 2010 Editor (by 魔琴) */
$(document).ready(function () {
var h = '60vh' /* 修改此值以更改高度 */
var s = setInterval(() => {
if ($('.CodeMirror').css('height')) {
$('.CodeMirror').css('height', h);
$('.wikiEditor-ui-text').css('height', h);
$('.ext-WikiEditor-twopanes-TwoPaneLayout').css('height', h);
clearInterval(s)
s = null;
}
}, 500);
});