Empornium Tag Highlighter

By SpyderNet Last update Jun 30, 2013 — Installed 2,865 times.

[Suggestion] Opacity of 'bad' torrents

in
Subscribe to [Suggestion] Opacity of 'bad' torrents 2 posts, 2 voices



LenAnderson Scriptwright
ChromeWindows

Hi,

while the red and green highlighting of the tags already helps to quickly see if a torrent is for me or not, I think it would further improve the scanning of the browse page if 'bad' torrrents (i.e. more bad than good tags) where put a little more into the background.
What I found quite helpful after playing around with it a bit is to change the opacity of tr element of these bad torrents to something like 0.5.
This way they are still available, you can read the title and tags, open the torrent etc. but it is way easier to just skip the torrent while going through the list.

Len

quick and dirty console script I used to test this:


var tagholders = document.getElementsByClassName('s-browse-tag-holder');
for (var i=0;i<tagholders.length;i++) {
  if (tagholders[i].getElementsByClassName('s-bad').length >
      tagholders[i].getElementsByClassName('s-good').length) { 
    tagholders[i].parentNode.parentNode.parentNode.style.opacity = '0.5';
  }
}

 
SpyderNet Script's Author
FirefoxWindows

Added in v0.4, disabled by default (enable through the new config UI). Opacity ranges between 0.5 and 1 depending on the percentage of bad tags.