Hätte so nebenbei ein Skript für Tampermonkey geschrieben, welches den Downloads Qualitätsgrade zuweist.
Schrift:
Hier das Skript:
Schrift:
- rot: wenn WebRip
- grün: wenn HDTV bzw. nicht BluRay und nicht WebRip
- orange: wenn BluRay und 1080p
- blau: wenn BluRay und nicht 1080p
- + Glitzer im Hintergrund: Wenn abgeschlossen (also nicht "laufend")
Hier das Skript:
Code:
// ==UserScript==
// @name Mark rarity
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.animes.so/forum/serien-gersub.349/*
// @match https://www.animes.so/forum/serien-gerdub.348/*
// @match https://www.animes.so/forum/filme-gersub-dub.350/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$('.PreviewTooltip').each(function(){
const text = $(this).text().toLowerCase().replace(/ /g,''); //because sometimes the title is "abc[BluRa y]def"
$(this).css({
'color' : text.indexOf('webrip') >= 0 ? 'red': text.indexOf('bluray') >= 0 ? (text.indexOf('1080') < 0 ? '#00bae9' : '#e95a00') : 'green',
'background-image': text.indexOf('laufend') < 0 ? 'url(https://www.animes.so/images/glow.gif)' : undefined
});
});
})();
Zuletzt bearbeitet: