MyShows: add KickAss.to

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

当前为 2016-12-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name MyShows: add KickAss.to
  3. // @namespace none
  4. // @description Add icon for KickAss.to torrent tracker for each TV series
  5. // @include http://myshows.me/profile/
  6. // @include https://myshows.me/profile/
  7. // @match http://myshows.me/profile/
  8. // @match https://myshows.me/profile/
  9. // @version 0.6.13
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13.  
  14. $(function(){
  15. $('div.plateHint').remove();
  16. $("h2.showHeader").each(function(){
  17. var tv_urls = {
  18. "Doctor Who": "https://zooqle.com/tv/doctor-who-1863/",
  19. "My Little Pony: Friendship is Magic": "https://zooqle.com/tv/my-little-pony-friendship-is-magic-q1x/",
  20. "Guardians of the Galaxy": "https://zooqle.com/tv/marvel-s-guardians-of-the-galaxy-1cr1/",
  21. "Ash vs Evil Dead": "https://zooqle.com/tv/ash-vs-evil-dead-1c1k/",
  22. "Jekyll & Hyde": "https://zooqle.com/tv/jekyll-and-hyde-10fs/",
  23. "Jekyll and Hyde": "https://zooqle.com/tv/jekyll-and-hyde-10fs/",
  24. "Bishōjo Senshi Sailor Moon Crystal": "http://horriblesubs.info/shows/sailor-moon-crystal/",
  25. "The Simpsons": "https://zooqle.com/tv/the-simpsons-co/",
  26. "Family Guy": "https://zooqle.com/tv/family-guy-13u/",
  27. "Robot Chicken": "https://zooqle.com/tv/robot-chicken-jp/",
  28. "Gotham": "https://zooqle.com/tv/gotham-1auc/",
  29. "Gravity Falls": "https://zooqle.com/tv/gravity-falls-ux7/",
  30. "Minority Report": "https://zooqle.com/tv/minority-report-1cqv/",
  31. "Supergirl": "https://zooqle.com/tv/supergirl-1cdc/",
  32. "Limitless": "https://zooqle.com/tv/limitless-1cdb/",
  33. "Moonbeam City": "https://rarbg.to/tv/tt3906560/",
  34. "Star Wars Rebels": "https://zooqle.com/tv/star-wars-rebels-1aq2/",
  35. "South Park": "https://zooqle.com/tv/south-park-1ou/",
  36. "Elementary": "https://zooqle.com/tv/elementary-13b/",
  37. "Regular Show": "https://zooqle.com/tv/regular-show-o0s/",
  38. "The Flash": "https://zooqle.com/tv/the-flash-1av3/",
  39. "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/",
  40. "Arrow": "https://zooqle.com/tv/arrow-138/",
  41. "Adventure Time with Finn and Jake": "https://zooqle.com/tv/adventure-time-brw/",
  42. "The Expanse": "https://zooqle.com/tv/the-expanse-1d3r/",
  43. "The Big Bang Theory": "https://zooqle.com/tv/the-big-bang-theory-13e/",
  44. "Steven Universe": "https://zooqle.com/tv/steven-universe-1b7b/",
  45. "Galavant": "https://zooqle.com/tv/galavant-1blu/",
  46. "Heroes Reborn": "https://zooqle.com/tv/heroes-reborn-1ayi/",
  47. "Teenage Mutant Ninja Turtles": "https://zooqle.com/tv/teenage-mutant-ninja-turtles-13zd/",
  48. "American Dad!": "https://zooqle.com/tv/american-dad-13t/",
  49. "Wander Over Yonder": "https://zooqle.com/tv/wander-over-yonder-yqd/",
  50. "Marvel's Agent Carter": "https://zooqle.com/tv/marvel-s-agent-carter-1bhq/",
  51. "DC's Legends of Tomorrow": "https://zooqle.com/tv/dc-s-legends-of-tomorrow-1cc3/",
  52. "Colony": "https://zooqle.com/tv/colony-1ci2/",
  53. "Archer": "https://zooqle.com/tv/archer-7xn/",
  54. "12 Monkeys": "https://zooqle.com/tv/12-monkeys-1b10/",
  55. "We Bare Bears": "https://rarbg.to/torrents.php?imdb=tt4839610",
  56. "The Powerpuff Girls": "https://zooqle.com/tv/the-powerpuff-girls-1f1h/",
  57. "Mighty Magiswords": "https://rarbg.to/torrents.php?imdb=tt4847134",
  58. "Flip Flappers": "http://horriblesubs.info/lib/search.php?value=Flip+Flappers",
  59. "Long Riders!": "http://horriblesubs.info/lib/search.php?value=Long+Riders",
  60. "Long Riders": "http://horriblesubs.info/lib/search.php?value=Long+Riders",
  61. "Teen Titans Go!": "https://zooqle.com/tv/teen-titans-go-ytw/",
  62. "Black Mirror": "https://zooqle.com/tv/black-mirror-wex/",
  63. "Vixen": "http://kisscartoon.me/Cartoon/Vixen-Season-2/",
  64. "Drifters": "http://horriblesubs.info/lib/search.php?value=Drifters",
  65. "ClassicaLoid": "http://horriblesubs.info/lib/search.php?value=ClassicaLoid",
  66. "Izetta: The Last Witch": "http://horriblesubs.info/lib/search.php?value=Shuumatsu+no+Izetta",
  67. "Westworld": "https://zooqle.com/tv/westworld-1csv/",
  68. "Red Dwarf": "https://zooqle.com/tv/red-dwarf-92/",
  69. "Humans": "https://zooqle.com/tv/humans-1ch2/"
  70. };
  71. var headerName = $(this).find('span.showHeaderName > a');
  72. var subHeader = $(this).find('span.subHeader');
  73. var name = subHeader.text();
  74. if (name === '') name = headerName.text();
  75. var tv_series=encodeURIComponent(name.replace(/[^a-z0-9\s]/gi, ''));
  76. var url = 'https://zooqle.com/search?q='+ tv_series;
  77. if (name in tv_urls) url = tv_urls[name];
  78. $(this).append('<a target="_blank" title="zooqle.com" href="'+ url + '"><img src="https://zooqle.com/img/zq-favicon16.png"></a>');
  79. });
  80.  
  81. });