Hide all tweets from Verified Accounts
const el = document.querySelectorAll("div[data-testid='cellInnerDiv']");
// Show an element
var show = function (elem) {
elem.style.display = 'block';
};
// Hide an element
var hide = function (elem) {
elem.style.display = 'none';
};
// Toggle element visibility
var toggle = function (elem) {
// If the element is visible, hide it
if (window.getComputedStyle(elem).display === 'block') {
hide(elem);
return;
}
// Otherwise, show it
show(elem);
};
function verihide(divs){
return(divs ? hide(divs) :divs);
}
el.forEach((div) => {
// if div "[aria-label='Verified account']" exists, hide the whole div
if (div.querySelector("[aria-label='Verified account']")) {
hide(div);
}
});