Created
May 9, 2017 08:52
-
-
Save terales/7dbf4181f399dd5cfc4104406ed51084 to your computer and use it in GitHub Desktop.
Hide friend suggestions stories
This file contains 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
// Looping like this works in Firefox 50+ and Blink browsers (Chrome, Yandex.Broswer and so on) | |
document.querySelectorAll('[id^="hyperfeed_story"]').forEach(hideIfPromos) | |
function hideIfPromos(story) { | |
if (story.textContent.includes('See all friend suggestions')) { | |
story.style.display = 'none' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment