Quality filters - torrentgalaxy.to

Feel some of the benefits of Private trackers.

// ==UserScript==
// @name        Quality filters - torrentgalaxy.to
// @namespace   Violentmonkey Scripts
// @match       https://torrentgalaxy.to/*
// @grant       GM_addStyle
// @version     0.31
// @run-at      document-end
// @author      https://github.com/webdevsk
// @description Feel some of the benefits of Private trackers.
// @license     MIT
// ==/UserScript==

// Scene release*: Orange background
// High Quality Encoders*: Yellow background
// Micro encoders*: Hidden
// XXX uploaders: Hidden

// In search result, torrents under some categories have been hidden as well.
// // Blocked Categories
//  //   SD
//  //  Episodes SD
//  //  XXX
//  //  CAM/TS
//  //  XXX - SD


// *Scene: Source WEB-DL uploads. But renames to WEBRip for some reason.
// *High Quality Encoders: Rips in almost close to Blu-ray/WEB-DL source.
// *Micro encoders: Very tiny file size which greatly impacts quality.

// Why not JS?         With JS I would have to take page-load, async functions into account.

// Torrent links ENDING with these strings
// TGx] translates to TGx- in their urls
const blockAdultContent = true

const scene = [
  'TGx-',
  'FLUX',
  'CMRG',
  'Ntb',
  'TheBiscuitMan',
  'AOC',
  // Remux
  'E-N-D',
  'NAHOM',
  'MassModz',
  'SGF'
]

const notScene = [
    'MeGusta-TGx-'
]

// Torrent links ENDING with these strings
const quality = [
  'QxR-',
  'FGT',
  'FraMeSToR',
  'Prof-',
  'Vyndros-'
]

// uploader profile href="/profile/EACH_STRING"
// for landing page
const blocked = !blockAdultContent ? [] : [
  'TheDarkRider',
  'GalaxyRG',
  'Pornbits',
  'NoisyBoY',
  'sbudennogo',
  'GalaXXXy',
  'Pornlake',
  'XLeech'
]

const blockedCategory = {
  'Movies - SD'       : 1,
  'TV - Episodes SD'  : 5,
  'Movies - CAM/TS'   : 45,
}

if (blockAdultContent) {
  Object.assign(blockedCategory, {
  'XXX - Misc'        : 47,
  'XXX - HD'          : 35,
  'XXX - 4K UHD'      : 48,
  'XXX - SD'          : 34
  })
}

const populate = value => `[href*="${value}"]`

const dimensions = {
  [populate('-2160p-')] : "data:image/png;base64,iVBORw0KGg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dv13IQcpJKUOyIJDM4d7rMkbXxmD9PsHHlFsG6EETWlcaSo8oVqZ3Bj48PIHxqwJ8uB4EeDe6qfMbsyJmWheySoKeIihMFFAsFJG4E+eZTwSi/H9YW2VWzBVxbx3FSIuKydFpPkaG45CP2lCDacgnHdAzDqTPXUQuuhw8A848Ug8CUb/Ouwwv3h8MDrAkK+s30WVYh4reiiJ2W7g8QPmcMC3P8Lj2tYlHfTonWpiaw+gRFao/xTsO1/2nLiLnXYQ92ZTAR65NPj8BpZMgZwiJ6Nc1XrBsnE1gDHgtS3yXgHZUQ+SMjrlZMQcwK84B9GYCkY5EOftnHSGdSwvBS/UgIHeRcmZDdH6W5e31ujYfq3T2BGIdcYxvjmJ0pwrlhgnttomHPTr+3R/jMy3Xfn85+6xoy9IR4Ek9CPA2GYxzLxVvqbhL4ws8lED8gAl5o4XwGhPhTUlEtidB2iyoh9LQ/F7nOe1pn3WdGtmvC4GleqzdBFnvrTa3iMWawmbdI6J1Piafy5XyKYMfbySBaJspdlZs0dZqQ/5ArDQ11vuZ/vtE64yccxG+Uls+Y1cbSeBDb7OywQZlBHamoOz3Zt4SgcHH9V8pH+ajVzMNOlYJeQTeEgRmHubn4zORvCBwqkwgGxVrJmbs8zMTqLZqgEuJVz6BalOrnkC1rQwCbSaIVwNPJDAgaqAWgWeqgeU4NqnsQtkHFRIK5xd0oaxeISG9sDK6UMKbB1gn4ruv922xbazTPLDsp9PJwwaUVpOfrrFTB7rd5pt2vgdY5EysDGaeeDp9kZ29LycJdjjLzjf5Br5FnPfIu7xWyuaCQIWMhhauhehgBunXCozA+QUE2FsP9vaDsVsBb2LwBGfYLtR8Q9O0pjWtab5G2H8jAgtYusaUOwAAAABJRU5ErkJggg==",
}

