Added reported tag support
This commit is contained in:
parent
d7d8c1c395
commit
fb10fce690
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name AnimeBytes Mediainfo Improvements
|
// @name AnimeBytes Mediainfo Improvements
|
||||||
// @author WeebDataHoarder
|
// @author WeebDataHoarder
|
||||||
// @version 1.23.2
|
// @version 1.24.0
|
||||||
// @downloadURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
|
// @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
|
// @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
|
// @description AnimeBytes Mediainfo Improvements. Adds several listing and matching releases against mediainfo utilities. MIT license
|
||||||
|
@ -153,6 +153,10 @@ function getEntryLine(tags, messages){
|
||||||
entries.other.push("Pruned");
|
entries.other.push("Pruned");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(tags.reported){
|
||||||
|
entries.other.push("Reported");
|
||||||
|
}
|
||||||
|
|
||||||
let messageCount = 0;
|
let messageCount = 0;
|
||||||
|
|
||||||
let span = document.createElement("span");
|
let span = document.createElement("span");
|
||||||
|
@ -1459,10 +1463,11 @@ if(
|
||||||
remastered: torrentEntry.querySelector("img[alt^='Remastered']") !== null,
|
remastered: torrentEntry.querySelector("img[alt^='Remastered']") !== null,
|
||||||
censoredHentai: torrentEntry.querySelector("img[src*='/hentaic.svg']") !== null,
|
censoredHentai: torrentEntry.querySelector("img[src*='/hentaic.svg']") !== null,
|
||||||
uncensoredHentai: torrentEntry.querySelector("img[src*='/hentai.svg']") !== null,
|
uncensoredHentai: torrentEntry.querySelector("img[src*='/hentai.svg']") !== null,
|
||||||
snatched: torrentEntry.textContent.match(/ - Snatched/) !== null,
|
snatched: torrentEntry.textContent.match(/- Snatched/) !== null,
|
||||||
pruned: torrentEntry.textContent.match(/ - Pruned!/) !== null
|
reported: torrentEntry.textContent.match(/- Reported/) !== null,
|
||||||
|
pruned: torrentEntry.textContent.match(/- Pruned!/) !== null
|
||||||
};
|
};
|
||||||
torrentEntry.textContent.replace("»", "").replace(/ - (Snatched|Pruned!)/g, "").split(/( \| | \/ )/).forEach((t) => {
|
torrentEntry.textContent.replace("»", "").replace(/- (Snatched|Pruned!|Reported)/g, "").split(/( \| | \/ )/).forEach((t) => {
|
||||||
let tagEntry = t.trim();
|
let tagEntry = t.trim();
|
||||||
|
|
||||||
if(tagEntry === ""){
|
if(tagEntry === ""){
|
||||||
|
|
Loading…
Reference in a new issue