User:Markhurd/hidetopcontrib.js: Difference between revisions

Content deleted Content added
Markhurd (talk | contribs)
Whitespace changes only; to more closely align with the coding conventions; NB still using == and not === because the latter doesn't work for some reason. Will look into that at some stage.
fixed dependency declaration
Line 17:
// 121123 User:Waldir Allow user configuration of link ___location and text.
// 150121 MEH Remove legacy Javascript.
// 170608 Fixed dependency declaration for mediawiki.util
 
// This script hides lines according to who has the top contribution for a page.
Line 73 ⟶ 74:
}
jQuery$.when( mw.loader.using('mediawiki.util'), $.ready).done( function( $ ) {
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) == 'Contributions') {
var htPortletLink = mw.util.addPortletLink( portletId, '#', portletText, 'ca-hidetop',