Created
August 17, 2017 23:28
-
-
Save mryellow/94b796c7a448ddcec7d8f4ff9e0e45c6 to your computer and use it in GitHub Desktop.
Hide Facebook Comments
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
// ==UserScript== | |
// @name Hide Facebook comments | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Improve self! | |
// @author Mr-Yellow | |
// @match https://www.facebook.com/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var hideComments = function hideComments() { | |
var comments = document.getElementsByClassName('commentable_item'); | |
for (var i = 0; i < comments.length; i++) { | |
comments[i].style = 'display: none;'; | |
} | |
}; | |
hideComments(); | |
setInterval(hideComments, 3000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment