查看“MediaWiki:Gadget-heimu-toggle.js”的源代码
因为以下原因,您没有权限编辑本页:
您可以查看与复制此页面的源代码。
/* 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, wgULS, insertToBottomRightCorner */
/* eslint-enable no-unused-vars */
"use strict";
// <pre>
$(function () {
if (!$(".heimu, .colormu")[0] || $("#heimu_toggle")[0]) {
return;
}
$(".colormu").each(function () {
this.dataset.backgroundColor = $(this).css("background-color");
});
var $body = $("body");
var btn = insertToBottomRightCorner(wgULS("半隐黑幕", "半隱黑幕")).attr("id", "heimu_toggle").css({
"user-select": "none",
000
1:0