打开主菜单
首页
随机
登录
设置
关于Akarin
免责声明
Akarin
搜索
查看“MediaWiki:Gadget-noteTAvector.js”的源代码
←
MediaWiki:Gadget-noteTAvector.js
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
此页提供此wiki软件的界面文字,并受到保护以防止滥用。如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此JavaScript页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
noteTAvector = ( function() { $( function() { $( 'body.skin-vector .mw-indicator[id^=mw-indicator-noteTA-]' ) .addClass( 'vectorTabs' ) .removeAttr( 'style' ) .empty() .each( function() { $( '<a href="#"><span style="padding:1px 3px; background: #d3e3f4; color:#000000;height:85%;">汉</span><span style="padding:1px 3px; background: #e9e9e9; color:#434343;height:85%;">漢</span></a>' ) .click( function( e ) { e.preventDefault(); } ) .wrap( '<ul><li><span></span></li></ul>' ) .parent().parent().parent().appendTo( this ); } ) .insertAfter( '#p-variants' ); } ); } ); mw.hook('wikipage.content').add( function ( $content ) { //if ( $( '#p-variants' ).next().hasClass('vectorTabs') ) return; $( '#p-variants' ).next().remove(); // Will blink duing load preview, but this will avoid the icon won't removed if the TA template is removed, and avoid repeated click event listener from noteTAViewer. setTimeout("noteTAvector();", 1); });
返回至
MediaWiki:Gadget-noteTAvector.js
。