Skip to content

Instantly share code, notes, and snippets.

@holly4
Last active November 24, 2016 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holly4/3dbd2c4800c85950f72e24af8a49c5a8 to your computer and use it in GitHub Desktop.
Save holly4/3dbd2c4800c85950f72e24af8a49c5a8 to your computer and use it in GitHub Desktop.
Clean up the Fox News comment page
if (!window.jQuery) {
console.log('jQuery is not loaded!!! Try refreshing the page.');
} else {
// remove non-comment material
$('.alert').remove();
$('#sub').remove();
$('.article-info').remove();
$('.social-count').remove();
$('[data-widget-id]').remove();
$('#rail').remove();
$('.ad-container').remove();
$('#powered_by_livefyre_new').remove();
$('[itemprop|=articleBody]').remove();
$('.ob_strip_container').remove();
$('#network').remove();
$('#top').remove();
$('.video-ct').remove();
$('.mod-14').remove();
$('[itemprop|=headline]').remove();
$('#bottom').remove();
$('.fyre-stream-sort').remove();
$('.freeform').remove();
$('.masthead').remove();
// enable the hidden comment count
$('.fyre-stream-stats').attr('class', 'fyre-stream-stats1');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment