Skip to content

Instantly share code, notes, and snippets.

@buddy-sandidge
Created April 1, 2016 19:11
Show Gist options
  • Save buddy-sandidge/eb1686c7361e3257a830402d5cc82234 to your computer and use it in GitHub Desktop.
Save buddy-sandidge/eb1686c7361e3257a830402d5cc82234 to your computer and use it in GitHub Desktop.
Hide raise your potatoes spam
// ==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