跳转到内容

User:94rain/common.js

维基百科,自由的百科全书
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
$(function () {
    var hist; var url;
    if (!(hist = document.getElementById('ca-history') )) return;
    if (!(url = hist.getElementsByTagName('a')[0] )) return;
    if (!(url = url.href )) return;
    mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
                   wgULS('清除缓存'), 'ca-purge', wgULS('更新服务器缓存'), '*');
});
importScript("User:Bluedeck/serve/edit-conflict.js"); /*实时编辑冲突提示*/
importScript('User:Xiplus/js/close-move.js'); // Backlink: [[User:Xiplus/js/close-move.js]]
importScript('User:Xiplus/js/close-rfpp.js'); // Backlink: [[User:Xiplus/js/close-rfpp.js]]
importScript('User:Xiplus/js/close-vip.js'); // Backlink: [[User:Xiplus/js/close-vip.js]]
importScript('User:Xiplus/js/csd-reason-in-csd-cat.js'); // Backlink: [[User:Xiplus/js/csd-reason-in-csd-cat.js]]
importScript('User:Xiplus/js/disable-redirect.js'); // Backlink: [[User:Xiplus/js/disable-redirect.js]]

//importScript("User:Bluedeck/serve/blib-link.js"); /*蓝桌图书馆快线*/
//importScript("user:bluedeck/serve/blib.js"); /*贡献蓝桌图书馆*/
//importScript('User:小躍/Filetestpixel.js');
//importScript('User:Alexander Misel/Gadget-pageview.js');
importScript("User:WhitePhosphorus/js/rrd.js");
//importScript('User:PhiLiP/wikicache/load.js');
//mw.loader.load('//www.wikidata.org/zhwiki/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');//移除跨Wiki(Remove Interwikis)

//importScript('User:WhitePhosphorus/js/PagePatroller.js'); // 查看頁面巡查者
mw.loader.load('https://meta.wikimedia.org/zhwiki/w/index.php?title=User:Xiplus/js/quick-patrol.js&action=raw&ctype=text/javascript');

importScript('User:94rain/MOSNUM_dates.js');
//importScript('User:94rain/Twinkle.js');/*改编自Xiplus的TW*/
//importScript('User:Xiplus/Twinkle.js');
importScript('User:94rain/ToDoLister.js');/*ToDoLister*/
//importScript('User:Chiefwei/rater/rater.js'); // [[User:Chiefwei/rater]]
mw.loader.load( "https://meta.wikimedia.org/zhwiki/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
importScript("User:Zuohaocheng/patrollCount.js");
importScript("MediaWiki:Gadget-link-ts.js");
importScript("User:94rain/js/Gadget-afchelper.js");
importScript( 'User:94rain/js/MoveToDraft.js' );

//
$(function () {
	mw.util.addPortletLink(
		"p-tb",
		"https://dispenser.info.tm/~dispenser/cgi-bin/webchecklinks.py?page=" + mw.config.get('wgContentLanguage') + ":" + encodeURIComponent(mw.config.get('wgPageName')),
		"检测链接"
	);
});
mw.loader.load( '//meta.wikimedia.org/zhwiki/w/index.php?title=User:He7d3r/Tools/ScoredRevisions.js&action=raw&ctype=text/javascript' );
importScript('User:94rain/js/diff-permalink.js');
mw.loader.load( '//www.wikidata.org/zhwiki/w/index.php?title=User:Matěj_Suchánek/patrolRevisions.js&action=raw&ctype=text/javascript' );
importScript('User:94rain/DisamAssist.js');
importScript( 'User:94rain/js/CiteHighlighter.js' );
importScript('User:Xiplus/js/close-affp.js'); // Backlink: [[User:Xiplus/js/close-affp.js]]
/* SpecialInterlanguageLink */
window.SpecialInterlanguageLink = {
	"lang": {
		"wikt": "詞典",
		"q": "語錄",
		"v": "學院",
		"s": "文庫",
		"b": "教科書",
		"voy": "導遊",
		"n": "新聞",
		"m": "Meta",
		"en": "English"
	}
};
importScript('User:Xiplus/js/SpecialInterlanguageLink.js'); // Backlink: [[User:Xiplus/js/SpecialInterlanguageLink.js]]
// spihelper.js
mw.loader.load('//zh.wikipedia.org/zhwiki/w/index.php?title=User:Xiplus/js/spihelper.js&action=raw&ctype=text/javascript');