注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- 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' );
}
$(function(){
$(".mw-usertoollinks").each(function(){
var $block = $(this).children(".mw-usertoollinks-block")
var user = $block.attr("href");
if(typeof(user) !== "undefined") {
user = user.substring(user.indexOf('/', 2) + 1);
$block.after($('<a href="/index.php?title=Special%3A用户权限&user=' + user + '" title="Special:用户权限/' + user + '">权限</a>'));
$block.after(" | ");
}
});
});
$(function(){$("#siderail").remove();$("#atflb").remove();$("#btflb").remove();$("#bodyContent").css("width","100%");$(".ad-placement").remove();});
$(function(){
$(".bilibili").each(function(_, e){
var container = $(e);
var aid = container.data("id");
$.ajax({
url: "https://www.bilibili.com/widget/getPageList?aid=" + aid,
method: 'GET'
})
.done(function(data) {
var cid = JSON.parse(data)[0].cid;
var player = $('<iframe src="https://www.bilibili.com/blackboard/html5player.html?aid=' + aid + '&cid=' + cid + '&enable_ssl=1&crossDomain=1&as_wide=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" height="421" width="600"> </iframe>');
container.append(player);
})
.fail(function() {
container.html("视频加载失败!");
});
})
});