若您清楚改善现状的方法,可以在TA的用户讨论页发言。
该用户是一名GitHub用户其ID是 Mustafabot |
仅列举部分个人强烈推荐使用的js和个人改造的js,本人设置具体参见User:没有羽翼的格雷塔/common.js,反馈请到我的讨论页。
阿熊妙妙小工具,还不来试吗?
站内小工具就有,不过稳定吃验证码,这里建议使用Dreammu[更多]讨论页贡献上传历史封禁及历史被删贡献移动日志巡查日志用户权限的修复版(WikiplusSP):
mw.loader.load("/index.php?title=User:Dreammu/WikiplusSP.js&action=raw&ctype=text/javascript");
mw.loader.load('https://cdn.jsdelivr.net/npm/wikiplus-highlight');
U:屠麟傲血/lyricRuby.js,现已支持MoeSkin。
- 本小工具改造自User:东东君/js/ruby.js,使用vue创建对话框
- 新增了标记歌词中特殊读音的功能,同时修改复制歌词功能实现方式
- 1.38+可以使用mediawiki自带的vue3模块[1],小工具版本参见 https://github.com/fallenice2022/moeGadget/blob/main/gadgets/lyricRuby
- 使用本小工具前请先去除个人js中对User:东东君/js/ruby.js的引用,因为我懒得改class和id名称
更新日志:
已知bug:
| 疑似因为1.43改了元素类名,需要重新适配 |
|---|
|
基于User:Nzh21/js/QuickUndo.js改造而来: mw.loader.load("//fastly.jsdelivr.net/gh/Mustafabot/js-MoegirlPedia/QuickUndo.min.js");
|
| 样式炸了 |
|---|
|
其实星海的工具也能用,虽然只能在用户贡献页面,但是除了撤销还有回退/版本删除: mw.loader.load("//testingcf.jsdelivr.net/gh/lovelyCARDINAL/wikitool/massRollback.min.js");
|
维护人员必备的妙妙小工具,就是误报率有点高,建议insource搜索一遍。
自动查询非链入使用。(脚本在共享站,共享站使用不需要额外加域名)
mw.loader.load('/index.php?title=User:Dreammu/FileUsedNotLinkedAutoload.js&action=raw&ctype=text/javascript');
| 似乎效果不佳,而且1.43自带二次确认 |
|---|
|
首先,隐藏回退按钮防止误触: @import url('/index.php?title=User:穆斯塔法凯末尔/rollback.css&action=raw&ctype=text/css');
然后引入User:穆斯塔法凯末尔/rollback.js以恢复回退按钮显示。 |
在移动页面时快速填写理由。(来自U:BearBin/common.js,请在“reasons”数组内自行增删改理由)
if (mw.config.get("wgCanonicalSpecialPageName") === "Movepage") {
var reasons = [
["理由1链接显示文字","理由1填入框内内容"],
["理由2"],
];
$("#wpReason").after($('<div id="move-reason" style="margin-top: .3em"></div>')
.append(reasons.map(function (reason) {
return $('<a title="' + (reason[1] || reason[0]) + '">' + reason[0] + '</a>').on("click", function () {
$("#wpReason input").val(reason[1] || reason[0]);
});
}).reduce(function (acc, cur, index) {
if (index !== 0) {
acc.push("丨");
}
return acc.concat(cur);
}, [])));
}
基于喂鸡共享同名插件(帮助)的4.77版(现为版本913285065):
mw.loader.load("/index.php?title=User:穆斯塔法凯末尔/Cat-a-lot.js&action=raw&ctype=text/javascript");
配套的css:
@import url('//testingcf.jsdelivr.net/gh/Mustafabot/js-MoegirlPedia/Cat-a-lot.min.css');
window.catALotPrefs = {"disambig_category":"消歧义分类","redir_category":"已重定向的分类","watchlist":"nochange","minor":true,"editpages":true,"docleanup":false,"subcatcount":50,"uncat":false,"button":false};
引入自zhwp:User:晓月凛奈/DisamAssist。
mw.loader.load("/index.php?title=User:穆斯塔法凯末尔/DisamAssist.js&action=raw&ctype=text/javascript");
@import url('/index.php?title=User:穆斯塔法凯末尔/DisamAssist.css&action=raw&ctype=text/css');
修改配置:复制上述文件源码后自行修改。
已知bug:
mw.loader.load("//fastly.jsdelivr.net/gh/Mustafabot/js-MoegirlPedia/MassGlobalUsageChecker.min.js");
是PROVEIT不是PROVELT
/**
* ProveIt is a reference manager for Wikipedia and any other MediaWiki wiki
* Documentation: https://www.mediawiki.org/wiki/ProveIt
* Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-ProveIt.js
*/
function loadProveIt() {
mw.config.set( {
// Local citation templates (without namespace)
'proveit-templates': [
'Citation',
'Cite book',
'Cite magazine',
'Cite gup encyclopedia',
'Cite episode',
'Cite journal',
'Cite news',
'Cite web',
'Internetquelle'
],
// Citation templates that shouldn't go inside <ref> tags
//'proveit-templates-noref': [ 'R', 'Sfn' ],
// Supported namespaces, see https://www.mediawiki.org/wiki/Manual:Namespace_constants
//'proveit-namespaces': [ 0, 2 ],
// Preferred date format, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
//'proveit-date-format': { year: 'numeric', month: 'numeric', day: 'numeric' },
// Revision tag defined at Special:Tags
'proveit-tag': 'Automation tool',
// Automatic edit summary
'proveit-summary': 'Reference edited with [[mw:ProveIt|ProveIt]]',
} );
// Load from the central, global version at MediaWiki.org
mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-ProveIt' );
}
// Only load when editing
mw.hook( 'wikipage.editform' ).add( editForm => window.ProveIt || loadProveIt() );
mw.hook( 've.newTarget' ).add( target => target.constructor.static.name === 'article' && target.on( 'surfaceReady', loadProveIt ) );