User:Ericliu1912/common.js

来自萌娘共享
Ericliu1912讨论 | 贡献2023年9月3日 (日) 21:23的版本
跳转至: 导航搜索

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

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
// Cat-a-lot
mw.loader.using(['jquery.ui.dialog', 'jquery.ui.draggable', 'jquery.ui.resizable', 'jquery.ui.button', 'jquery.ui.progressbar', 'jquery.ui.autocomplete', 'jquery.spinner', 'mediawiki.api.messages', 'mediawiki.cookie', 'mediawiki.util'], function(){
	mw.loader.state("jquery.ui", "ready");
	mw.util.escapeRegExp = function(str){return str.replace(/([\\{}()|.?*+\-^$\[\]])/g, '\\$1')};
	mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});

window.catALotPrefs = {"watchlist":"preferences", "minor":true, "editpages":true};