若您清楚改善現狀的方法,可以在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 ) );