I started whipping up some JavaScript to iterate though the list in /v/all/new and delete the elements from a matching sub. This is mostly copy-pasta from a few Google searches. Unfortunately, I am not a JS expert and have run out of time (for now). Currently, the script matches and deletes the first entry, then hits and error and stops. If anyone wants to pick this up and debug it, I'm sure a lot of people would appreciate it.
//Toss all the anchors into an array
var els = document.getElementsByTagName("a");
//Iterate through them
for (var i = 0, l = els.length; i < l; i++)
{
var el = els[i];
//Find the matching sub in the anchor
if (el.href === 'https://voat.co/v/SubToDelete')
{
//Kill it
delete_row(el);
}
}
//Kill function
function delete_row(e)
{
e.parentNode.parentNode.parentNode.parentNode.removeChild(e.parentNode.parentNode.parentNode);
}
view the rest of the comments →
[–] Atko [M] 0 points 7 points 7 points (+7|-0) ago
This is now implemented. If you are logged in, you can block all submissions from a subverse from appearing in your /v/all and /v/all/new feeds.
A word of caution: once you block a subverse, you won't be able to unblock it (lack of time to implement management of blocked subs), but you will still be able to visit the sub and participate.
[–] Genghis_Khan [S] 0 points 1 point 1 point (+1|-0) ago
Do I get credit for this one? ;)
[–] Atko 0 points 1 point 1 point (+1|-0) ago
Sure thing :)