MediaWiki:Gadget-mirrorsite.js
注意:垃拉保存之后,侬作兴要清除浏览器个缓存才好看见改变。
- Firefox或Safari:揿牢“Shift”个同时点击“刷新”,或揿“Ctrl-F5”或“Ctrl-R”(Mac上是“⌘-R”)
- Google Chrome:揿“Ctrl-Shift-R”(Mac上是“⌘-Shift-R”)
- Internet Explorer / Edge:揿牢“Ctrl”个同时点击“刷新”,或揿“Ctrl-F5”
- Opera:去到菜单 → 设置(Mac上是Opera → 偏好设定),再转到隐私&安全 → 清除浏览数据 → 缓存个图片搭文件。
(() => {
let domainArr = window.location.hostname.split('.');
if (domainArr.pop() === 'org' && domainArr.pop() === 'wikipedia')
return;
$(() => {
$('#p-personal, .vector-user-links').text(
mw.config.get('wgUserId') === null ?
'箇是镜像站,覅登录帐号' :
'倷登录着镜像站哉'
).css({color: 'crimson', whiteSpace: 'normal'});
});
mw.loader.addStyleTag('#ca-addsection, #ca-move, .editOptions, .overlay-header .header-action .save.submit, .ve-ui-toolbar-group-save, .ext-discussiontools-replytool-enabled .ext-discussiontools-init-replylink-buttons, .ext-discussiontools-emptystate, .hotcatlink { display: none; }');
mw.hook('wikipage.editform').add($editForm => {
$editForm.find('#wpTextbox1').prop('readonly', true);
});
mw.hook('mobileFrontend.editorOpened').add(() => {
$('#wikitext-editor').prop('readonly', true);
});
mw.hook('ve.activationComplete').add(() => {
let surface = ve.init.target.getSurface();
if (surface)
surface.setReadOnly(true);
});
})();