Created
May 14, 2018 16:39
-
-
Save ewasion/f87d23cb4bdbe8669d4ee142dd64d133 to your computer and use it in GitHub Desktop.
AB German dub finder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AB German dub finder | |
// @namespace https://github.com/ewasion | |
// @version 0.1.0 | |
// @description Highlights releases containing a german dub https://animebytes.tv/collage.php?id=490 | |
// @author Eva | |
// @homepage https://github.com/ewasion | |
// @icon https://animebytes.tv/favicon.ico | |
// @grant none | |
// @match https://animebytes.tv/torrents* | |
// @license GPL-3.0 | |
// @run-at document-end | |
// ==/UserScript== | |
document.querySelectorAll('[id$="_mediainfo"] td:nth-of-type(3) table:first-child tbody').forEach(mediainfo => { | |
if(mediainfo.innerText.includes('German')) { | |
let torrent = mediainfo.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.previousElementSibling.firstElementChild; | |
torrent.style = 'background-image: linear-gradient(-180deg, rgb(0, 0, 0) 33.3%, rgb(255, 0, 0) 33.3%, rgb(255, 0, 0) 66.6%, rgb(255, 215, 0) 66.6%);'; | |
torrent.firstElementChild.style = 'color: white;text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;'; | |
torrent.firstElementChild.nextElementSibling.style = 'color: white;text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;'; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment