IMDB - add tracker links

at bottom-right of page

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        IMDB - add tracker links
// @description at bottom-right of page
// @namespace   KG
// @include     http*://*imdb.com*tt*
// @run-at	document-start
// @grant	GM_addStyle
// @require https://greasyfork.org/scripts/34527/code/GMCommonAPI.js
// @version     1.5
// ==/UserScript==

var sites = [
"https://karagarga.in/browse.php?search_type=imdb&search=",
"https://cinemageddon.net/browse.php?search=tt",
"http://cinematik.net/browse.php?cat=0&incldead=1&sort=1&type=asc&srchdtls=1&search=tt",
"https://passthepopcorn.me/torrents.php?searchstr=tt",
"https://broadcasthe.net/torrents.php?imdb=tt",
"http://www.opensubtitles.org/en/search/sublanguageid-all/imdbid-tt"
];

var names = ["KG", "CG", "Tik", "PTP", "BTN", "OS"];

// don't run in iframes
if (!window.frameElement) {
	var h = document.location + "";
	var q = h.split('/tt')[1] + "";
	var ref = q.substr(0, 7);

	doIt();
}

function doIt() {
    if (!document.body) { 
    	setTimeout(function(){ doIt(); }, 100); 
    	return;
    }

    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; } ");
    GMC.addStyle(" #linkbar a:link, #linkbar a:visited { color: #ccc; text-decoration: none; } ");

    var bar = document.createElement('div');
    bar.id = "linkbar";
    document.body.appendChild(bar);
    
    var openAll = "<a href='#' onclick=\"javascript: ";
    
    for (i=0; i < sites.length; i++) {
    	bar.innerHTML += "<a href='" + sites[i] + ref + "'>" + names[i] + "</a> | ";
    	openAll += "window.open(' " + sites[i] + ref + " ', '_blank'); ";
    }
    
    bar.innerHTML += openAll + " return false; \">ALL</a> ";
}