Update hide-facebook-comments.js

This commit is contained in:
Will Bradley 2019-01-02 03:57:58 +00:00
parent e20ae3c5e4
commit d1b631c795

View File

@ -68,12 +68,9 @@ function hideElementsByClassName(name) {
} }
function hideElementsBySelector(selector) { function hideElementsBySelector(selector) {
var e = document.getElementById(id); var f = document.querySelectorAll(selector);
if (e) { for (var i=0;i<f.length;i++) {
var f = e.querySelectorAll(selector); f[i].style = "display: none;";
for (var i=0;i<f.length;i++) {
f[i].style = "display: none;";
}
} }
} }