注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
?_=1
来访问最新页面。https://zh.moegirl.org.cn/User:%E5%AE%9E%E9%AA%8C%E6%80%A7%EF%BC%9A%E6%97%A0%E7%94%A8%E8%AE%BA%E5%BA%9F%E4%BA%BA/common.js?_=1
//IPE
$.when(mw.loader.using(['mediawiki.api']), $.ready).then(function () {
mw.loader.load('https://fastly.jsdelivr.net/npm/mediawiki-inpageedit');
/** InPageEdit Preferences */
; (window.InPageEdit = window.InPageEdit || {}).myPreference = {
"doNotCollectMyInfo": false,
"editMinor": true,
"editSummary": "$section // Edit via [[User:机智的小鱼君/InPageEdit|InPageEdit]]",
"lockToolBox": true,
"redLinkQuickEdit": false,
"outSideClose": false,
"watchList": "watch",
"noConfirmEdit": false,
"plugins": [
"toolbox.js",
"wiki-editor.js",
"edit-any-page.js",
"quick-thank.js"
]
}
});
//mw.loader.load('https://mzh.moegirl.org/index.php?title=User:AnnAngela/js/Music163Lrc.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:東東君/js/ruby.js&action=raw&ctype=text/javascript');
mw.loader.load('https://mzh.moegirl.org.cn/index.php?title=User:一位史蒂夫/JS/MobileNav.js&action=raw&ctype=text/javascript');
mw.loader.load('https://mzh.moegirl.org.cn/index.php?title=User:Nzh21/js/QuickDiff.js&action=raw&ctype=text/javascript');
mw.loader.load('https://cdn.jsdelivr.net/gh/lovelyCARDINAL/wikitool@main/searchLinks.min.js');
mw.loader.load('/index.php?title=User:東東君/js/Wikiplus-replace.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:東東君/js/replace.js&action=raw&ctype=text/javascript');
mw.loader.load('https://mzh.moegirl.org/index.php?title=User:Nzh21/js/QuickUndo.js&action=raw&ctype=text/javascript');
//mw.loader.load('https://mzh.moegirl.org.cn/index.php?title=User:星海子/js/OnlineAdmins.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:Leranjun/js/MarkAsResolved.js&action=raw&ctype=text/javascript');
mw.loader.load('https://cdn.jsdelivr.net/gh/bhsd-harry/LLWiki@2.5/otherwiki/gadget-mobile-Backtotop.min.js');
mw.loader.load('https://cdn.jsdelivr.net/gh/bhsd-harry/LLWiki@2.5/otherwiki/gadget-mobile-Backtotop.min.css', 'text/css')
mw.loader.load('/index.php?title=User:星海子/js/markblocked.js&action=raw&ctype=text/javascript');
//mw.loader.load('/index.php?title=User:Iehcni/js/disambigHelper.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:bhsd/js/disambig.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:实验性:无用论废人/js/VocaDB-VOCALOID.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:实验性:无用论废人/js/Gadget-moesync.js&action=raw&ctype=text/javascript');
mw.loader.load("/index.php?title=User:BearBin/js/LyricStyleToggle.js&action=raw&ctype=text/javascript");
mw.loader.load("/index.php?title=User:BearBin/js/ShowContributors.js&action=raw&ctype=text/javascript");
mw.loader.load("//fastly.jsdelivr.net/gh/BearBin1215/MoegirlPedia@master/dist/gadgets/AdvancedSearch.min.js");
//mw.loader.load('https://cdn.jsdelivr.net/gh/bhsd-harry/LLWiki@2.5/otherwiki/gadget-code-prettify.min.js');
//mw.loader.load('https://cdn.jsdelivr.net/gh/bhsd-harry/LLWiki@2.5/otherwiki/gadget-code-prettify.min.css', 'text/css');
//mw.loader.load('/index.php?title=User:bhsd/js/wikiplus-highlight.js&action=raw&ctype=text/javascript');
/*
window.popupFixDabs = true ;
window.popupPreviewDiffs = false ;
window.popupMaxWidth = 450 ;
*/
//Inspector
window.inspector = {
summary: "// Edit via [[User:Bhsd/Inspector|Inspector]]",
replace: true,
resizable: true,
layout: "vertical"
};
mw.loader.load('/index.php?title=user:bhsd/js/inspect.js&action=raw&ctype=text/javascript');
// 搜索中添加“编辑”和“历史”按钮
; (function () {
if (mw.config.get("wgCanonicalSpecialPageName") !== "Search") return;
$('.mw-search-result-heading a').each(function () {
var href = $(this).attr('href');
if (!href) return;
var editLink = href.replace(href, href + '?action=edit');
var hisLink = href.replace(href, href + '?action=history');
var $edit = $('<a>', { href: editLink, class: 'search-edit', target: '_blank', text: '编辑' });
var $his = $('<a>', { href: hisLink, class: 'search-his', target: '_blank', text: '历史' });
$(this).after($('<span>', { class: 'extra-ipe-btn' }).append(' (', $edit, ' | ', $his, ')'));
mw.hook('InPageEdit').add(function (ctx) {
ctx.InPageEdit.articleLink($edit);
});
});
})();
// 分类页面添加“编辑”和“历史”按钮
; (function () {
if (mw.config.get("wgNamespaceNumber") !== 14) return;
if (mw.config.get("wgArticleId") === 38120 || mw.config.get("wgArticleId") === 99958) return;
$('.mw-category-generated .mw-content-ltr a').each(function () {
var href = $(this).attr('href');
if (!href) return;
var editLink = href.replace(href, href + '?action=edit');
var hisLink = href.replace(href, href + '?action=history');
var $edit = $('<a>', { href: editLink, target: '_blank', text: '编辑' });
var $his = $('<a>', { href: hisLink, target: '_blank', text: '历史' });
$(this).after($('<span>', { class: 'extra-ipe-btn' }).append(' (', $edit, ' | ', $his, ')'));
mw.hook('InPageEdit').add(function (ctx) {
ctx.InPageEdit.articleLink($edit);
});
});
})();
// Special:链接搜索添加“编辑”和“历史”按钮
; (function () {
if (mw.config.get('wgPageName') !== 'Special:链接搜索') return;
$('.special li a:nth-child(2)').each(function () {
var href = $(this).attr('href');
if (!href) return;
var editLink = href.replace(href, href + '?action=edit');
var hisLink = href.replace(href, href + '?action=history');
var $edit = $('<a>', { href: editLink, target: '_blank', text: '编辑' });
var $his = $('<a>', { href: hisLink, target: '_blank', text: '历史' });
$(this).after($('<span>', { class: 'extra-ipe-btn' }).append(' (', $edit, ' | ', $his, ')'));
mw.hook('InPageEdit').add(function (ctx) {
ctx.InPageEdit.articleLink($edit);
});
});
})();
// 周刊添加nicozon
; (function () {
$('.ranking a').each(function () {
var href = $(this).attr('href');
if (!href) return;
var zonLink = href.replace("video.jp", "zon.net");
var $zon = $('<a>', { href: zonLink, target: '_blank', text: '访问nicozon' });
$(this).after($('<span>', { class: 'plainlinks-zon' }).append('|', $zon));
});
})();
//自定义维基友爱星章
mw.loader.using(['ext.wikiLove.defaultOptions', 'ext.wikiLove.local'], function () {
$.wikiLoveOptions.types.mgpSpecial.subtypes.snow_21_1 = {
fields: ["message"],
option: "雪之星章2021",
descr: "与她共舞一支华尔兹吧!",
header: "雪之歌姬的感谢",
title: "雪之星章",
image: "SNOW MIKU 2021 视觉图 02.jpg"
};
$.wikiLoveOptions.types.mgpSpecial.subtypes.snow_22_1 = {
fields: ["message"],
option: "雪之星章2022",
descr: "与她共舞一支华尔兹吧!",
header: "雪之歌姬的感谢",
title: "雪之星章",
image: "SNOW MIKU 2022 视觉图03.jpg"
};
$.wikiLoveOptions.types.mgpSpecial.subtypes.snow_23_1 = {
fields: ["message"],
option: "雪之星章2023",
descr: "与她共舞一支华尔兹吧!",
header: "雪之歌姬的感谢",
title: "雪之星章",
image: "SNOW MIKU 2023 视觉图03.jpg"
};
$.wikiLoveOptions.types.mgpSpecial.subtypes.snow_24_1 = {
fields: ["message"],
option: "雪之星章2024",
descr: "与她共舞一支华尔兹吧!",
header: "雪之歌姬的感谢",
title: "雪之星章",
image: "SNOW_MIKU_2024_视觉图03.jpg"
};
$.wikiLoveOptions.types.mgpSpecial.subtypes.snow_25_1 = {
fields: ["message"],
option: "雪之星章2025",
descr: "与她共舞一支华尔兹吧!",
header: "雪之歌姬的感谢",
title: "雪之星章",
image: "SNOW MIKU 2025 视觉图 06.jpg"
};
});
//test类
mw.loader.load('/index.php?title=User:实验性:无用论废人/test.js&action=raw&ctype=text/javascript');
mw.loader.load('/index.php?title=User:实验性:无用论废人/VC Plus.js&action=raw&ctype=text/javascript');
mw.loader.load('https://mzh.moegirl.org.cn/index.php?title=User:实验性:无用论废人/OnlineAdmins.js&action=raw&ctype=text/javascript');