Skip to content

Instantly share code, notes, and snippets.

@mryellow
Created August 17, 2017 23:28
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 mryellow/94b796c7a448ddcec7d8f4ff9e0e45c6 to your computer and use it in GitHub Desktop.
Save mryellow/94b796c7a448ddcec7d8f4ff9e0e45c6 to your computer and use it in GitHub Desktop.
Hide Facebook Comments
// ==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