Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
define [at] appropriately and import jquery and this userscript will take your HNQ troubles away
if( at`*`||at`*`||at`*`||at`*`||at`*` ){
$('#hot-network-questions li > a:not([href^="http://math."]):not([href^="http://ux."])').closest('li').remove()
$('#hot-network-questions li').removeClass('dno').removeClass('js-hidden')
$('#hot-network-questions > a').remove()
if( at`` )
$('#question-list > :not([data-sid^="math."]):not([data-sid^="ux."])').remove()
else if( !at`` && !at`` ){
if (location.pathname in {'/':0 ,'/questions':0 ,'/unanswered':0})
else if( !at`` )
{ $('#sidebar > .sidebar-linked').remove() ;$('#sidebar > .sidebar-related').remove() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment