MyShows: add KickAss.to

Add icon for KickAss.to torrent tracker for each TV series

Per 24-10-2016. Zie de nieuwste versie.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

// ==UserScript==
// @name        MyShows: add KickAss.to
// @namespace   none
// @description Add icon for KickAss.to torrent tracker for each TV series
// @include     http://myshows.me/profile/
// @include     https://myshows.me/profile/
// @match       http://myshows.me/profile/
// @match       https://myshows.me/profile/
// @version     0.6.9
// @grant       none
// ==/UserScript==


$(function(){
    $('div.plateHint').remove();
    $("h2.showHeader").each(function(){
            var tv_urls = {
                "Doctor Who": "https://zooqle.com/tv/doctor-who-1863/",
                "My Little Pony: Friendship is Magic": "https://zooqle.com/tv/my-little-pony-friendship-is-magic-q1x/",
                "Guardians of the Galaxy": "https://zooqle.com/tv/marvel-s-guardians-of-the-galaxy-1cr1/",
                "Ash vs Evil Dead": "https://zooqle.com/tv/ash-vs-evil-dead-1c1k/",
                "Jekyll & Hyde": "https://zooqle.com/tv/jekyll-and-hyde-10fs/",
                "Jekyll and Hyde": "https://zooqle.com/tv/jekyll-and-hyde-10fs/",
                "Bishōjo Senshi Sailor Moon Crystal": "http://horriblesubs.info/shows/sailor-moon-crystal/",
                "The Simpsons": "https://zooqle.com/tv/the-simpsons-co/",
                "Family Guy": "https://zooqle.com/tv/family-guy-13u/",
                "Robot Chicken": "https://zooqle.com/tv/robot-chicken-jp/",
                "Gotham": "https://zooqle.com/tv/gotham-1auc/",
                "Gravity Falls": "https://zooqle.com/tv/gravity-falls-ux7/",
                "Minority Report": "https://zooqle.com/tv/minority-report-1cqv/",
                "Supergirl": "https://zooqle.com/tv/supergirl-1cdc/",
                "Limitless": "https://zooqle.com/tv/limitless-1cdb/",
                "Moonbeam City": "https://rarbg.to/tv/tt3906560/",
                "Star Wars Rebels": "https://zooqle.com/tv/star-wars-rebels-1aq2/",
                "South Park": "https://zooqle.com/tv/south-park-1ou/",
                "Elementary": "https://zooqle.com/tv/elementary-13b/",
                "Regular Show": "https://zooqle.com/tv/regular-show-o0s/",
                "The Flash": "https://zooqle.com/tv/the-flash-1av3/",
                "Marvel's Agents of S.H.I.E.L.D": "https://zooqle.com/tv/marvel-s-agents-of-s-h-i-e-l-d-12z/",
                "Arrow": "https://zooqle.com/tv/arrow-138/",
                "Adventure Time with Finn and Jake": "https://zooqle.com/tv/adventure-time-brw/",
                "The Expanse": "https://zooqle.com/tv/the-expanse-1d3r/",
                "The Big Bang Theory": "https://zooqle.com/tv/the-big-bang-theory-13e/",
                "Steven Universe": "https://zooqle.com/tv/steven-universe-1b7b/",
                "Galavant": "https://zooqle.com/tv/galavant-1blu/",
                "Heroes Reborn": "https://zooqle.com/tv/heroes-reborn-1ayi/",
                "Teenage Mutant Ninja Turtles": "https://zooqle.com/tv/teenage-mutant-ninja-turtles-13zd/",
                "American Dad": "https://zooqle.com/tv/american-dad-13t/",
                "Wander Over Yonder": "https://zooqle.com/tv/wander-over-yonder-yqd/",
                "Marvel's Agent Carter": "https://zooqle.com/tv/marvel-s-agent-carter-1bhq/",
                "DC's Legends of Tomorrow": "https://zooqle.com/tv/dc-s-legends-of-tomorrow-1cc3/",
                "Colony": "https://zooqle.com/tv/colony-1ci2/",
                "Archer": "https://zooqle.com/tv/archer-7xn/",
                "12 Monkeys": "https://zooqle.com/tv/12-monkeys-1b10/",
                "We Bare Bears": "https://zooqle.com/tv/we-bare-bears-1cx5/",
                "The Powerpuff Girls": "https://zooqle.com/tv/the-powerpuff-girls-1f1h/",
                "Mighty Magiswords": "https://zooqle.com/search?q=Mighty+Magiswords",
                "Flip Flappers": "http://horriblesubs.info/lib/search.php?value=Flip+Flappers",
                "Long Riders!": "http://horriblesubs.info/lib/search.php?value=Long+Riders",
                "Long Riders": "http://horriblesubs.info/lib/search.php?value=Long+Riders",
                "Teen Titans Go!": "https://zooqle.com/tv/teen-titans-go-ytw/",
                "Black Mirror": "https://zooqle.com/tv/black-mirror-wex/",
                "Vixen": "http://kisscartoon.me/Cartoon/Vixen-Season-2/",
                "Drifters": "http://horriblesubs.info/lib/search.php?value=Drifters",
                "ClassicaLoid": "http://horriblesubs.info/lib/search.php?value=ClassicaLoid",
                "Izetta: The Last Witch": "http://horriblesubs.info/lib/search.php?value=Shuumatsu+no+Izetta",
                "Westworld": "https://zooqle.com/tv/westworld-1csv/"
            };
            var headerName = $(this).find('span.showHeaderName > a');
            var subHeader = $(this).find('span.subHeader');
            var name = subHeader.text();
            if (name === '') name = headerName.text();
            var tv_series=encodeURIComponent(name.replace(/[^a-z0-9\s]/gi, ''));
            var url = 'https://zooqle.com/search?q='+ tv_series;
            if (name in tv_urls) url = tv_urls[name];
            $(this).append('<a target="_blank" title="zooqle.com" href="'+ url + '"><img src="https://zooqle.com/img/zq-favicon16.png"></a>');
     }); 

});