跳转到内容

User:Howew/common.js

维基百科,自由的百科全书

这是User:Howew/common.js当前版本,由Howew留言 | 贡献编辑于2020年6月11日 (四) 13:41 (已自動為您啟用小工具內的Twinkle,User:Xiplus/Twinkle.js自動作出的編輯)。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
  // Used for keeping correct tls session cache
    setInterval(function () {
        $.ajax( {
            url: 'https://en.wikipedia.org/w/api.php',
            data: {
                action: 'query',
                meta: 'userinfo',
                format: 'json',
                origin: 'https://zh.wikipedia.org'
            },
            xhrFields: {
                withCredentials: true
            },
            dataType: 'json'
        } )
    }, 40000);


$(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('-{zh-cn:清除缓存;zh-tw:清除快取}-'), 'ca-purge', wgULS('-{zh-cn:更新服务器缓存;zh-tw:更新伺服器快取}-'), '*');
});

LocalComments = {
	dateDifference: true,
	timeFirst: true,
	twentyFourHours: false,
	dayOfWeek: true,
	disablePages: function(){ return false; }
};



importScript('User:Vanished user 1929210/js/link-ts.js');
mw.loader.load('https://wikiplus-app.com/Main.js');
mw.loader.load('ext.gadget.npp');
importScript('User:Vozhuo/Tool/MOSNUM dates.js');
importScript('User:Alexander Misel/Gadget-pageview.js');
importScript("User:WhitePhosphorus/js/rrd.js");

importScript("User:Bluedeck/serve/blib-link.js"); /*藍桌圖書館快線*/
importScript("User:Bluedeck/serve/edit-conflict.js"); /*實時編輯衝突提示*/
importScript("user:Bluedeck/serve/blib.js"); /*貢獻藍桌圖書館*/
importScript("User:Bluedeck/serve/ar-auto-t.js"); /*已刪除內容查詢插件*/
importScript("User:WhitePhosphorus/js/dykc.js"); /*DYKC*/

importScript("user:ehime/source/archive.js"); /*user archive*/
importScript('User:Liangent/Scripts/NewPagePatroller.js'); //Linkback: [[User:Liangent/Scripts/NewPagePatroller.js]] Added by Script installer
importScript( 'User:Ehime/Installer.js' ); // Backlink: [[User:Ehime/Installer.js]]/* User:Ehime/Installer.js */
importScript('User:Ehime/frc.js'); //Linkback: [[User:Ehime/frc.js]] 經由安裝程式安裝
importScript('User:Ehime/warnUser.js'); //Linkback: [[User:Ehime/warnUser.js]] 經由安裝程式安裝

//mass move
mw.loader.load( '//zh.wikipedia.org/w/index.php?title=User:Ehime/massmove.js&action=raw&ctype=text/javascript' ); //zhwp version
mw.util.addPortletLink("p-tb", "//zh.wikipedia.org/wiki/Special:Massmove", "Mass move", "p-massmove", "Mass move");

//smart undo
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smartUndo.js&action=raw&ctype=text/javascript');
importScript('User:Ehime/igloo.js'); //Linkback: [[User:Ehime/igloo.js]] 經由安裝程式安裝