今天是2024年7月8日 第28周 星期一
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
MediaWiki:Gadget-noteTAvector.js
ZhWP>WhitePhosphorus2017年6月1日 (四) 11:38的版本 (这样会加载两次)
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件。
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); });