IMDB - add tracker links

at bottom-right of page

  1. // ==UserScript==
  2. // @name IMDB - add tracker links
  3. // @description at bottom-right of page
  4. // @namespace KG
  5. // @include http*://*imdb.com*tt*
  6. // @run-at document-start
  7. // @grant GM_addStyle
  8. // @require https://greasyfork.org/scripts/34527/code/GMCommonAPI.js
  9. // @version 1.5
  10. // ==/UserScript==
  11.  
  12. var sites = [
  13. "https://karagarga.in/browse.php?search_type=imdb&search=",
  14. "https://cinemageddon.net/browse.php?search=tt",
  15. "http://cinematik.net/browse.php?cat=0&incldead=1&sort=1&type=asc&srchdtls=1&search=tt",
  16. "https://passthepopcorn.me/torrents.php?searchstr=tt",
  17. "https://broadcasthe.net/torrents.php?imdb=tt",
  18. "http://www.opensubtitles.org/en/search/sublanguageid-all/imdbid-tt"
  19. ];
  20.  
  21. var names = ["KG", "CG", "Tik", "PTP", "BTN", "OS"];
  22.  
  23. // don't run in iframes
  24. if (!window.frameElement) {
  25. var h = document.location + "";
  26. var q = h.split('/tt')[1] + "";
  27. var ref = q.substr(0, 7);
  28.  
  29. doIt();
  30. }
  31.  
  32. function doIt() {
  33. if (!document.body) {
  34. setTimeout(function(){ doIt(); }, 100);
  35. return;
  36. }
  37.  
  38. GMC.addStyle(" #linkbar { font-family: sans-serif; font-weight: bold; color: #ccc; background-color: #000; font-size: 0.8em; padding: 0.5em; position: fixed; right: 0; text-align: left; bottom: 0; z-index: 1000; } ");
  39. GMC.addStyle(" #linkbar a:link, #linkbar a:visited { color: #ccc; text-decoration: none; } ");
  40.  
  41. var bar = document.createElement('div');
  42. bar.id = "linkbar";
  43. document.body.appendChild(bar);
  44. var openAll = "<a href='#' onclick=\"javascript: ";
  45. for (i=0; i < sites.length; i++) {
  46. bar.innerHTML += "<a href='" + sites[i] + ref + "'>" + names[i] + "</a> | ";
  47. openAll += "window.open(' " + sites[i] + ref + " ', '_blank'); ";
  48. }
  49. bar.innerHTML += openAll + " return false; \">ALL</a> ";
  50. }