注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- 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 → 选项),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件。
"use strict";
mw.loader.load('https://wikiplus-app.smartgslb.com/Main.min.js');
mw.loader.localLoad = function( url ) { return mw.loader.load( '//minecraft-zh.gamepedia.com/index.php?title=' + url + '&action=raw&ctype=text/javascript' ); };
mw.loader.localLoad( 'User:Powup333/util.js' );
if(mw.config.get( 'wgTitle' ) === mw.config.get( 'wgUserName' )&& mw.config.get( 'wgNamespaceNumber' ) === 2) {
mw.loader.localLoad( 'User:Powup333/editcounter.js' );
$("<input type='text' id='powtext'>").insertBefore("#powup333");
var b = $("<button id='powbutton'>加载</button>").insertBefore("#powup333");
var api = new mw.Api();
b.click(function(){api.parse($("#powtext").val()).done(function (res) {$("#powup333").html(res);});});
}
$(function(){$("#siderail").remove();$("#atflb").remove();$("#btflb").remove();$("#bodyContent").css("width","100%");$(".ad-placement").remove();});
$(function(){
$(".tabtable").each(function(i, e) {
var $table = $(e);
var $nav = $table.find(".tabtable-nav");
$table.find(".tabtable-cell").each(function(i, e) {
var $cell = $(e);
var $tab = $("<div class='tabtable-tab' style='display: inline-block; padding: 5px; cursor: pointer;'>" + $cell.attr("tabtitle") +"</div>");
$nav.append($tab);
$tab.click(function() {
$table.find(".tabtable-cell").css("display", "none");
$cell.css("display", "block");
$nav.find(".tabtable-tab").css("background", "#eee");
$tab.css("background", "#fff");
});
});
$table.find(".tabtable-cell").css("display", "none").css("border", "2px solid #ddd").css("margin-top", "-2px");
$table.find(".tabtable-cell").first().css("display", "inline-block");
$nav.find(".tabtable-tab").css("background", "#eee").css("border", "2px solid #ddd").css("margin-left", "-2px");
$nav.find(".tabtable-tab").first().css("background", "#fff");
});
});