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

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

跳转到导航 跳转到搜索
(// 使用Wikiplus小工具快速编辑)
标签移动版网页编辑 移动版编辑
* 8. 分类栏正确显示词曲作者的日文名
* 9. 触摸屏将packed-hover模式的gallery替换为packed
* 10. 禁止使用InPageEdit快速编辑和快速重定向移除Widget造成的多余<p>标签
* 101. 禁止使用InPageEdit快速编辑和快速重定向
* @Dependencies: mediawiki.api, mediawiki.Uri, mediawiki.Title, ext.gadget.site-lib
* @Author: 如无特殊说明,均为[[User:Bhsd]]
* @Function: 分类栏显示词曲作者的日文名
*/
if (mw.config.get( 'wgNamespaceNumber' ) !== 0) { return; }
console.log('Hook: wikipage.categories, 开始替换词曲作者分类');
$content.children( '#mw-normal-catlinks' ).find('a')
});
}
 
/**
* @Function: 移除Widget造成的多余<p>标签
*/
hook.add(function($content) {
$content.find( 'p:has(script, style)' ).after(function() {
return $(this).children( 'script, style' );
}).filter( ':empty' ).remove();
});
 
/**