Update hide-facebook-comments.js
This commit is contained in:
parent
e20ae3c5e4
commit
d1b631c795
|
@ -68,13 +68,10 @@ function hideElementsByClassName(name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideElementsBySelector(selector) {
|
function hideElementsBySelector(selector) {
|
||||||
var e = document.getElementById(id);
|
var f = document.querySelectorAll(selector);
|
||||||
if (e) {
|
|
||||||
var f = e.querySelectorAll(selector);
|
|
||||||
for (var i=0;i<f.length;i++) {
|
for (var i=0;i<f.length;i++) {
|
||||||
f[i].style = "display: none;";
|
f[i].style = "display: none;";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hideComments();
|
hideComments();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user