Closed Arystanbek-kkwiki closed 7 years ago
:+1: Here is a basic version (it could be improved to pass the current parameters to RTRC):
/**
* Add RTRC link to Special:Recentchanges
*/
( function ( mw, $ ) {
'use strict';
function addRTRCLink() {
$( mw.util.addPortletLink(
'p-namespaces',
mw.util.getUrl( 'Special:BlankPage/RTRC' ),
'RTRC',
'ca-nstab-rtrc',
'Open Real-Time Recent Changes'
) );
}
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Recentchanges' ) {
$.when(
mw.loader.using( 'mediawiki.util' ),
$.ready
).then( addRTRCLink );
}
}( mediaWiki, jQuery ) );
@he7d3r thank you very much. Done: [https://kk.wikipedia.org/w/index.php?title=МедиаУики:Common.js&curid=4278&diff=2483773&oldid=248359]. How to remove RTRC link on toolbox?
Thanks @Arystanbek-kkwiki and @he7d3r !
(This was a duplicate of issue #11.)
Please add RTRC tab on right side of Special:RecentChanges.