Greasemonkey script to hide blacklisted posts

News for this website will be posted here. Mostly Technical.
Forum rules
This forum is for technical discussion regarding the portal and vore itself.

Generally speaking, if you have something that needs moderator attention, you should simply Private message Eka. That includes any bug report, error report, violation report, outage report, suggestion, feature request. Etc.

Most topics will be locked as soon as they are acknowledged. Due to the nature that not many people can do anything regarding a technical issue. In that case, if you need something unlocked for any reason. Feel free to message Eka directly.

Greasemonkey script to hide blacklisted posts

Postby DeliciousMush » Mon Jun 27, 2016 7:18 pm

Not 100% which section to put this in, this seems to be the most appropriate.
I've made a simple greasemonkey script which uses the blacklisted tags feature to hide any posts in the 'latest' pages which match them. Just thought I'd post it to the forum for all those who might be interested.

Code: Select all
// ==UserScript==
// @name        A delicious script
// @namespace   Testing
// @include     *latest.php*
// @version     1
// @grant       none
// ==/UserScript==

var items=document.getElementsByClassName("detail-item");
for(var i=0; i<items.length; i++){
for(var b=0; b<blTags.length; b++){
    if(items[i].getAttribute("data-tagnames").indexOf(blTags[b])>=0){
      items[i].style.display='none';
    }
  }
}
User avatar
DeliciousMush
New to the forum
 
Posts: 1
Joined: Sun Jun 26, 2016 5:40 pm

Return to Technical stuff