// icon sources
// 4k: https://icons8.com/icon/Xtjk5RoPkiIS/4k
// 1080p: https://icons8.com/icon/VhSBJNE2qUmZ/hd-1080p
// 720p : https://icons8.com/icon/flSq0SlAbE2e/hd-720p


const sceneTemplates = scene.map(s => `[href$="${s}"]`).join(" ,")
const notSceneTemplates = notScene.map(ns => `[href$="${ns}"]`).join(" ,")
const qualityTemplates = quality.map(q => `[href$="${q}"]`).join(" ,")
const blockedTemplates = blocked.map(b => `[href="/profile/${b}"]`).join(" ,")
const categoryTemplates = Object.values(blockedCategory).map(cat => `[href="/torrents.php?cat=${cat}"]`).join(" ,")

console.log(Object.keys(dimensions))


GM_addStyle(`
/*-----------------------   Scene   -----------------------*/
.tgxtable .tgxtablerow:has( :is(${ sceneTemplates }):not(:is(${ notSceneTemplates })) ){
    --_background: #ffd700;
    background: var(--_background);
    color: #1b1b1b;
}


.tgxtable .tgxtablerow:has( :is(${ sceneTemplates }):not(:is(${ notSceneTemplates }))) .tgxtablecell{
  border-bottom: 1px solid #333;
}

.tgxtable .tgxtablerow:has( :is(${ sceneTemplates }):not(:is(${ notSceneTemplates }))) a:not([title="comments"]){
  color: #1b1b1b;
  text-shadow: none;
}

/*-----------------------   Quality Rippers   -----------------------*/
.tgxtable .tgxtablerow:has( :is(${ qualityTemplates })){
  --_background: #f2970e;
  background: var(--_background);
  color: #1b1b1b;
}


.tgxtable .tgxtablerow:has( :is(${ qualityTemplates })) .tgxtablecell{
  border-bottom: 1px solid #333;
}

.tgxtable .tgxtablerow:has( :is(${ qualityTemplates })) a:not([title="comments"]){
  color: #1b1b1b;
  text-shadow: none;
}

/*-----------------------       Blocked         -----------------------*/
.tgxtable .tgxtablerow:has( :is(${ blockedTemplates })){
  display: none;
}

/*-----------------------       Block by Category        -----------------------*/

.tgxtable .tgxtablerow:has( :is(${ categoryTemplates })){
  display: none;
}

/*-----------------------   Video dimensions   -----------------------*/

.tgxtable .tgxtablerow:has( :is(${ sceneTemplates }, ${ qualityTemplates }) ) .tgxtablecell:first-child{
  position: relative;
}

.tgxtable .tgxtablerow:has( :is(${ sceneTemplates}, ${ qualityTemplates }) ) .tgxtablecell:first-child::after{
    content: "";
    position: absolute;
    border-radius: inherit;
    inset: 0;
    background: var(--_background);
    background-size: 48px;
    background-position: center;
    background-repeat: no-repeat;
}

`)

Object.entries(dimensions).map(( [key, value] ) => {
  GM_addStyle(`.tgxtable .tgxtablerow:has( :is(${ sceneTemplates}, ${ qualityTemplates })${ key }:not(:is(${ notSceneTemplates })) ) .tgxtablecell:first-child::after{
    background-image: url(${value});
  }`)
})