You are viewing a single comment's thread.

view the rest of the comments →

0
3

[–] boredTech [S] 0 points 3 points (+3|-0) ago 

Update 2. Fuck you domain shitters.

// ==UserScript==
// @name        voat
// @namespace   https://voat.co
// @description spam killer
// @version     1
// @grant       none
// @include https://voat.co/*
// ==/UserScript==

console.log("started");

var spam_dom = [
  "zerohedge.com",
  "politico.com",
  "npr.org",
  "youtube",
  "youtu.be",
  "dailydot.com",
  "cnn.com"
]

$(document).ready(function(){
  for each (var spam in spam_dom)
    $("div.submission").has('a[href*="' + spam + '"]').hide();
  
  $.get('https://voat.co/u/boredTech/blocked/user', function(result){
     $(result).find('td > a').each(function(){
       $("div.submission").has('a[href="/u/' + $(this).text() + '"]').hide();
       });
   });
});

console.log("done");