Created
April 25, 2016 09:00
-
-
Save kaugesaar/d9fc39f4122197e6d89c51a29dd49207 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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