LLWiki正在建设中,欢迎加入我们

“MediaWiki:Gadget-site-shared.js”的版本间差异

跳转到导航 跳转到搜索
添加527字节 、​ 2021年11月27日 (六) 03:12
好吧,mw自帶的有點蠢⋯⋯
(mediawiki.page.gallery自帶)
(好吧,mw自帶的有點蠢⋯⋯)
标签撤销
* 3. 分类栏正确显示小写标题
* 4. 分类栏正确显示词曲作者的日文名
* 5. 触摸屏将packed-hover模式的gallery替换为packed
* 56. 移除Widget造成的多余<p>标签
* 67. 禁止使用InPageEdit快速编辑和快速重定向
* @Dependencies: mediawiki.Title, ext.gadget.site-lib
* @Author: 如无特殊说明,均为[[User:Bhsd]]
.text(function() { return this.title.slice(9); });
});
 
/**
* @Function: 触摸屏代替gallery的hover效果
* @Source: mediawiki.page.gallery
*/
if (window.ontouchstart !== undefined ||
window.DocumentTouch !== undefined && document instanceof window.DocumentTouch) {
hook.add(function($content) {
console.debug('Hook: wikipage.content, 开始移除gallery的hover效果');
$content.find( 'ul.mw-gallery-packed-hover ' ).addClass( 'mw-gallery-packed' )
.removeClass( 'mw-gallery-packed-hover' );
});
}
 
/**
16,874

个编辑

导航菜单