IMDB - add tracker links

at bottom-right of page

اعتبارا من 11-05-2014. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل 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
// @version     1.2
// ==/UserScript==

var sites = [
"https://karagarga.net/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"
];

var names = ["KG", "CG", "Tik", "PtP", "BtN"];

// 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;
    }

    GM_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; } ");
    GM_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> ";
}