Fix censored/uncensored icons

This commit is contained in:
DataHoarder 2024-03-30 19:14:05 +01:00
parent 1c0771bc4c
commit 12bfeab976
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name AnimeBytes Mediainfo Improvements
// @author WeebDataHoarder
// @version 1.31.3
// @version 1.32.0
// @downloadURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
// @updateURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
// @description AnimeBytes Mediainfo Improvements. Adds several listing and matching releases against mediainfo utilities. MIT license
@ -1728,8 +1728,8 @@ if(
audioCount: 1,
freeleech: torrentEntry.querySelector("img[alt^='Freeleech!']") !== null,
remastered: torrentEntry.querySelector("img[alt^='Remastered']") !== null,
censoredHentai: torrentEntry.querySelector("img[src*='/hentaic.svg']") !== null,
uncensoredHentai: torrentEntry.querySelector("img[src*='/hentai.svg']") !== null,
censoredHentai: torrentEntry.querySelector("img[src*='/hentaic-']") !== null,
uncensoredHentai: torrentEntry.querySelector("img[src*='/hentai-']") !== null,
snatched: torrentEntry.textContent.match(/- Snatched/) !== null,
reported: torrentEntry.textContent.match(/- Reported/) !== null,
pruned: torrentEntry.textContent.match(/- Pruned!/) !== null