Created
April 1, 2016 19:11
-
-
Save buddy-sandidge/eb1686c7361e3257a830402d5cc82234 to your computer and use it in GitHub Desktop.
Hide raise your potatoes spam
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
// ==UserScript== | |
// @name Fuck Potatoes | |
// @namespace reddit/robin fuck potatoes | |
// @include https://www.reddit.com/robin/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function hideSpam() { | |
$('.robin-message--message').each(function () { | |
var spam = '🍠🍠🍠🍠🍠 ヽ༼ຈل͜ຈ༽ノ RAISE YOUR POTATOES ヽ༼ຈل͜ຈ༽ノ 🍠🍠🍠🍠🍠' | |
var $el = $(this); | |
if ($el.text().indexOf(spam) !== - 1) { | |
$el.parent().css('display', 'none'); | |
} | |
}) | |
setTimeout(hideSpam, 100); | |
} | |
hideSpam(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment