|
|
| 第1行: |
第1行: |
| importScript('User:PhiLiP/wikicache/load.js');
| | $( document ).ready( function() { |
| mw.loader.load('https://wikiplus-app.smartgslb.com/Main.js'); | | mw.util.addPortletLink( |
| $(function () {
| | 'p-personal', |
| var hist; var url; | | mw.util.wikiGetlink( 'SYSOP:公告板' ), |
| if (!(hist = document.getElementById('ca-history') )) return; | | // |
| if (!(url = hist.getElementsByTagName('a')[0] )) return; | | '管理員公告板', |
| if (!(url = url.href )) return;
| | 'pt-mysubpages', |
| mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
| | '顯示 管理員公告板', |
| wgULS('-{zh-cn:清除缓存;zh-tw:清除快取}-'), 'ca-purge', wgULS('-{zh-cn:更新服务器缓存;zh-tw:更新伺服器快取}-'), '*');
| | null, |
| | '#pt-preferences' |
| | ); |
| | }); |
| | $( document ).ready( function() { |
| | mw.util.addPortletLink( |
| | 'p-personal', |
| | mw.util.wikiGetlink( 'B:公告板' ), |
| | // |
| | '行政員公告板', |
| | 'pt-mysubpages', |
| | '顯示 行政員公告板', |
| | null, |
| | '#pt-preferences' |
| | ); |
| }); | | }); |
|
| |
| //Undorange by Liangent
| |
| ( function( $, mw ) { mw.loader.using( [
| |
| 'mediawiki.util'
| |
| ], function() { $( function() {
| |
| if ( mw.config.get( 'wgAction' ) == 'history' ) {
| |
| $( '#mw-history-compare .mw-history-compareselectedversions-button' ).after(
| |
| $( '<input type="submit" />' )
| |
| .val( 'UndoRange' )
| |
| .click( function( e ) {
| |
| $( '#mw-history-compare input[name=diff]' ).attr( 'name', 'undo' );
| |
| $( '#mw-history-compare input[name=oldid]' ).attr( 'name', 'undoafter' );
| |
| $( '#mw-history-compare input[name=action]' ).val( 'edit' );
| |
| $( '<input type="hidden" name="summary" />' ).val(
| |
| 'UndoRange: ' + $( '#mw-history-compare input:checked[name=undoafter]' ).val()
| |
| + ' ~ ' + $( '#mw-history-compare input:checked[name=undo]' ).val()
| |
| ).insertAfter( this );
| |
| } )
| |
| );
| |
| }
| |
| } ); } ); } )( jQuery, mediaWiki );
| |
| importScript("User:Liangent/Gadgets/Toolkit/wordcount.js");
| |
| importScript("User:Jasonzhuocn/common.js");
| |
$( document ).ready( function() {
mw.util.addPortletLink(
'p-personal',
mw.util.wikiGetlink( 'SYSOP:公告板' ),
//
'管理員公告板',
'pt-mysubpages',
'顯示 管理員公告板',
null,
'#pt-preferences'
);
});
$( document ).ready( function() {
mw.util.addPortletLink(
'p-personal',
mw.util.wikiGetlink( 'B:公告板' ),
//
'行政員公告板',
'pt-mysubpages',
'顯示 行政員公告板',
null,
'#pt-preferences'
);
});