Skip to content

Instantly share code, notes, and snippets.

@kaugesaar
Created April 25, 2016 09:00
Show Gist options
  • Save kaugesaar/d9fc39f4122197e6d89c51a29dd49207 to your computer and use it in GitHub Desktop.
Save kaugesaar/d9fc39f4122197e6d89c51a29dd49207 to your computer and use it in GitHub Desktop.
if(new Date().getDay() === 1) {
var headers = document.getElementsByClassName('_5pbw');
for(var i = 0; i < headers.length; i ++) {
var e = headers[i];
if(e.innerText.indexOf('Bubach') > -1) {
var notHidden = true;
var parent;
while(notHidden) {
parent = parent.parentNode || e.parentNode;
if(typeof parent.className !== 'undefined') {
if(parent.className.indexOf('userContentWrapper') > -1) {
parent.style.display = 'none';
notHidden = false;
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment