去掉wgULS
修改路径
第7行: 第7行:
     if ( mw.config.get( 'wgIsArticle' ) == true ) {
     if ( mw.config.get( 'wgIsArticle' ) == true ) {
     if ( ( mw.config.get( 'wgMFAmc' ) == true ) && ( $( '#p-tb' ).length != 0 ) ) {
     if ( ( mw.config.get( 'wgMFAmc' ) == true ) && ( $( '#p-tb' ).length != 0 ) ) {
     $( '#p-tb' ).append( '<li class="toggle-list-item"><a class="toggle-list-item__anchor" href="' + $(location).attr( 'origin' ) + '/wiki/Special:Purge/' + mw.config.get( 'wgPageName' ) + '" data-mw="interface"><span class="mw-ui-icon mw-ui-icon-reload"></span>&nbsp;<span class="toggle-list-item__label">' + '刷新缓存' + '</span></a></li>' );
     $( '#p-tb' ).append( '<li class="toggle-list-item"><a class="toggle-list-item__anchor" href="' + $(location).attr( 'origin' ) + '/Special:Purge/' + mw.config.get( 'wgPageName' ) + '" data-mw="interface"><span class="mw-ui-icon mw-ui-icon-reload"></span>&nbsp;<span class="toggle-list-item__label">' + '刷新缓存' + '</span></a></li>' );
     }
     }
     else {
     else {
     mw.util.addPortletLink( 'p-cactions' , $(location).attr( 'origin' ) + '/wiki/Special:Purge/' + mw.config.get( 'wgPageName' ), '刷新缓存' );
     mw.util.addPortletLink( 'p-cactions' , $(location).attr( 'origin' ) + '/Special:Purge/' + mw.config.get( 'wgPageName' ), '刷新缓存' );
     }
     }
     }
     }
})(jQuery, mw);
})(jQuery, mw);