User:Markhurd/hidetopcontrib.js: Difference between revisions

Content deleted Content added
Add another check, for links with class ''mw-changeslist-al'' to help with compatibility with User:Ale jrb/Scripts/userhist.js; See Special:PermaLink/836110102
Allow for compatibility with User:Writ Keeper/Scripts/commonHistory.js
Line 18:
// 150121 MEH Remove legacy Javascript.
// 170608 Fixed dependency declaration for mediawiki.util
// 180413 User:Amorymeltzer allow for compatibility with a couple other scripts present on contributions page
 
// This script hides lines according to who has the top contribution for a page.
Line 53 ⟶ 54:
b++;
if ( li[i].innerHTML.match( /class *= *(['"])?mw-changeslist-all\1/i ) != undefined )
b++;
if ( li[i].innerHTML.match( /class *= *(['"])?inspectDiffButton\1/i ) != undefined )
b++;