if (mw.config.get('wgPageName') == "Special:Watchlist") { $('#mw-watchlist-resetbutton').remove(); $('.mw-watched').contents().unwrap(); } if (mw.config.get('wgAction') == "history") { $('.updatedmarker').remove(); }