Skip to content

Instantly share code, notes, and snippets.

@anderseknert
Created March 18, 2013 13:42
Show Gist options
  • Save anderseknert/5187213 to your computer and use it in GitHub Desktop.
Save anderseknert/5187213 to your computer and use it in GitHub Desktop.
Remove annoying for-pay content on www.dn.se
var removeIfPayOnly = function() {
var $t = $(this),
$free = $t.find('a')
.not('[href^=javascript]')
.not('[href^=http://www.dagensnyheter.se]');
if (!$free.length) {
$(this).remove();
}
};
$('.teaser, .subteaser, .half-item').each(removeIfPayOnly);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment