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
$('head').append('<style> div.fyre span.fyre-comment-like-imgs { display: inline; } </style>'); |
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
var observer = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutation) { | |
// (this would restore the liker images but must then restore the | |
// comment footer too) | |
// mutation.removedNodes.forEach(function(entry) { | |
// if ($(entry).hasClass('fyre-comment-like-imgs')) { | |
// $(mutation.target).append(entry); | |
// } | |
//}); | |
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(); |
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
// handlers to store original methods | |
scrollToProper = window.scrollTo; | |
scrollByProper = window.scrollBy; | |
// is scrolling enabled? | |
scrollEnabled = true; | |
// override the scollTo and scrollBy functions | |
window.scrollTo = function (x, y) { | |
if (scrollEnabled) |