用户:自由李代数/common.js:修订间差异
< 用户:自由李代数
无编辑摘要 标签:移动版编辑 移动版网页编辑 |
小无编辑摘要 标签:移动版编辑 移动版网页编辑 |
||
| (未显示同一用户的92个中间版本) | |||
| 第1行: | 第1行: | ||
/* | /* 我写的,初期开发,不建议用 */ | ||
mw.loader.load('https:// | mw.loader.load('https://cdn.jsdelivr.net/gh/FreeLieAlgebra/MCBBS-Wiki-Helper/MBWH0.8.0.js'); | ||
/* | /* 暂时取自 https://minecraft-zh.gamepedia.com/User:Ff98sha/common.js,仅供学习研究用 */ | ||
mw.loader.using(['oojs-ui-windows', 'oojs-ui-core'], | |||
$( | function() { | ||
$('.mw-rollback-link a').each(function() { | |||
var href = $(this).attr('href'); | |||
$(this).click(function(e) { | |||
e.preventDefault(); | |||
OO.ui.confirm('你确定要回退此页面吗?').done(function(confirmed) { | |||
if (confirmed) { | |||
location.href = href; | |||
} | |||
}); | |||
}); | |||
}); | |||
}); | |||
2021年1月3日 (日) 20:01的最新版本
/* 我写的,初期开发,不建议用 */
mw.loader.load('https://cdn.jsdelivr.net/gh/FreeLieAlgebra/MCBBS-Wiki-Helper/MBWH0.8.0.js');
/* 暂时取自 https://minecraft-zh.gamepedia.com/User:Ff98sha/common.js,仅供学习研究用 */
mw.loader.using(['oojs-ui-windows', 'oojs-ui-core'],
function() {
$('.mw-rollback-link a').each(function() {
var href = $(this).attr('href');
$(this).click(function(e) {
e.preventDefault();
OO.ui.confirm('你确定要回退此页面吗?').done(function(confirmed) {
if (confirmed) {
location.href = href;
}
});
});
});
});