MediaWiki:Gadget-libBottomRightCorner.js
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件。
/* eslint-disable prefer-arrow-callback */ /* eslint-disable prefer-template */ /* eslint-disable comma-dangle */ /* eslint-disable no-var */ /* eslint-disable no-unused-vars */ /* eslint dot-notation: ["error", { "allowPattern": "^(?:catch|default)$" } ] */ // eslint-disable-next-line no-redeclare /* global mw, $, OO, moment, Cron */ /* eslint-enable no-unused-vars */ "use strict"; $(function () { var body = document.body; var bottomRightCorner = $("<div>").attr("id", "bottomRightCorner"); bottomRightCorner.appendTo(body); window.insertToBottomRightCorner = function (text) { return $("<div>").text(text).appendTo(bottomRightCorner); }; });