用户:Sheep-realms/common.js

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* Wikiplus */
mw.loader.load('https://wikiplus-app.com/Main.js');

/* 部分链接新窗口打开 */
var a_mct = document.getElementsByClassName('mw-changeslist-title');
a_mct.push.apply(document.getElementsByClassName('mw-changeslist-diff'));
/*
a_mct += document.getElementsByClassName('mw-changeslist-diff');
a_mct += document.getElementsByClassName('mw-changeslist-history');
a_mct += document.getElementsByClassName('mw-userlink');
a_mct += document.getElementsByClassName('mw-changeslist-groupdiff');
a_mct += document.getElementsByClassName('interface');*/
for (var i = a_mct.length - 1; i >= 0; i--) {
    a_mct[i].setAttribute("target","_blank");
};