用户:QWERTY770/common.js:修订间差异

删除462字节 、​ 2023年5月3日 (星期三)
Gadget代替// Edit via Wikiplus
(// Edit via Wikiplus)
(Gadget代替// Edit via Wikiplus)
/* 强制显示头像&用户名 */
$('head').append("<style>.comment-post .comment-avatar {opacity: 1;transition: all .3s;}.comment-post .comment-user {opacity: 1;transition: all .3s;}</style>")
 
// 取自 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; }
});
});
});
});
 
 
 
/* MCBBS Wiki Helper 0.7.6 */
优秀编辑者、​管理员
3,005

个编辑