MediaWiki:Group-sysop.js:修订间差异
外观
无编辑摘要 |
无编辑摘要 |
||
| 第18行: | 第18行: | ||
); | ); | ||
}); | }); | ||
"use strict"; | |||
if (location.toString().indexOf("&diff=") > -1) | |||
throw "Abort execution"; | |||
if (typeof (window.gqqnbig) === "undefined") | |||
window.gqqnbig = {}; | |||
window.gqqnbig.fixRocForbiddenWords = (function () | |||
{ | |||
var replacements = [ | |||
[/管理员专用内容/g, "管理员专用内容01"], | |||
]; | |||
2016年4月23日 (六) 09:12的版本
/* 这里的任何JavaScript将只为管理员加载 */
function isChineseHans() {
var language = mw.config.get("wgUserLanguage");
return (language == "zh-hans" || language == "zh-cn" || language == "zh-sg");
}
$( document ).ready( function() {
mw.util.addPortletLink(
'p-personal',
mw.util.wikiGetlink( isChineseHans() ? 'SYSOP:首页' : 'SYSOP:首頁' ),
//
(isChineseHans() ? '管理首页' : '管理主頁'),
'pt-mysubpages',
(isChineseHans() ? '显示 管理员首页' : '顯示 管理員首頁'),
null,
'#pt-preferences'
);
});
"use strict";
if (location.toString().indexOf("&diff=") > -1)
throw "Abort execution";
if (typeof (window.gqqnbig) === "undefined")
window.gqqnbig = {};
window.gqqnbig.fixRocForbiddenWords = (function ()
{
var replacements = [
[/管理员专用内容/g, "管理员专用内容01"],
];