Last active
November 24, 2016 06:19
-
-
Save holly4/3dbd2c4800c85950f72e24af8a49c5a8 to your computer and use it in GitHub Desktop.
Clean up the Fox News comment page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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