Greasy Fork is available in English.

DCRG Arama New IMDB Style

DCRG-World ve DCRG Movie

// ==UserScript==
// @name           DCRG Arama New IMDB Style
// @namespace      http://www.dcrgworld.net ve http://www.dcrgmovie.net
// @description    DCRG-World ve DCRG Movie
// @include        http://*.imdb.com/title/*/
// @include        http://*.imdb.com/title/*/#*
// @include        http://*.imdb.com/title/*/combined*
// @include        http://*.imdb.com/title/*/maindetails*
// @include        http://*.imdb.com/title/*/?ref_=rvi_tt
// @include        http://*.imdb.com/title/*/?ref_=sr_1
// @include        http://*.imdb.com/title/*/?ref_=tt_rec_tt
// @include        http://*.imdb.com/title/*/?ref_=tt_rec_tti
// @include        http://*.imdb.com/title/*/?ref_=fn_al_tt_2
// @include        http://*.imdb.com/title/*/?ref_=chttp_tt_1
// @include        http://imdb.com/title/*/
// @include        http://imdb.com/title/*/#*
// @include        http://imdb.com/title/*/combined*
// @include        http://imdb.com/title/*/maindetails*
// @include        http://imdb.com/title/*/?ref_=rvi_tt
// @include        http://imdb.com/title/*/?ref_=sr_1
// @include        http://imdb.com/title/*/?ref_=tt_rec_tt
// @include        http://imdb.com/title/*/?ref_=tt_rec_tti
// @include        http://imdb.com/title/*/?ref_=fn_al_tt_2
// @include        http://imdb.com/title/*/?ref_=chttp_tt_1
// @version 0.0.1.2017pl1
// ==/UserScript==
(function() {

	'use strict';

	// Possible placeholders in URL: %id, %title and %title[padding] (e.g. %title[_])
	// Inserting null creates a seperator.
	// Favicon converter: http://dataurl.net/#dataurlmaker

	var sites = [
		{name:'DCRGWorld', url:'http://www.dcrgworld.net/search.php?do=process&q=tt%id', icon:'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEVElEQVQ4T73TfVCURRwH8JXj3kAPEIQG0uBe4BA54kWQxEK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ama=tt%id', icon:'data:image/vnd.microsoft.icon;base64,AAABAAIAICAAAAEAIACoEAAAJgAAABAQAAABACAAaAQAAM4QAAAoAAAAIAAAAEAAAAABACAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAA////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD4+fgD7vbuDur26hPs9ewP9vf2B/z8/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A+vz6A97u3h+uxZlnk5lhm3Z4LtSBax/4hmIV+IFmFvhzdyfilZlim6/Akm7c7dwh+Pr4A////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/P38AOHu4ByntoZ5jHMw0pVYEvamUA/9qFcm/bVxPf21YCH9tF0e/bFZGv2qVBX9mFUQ+I1uK9eftIJ94OvbI/z8/AD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////APz8/ADP38g1gYU9xptQD/yyWBr9uWYm/bduK/2tZzr9vYlT/cB6OP2+cjH9vm4v/btpKv25YyX9slga/ZxRD/2KezvKvN28P/r8+gP///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD6+voBt8qqVI5oJ+KtVRf9uWQm/b1tLv3BeTf9tmwp/adXMf2nVyz9t3Iw/cOBPf3CeDf9wnY1/cByM/29bC39uWIj/a9VFv2EZBfqr8maZPj7+AX///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/Pz8AM3dxjiOaCfir1ga/btoKf2/cjL9wnY3/cN7Ov29fjj9qlsq/ahaPP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afdf20lFP93s+x/a2FPP2mczD9t5dY/eHSuP3awqP9yq+C/c/Sqf2VqVjlydWwTfj5+AX///8A////AKa4Y8bCyo/9vMSE/cO9iP3NsIb90bmR/cqugP2ufTn9tHZI/a58Qf2wjUb9v6Bn/al3Lf2pgjz9rY9L/bGSWv28nX79wrKW/bWZZv2shD/9o3gl/aR6Jv3Ms4f9xaJw/Z5gEv2Hex/rprNh97TCeP2Ahg3y6ObSK////wD///8AxNGoVY+5apOMsmWYgKZQs4djDfakZCL9r3lI/biAXf29hmz9uoxs/ayERP3Ru5T9vqBn/a+RWP3CuqH9vZ6G/bqJcP3Br5X9wbCX/bmOc/21j2X9rYlM/ah8PP2hUhb9iEsR9bPRp1q+zJ5elrpwjZ+7d4bw8egV////AP///wD///8A////AP///wD4+/gFq72ScZdXH/q0dlT9uYdt/b6Zg/2+mIT9u5R6/bCUZf2uilT9tZFs/cGyn/29nIn9vZWD/byZhf29oIz9vqWS/b+jjv29nIj9t4Fi/ZJYG/aTrnmF+vr6A////wD///8A////AP///wD///8A////AP///wD///8A////APz8/AD09/QJnah3jZhmLPOxbEj9uYxz/b2Zhf3ArZ39wbKn/cGzqP3Ct6n9wrWn/b+klv2/o5T9vqCR/b2cjP29oo79u5V9/bR7Wv2XZS33kqdlmun06BX///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wDs8uwPpK6Bg4lWFfisZDv9toJp/bubiP2+pJX9wbGn/cCvpP3AqZ39v6aa/b6ilf28m4v9uZF9/baFaf2ub0X9kl4h9o2scI7n8+YV////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD4+/gDt9q2R4d7PsKPSRH4qFou/bNxT/23g2n9uZF9/bmSf/25jHb9toBn/bFsS/2nUy79kk4U/YaCPca70K1V+Pr4A////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD8/PwA5fDiGbjKplaGk1GzkGQp2o1VHO6WThf9m2Mt/ZhhKP2MTxrzj1sq2YqHRb20x6Fc5O7iGvr8+gH///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/Pz8APT59Ana7dojvdW1SbbDmW20wJRwtsacbbnTr1Xa7Noj8PjwDP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP/////////////////wH///wAf//wAB//4AAP/8AAB/+AAAP+AAAA/AAAAPwAAAB8AAAAPgAAAH4AAAD+AAAA/gAAAHgAAAA4AAAAOAAAAHgAAAB4AAAAPAAAAz/AAAP/wAAH/+AAD//4AD///gD///////////////////////KAAAABAAAAAgAAAAAQAgAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A/P38AOLr3CHAwqFduK6Dhbayh3zP1LtC9Pj0Cf///wD///8A////AP///wD///8A////AP///wD///8A8PXuDqmebJajYSDwrF8n/bp1Ov24Zib9rV0c/J5yNdTHz7JM/P38AP///wD///8A////AP///wD///8A8PTuD6J9RsW4ZSb9wXY1/bFnL/2qWCv9wX47/cJ5O/2+dTv9p2Mn+LnCmWn8/PwA////AP///wD///8As+bgVJKcdrWlc079lY+D/Y2NhP2MfGf9gGRm/YSDgf2dm5H9iZqg/ZWYlv12Z1fzmdLIeez49BH///8A////AHXS3cl3tt/9aK7c/ZDG5/1tpsX9hMDp/YHB7f16wO/9gL3j/WS9/P2Syer9Pn63/XCu1f2N19l1/P38AP///wBuv8W8Z6fP/XKtz/2Mo6L9v5x1/X15dv2Cj5b9fp+o/YGbof1gf6H9ZmyN/U9giv1ifpD6btDEn/r8+gP///8AsqR6kbR+UP2/n3H9uX9a/bRyOf25ilH9w6iE/cSVYv3EkFf9sG5B/ZkiDf2VGgT9jzkJ+N3r2Sb///8A2+PHQ7qxf97HpHL9v6Fv/bR9Vf2uZCn9u5di/cKpf/27llz9vJNV/biHRv2xfEj9rGws/Z9aGP2zwYi99fbvD9jlwF7PxJz9s4dN/civg/3OrYT9uZJg/cysgv20jFH907+Z/c+5j/24lVz9tJVm/dS9mf3RwZz9qr9/p/f69gbV4LhgxsqW/bucYv3Ot479vZBe/bKIS/2+mmL9tpVY/bufcf24n3H9tpRU/bOOTf3Ipnf9saxq+KSyY8n29vAM7/LoFcXZskqqsHmIqGo3/buJbv24j2v9u55t/bqjgf28loD9v6aP/buZfv2yiV39lGkv29rlzy/L3LhF+vr4Bf///wD///8A+vv6AbKshIWobEL8u5mF/cCuo/3BsaT9v6SW/byaif23im79mnpF3tjjzDH///8A////AP///wD///8A////AP///wD8/fwAyNC1SZ1/TcChaz/wqXVQ/aRvR/qcZznjrKF1jurx5xf///8A////AP///wD///8A////AP///wD///8A////AP///wD6/PoB5O/iGtngyjfa5NEw8vjyCv///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD//wAA/v8AAPAfAADgDwAAwAcAAIADAACAAQAAgAMAAIABAACAAQAAgAEAAMAHAADgDwAA+B8AAP//AAD//wAA'},
		{name:'Türkçe Altyazı', url:'http://www.turkcealtyazi.org/find.php?cat=sub&find=tt%id', icon:'data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAADo7PAUbqPajmKg3ppioN6aYqDemmKg3ppioN6aYqDemmKg3ppioN6aYqDemmKg3ppioN6aYqDemmyj2pDk6e4Ygq3aewB8+v0Affv9AH37/QB7+P0AefX9AHn1/QB59f0AefX9AHn1/QB59f0Ae/n9AH37/QB9+/0AfPr9eKnahmih3JQAffv9AH37/QB8+f2VueP91d/u/dXf7v3V3+791d/u/dXf7v3U3+79gLDl/QB8+v0Affv9AH37/WKg35pioN+aAH37/QB9+/0AfPr9C3rt/anG6P3////9/////f////3////9lLrm/Ql67/0Affv9AH37/QB9+/1ioN+aYqDfmgB9+/0Affv9AH37/QB9+/2Gtej9/////f////3////9/////Wem6f0Affv9AH37/QB9+/0Affv9YqDfmmKg35oAffv9AH37/QB9+/0Affv9hrXo/f////3////9/////f////1npun9AH37/QB9+/0Affv9AH37/WKg35pioN+aAH37/QB9+/0Affv9AH37/Ya16P3////9/////f////3////9Z6bp/QB9+/0Affv9AH37/QB9+/1ioN+aYqDfmgB9+/0Affv9AH37/QB9+/2Gtej9/////f////3////9/////Wem6f0Affv9AH37/QB9+/0Affv9YqDfmmKg35oAffv9AHz6/QB9+/0Affv9hrXo/f////3////9/////f////1npun9AH37/QB9+/0AfPr9AH37/WKg35pioN+aF4Hu/Y+66v0Pfe/9AH37/Ya16P3////9/////f////3////9Z6bp/QB9+/0zjOr9gLHn/QB69v1ioN+aYqDfmkST5/3////9XJ/n/QB8+v2Gtej9/////f////3////9/////Wem6f0AfPn9qMbp/e7x9/0Cdu79YqDfmmKg35pFk+f9/////cna7/0Hee/9hrXo/f////3////9/////f////1npen9LIXk/ff5+/3u8fb9Anbt/WKg35pioN+aRZPn/f////3////9nMDp/Ya16f3////9/////f////3////9baDc/env9v3////97vH3/QJ27v1ioN+aZqHdlhSB8f1Llub9S5bm/TOL6f0niOz9S5bm/UuW5v1Llub9S5bm/SGD6v1Jlef9S5bm/UaU5/0Ae/f9YqDfmn6r2n4AfPr9AH37/QB9+/0Affv9AH37/QB9+/0Affv9AH37/QB9+/0Affv9AH37/QB9+/0Affv9AHz6/XKl2org5uwcWJjYpUKP3rtCj967Qo/eu0KP3rtCj967Qo/eu0KP3rtCj967Qo/eu0KP3rtCj967Qo/eu1SV2Kjc5OwhgAEAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAgAEAAA%3D%3D'},
    {name:'NZBIndex', url:'http://www.nzbindex.nl/search/?q=%title', icon:'data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAABMLAAATCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABvOg93bzoP/286DyJvOg9mbzoP/286D3dvOg/dbzoP/286D/9vOg//bzoPu286D7tvOg//bzoP/286D91vOg8ibzoPd286D/9vOg8ibzoPqm86D/9vOg93bzoPqm86D/9vOg8iAAAAAAAAAABvOg+7bzoP3W86DxFvOg/ubzoPiG86D3dvOg//bzoPM286D+5vOg//bzoPd286D1VvOg//bzoPdwAAAAAAAAAAbzoPu286D90AAAAAbzoPu286D8xvOg93bzoP/286D3dvOg//bzoP/286D3dvOg8RbzoP7m86D8wAAAAAAAAAAG86D7tvOg/dAAAAAG86D7tvOg/dbzoPd286D/9vOg+7bzoP/286D/9vOg93AAAAAG86D6pvOg//bzoPEQAAAABvOg+7bzoP3QAAAABvOg/ubzoPqm86D3dvOg//bzoP/286D/9vOg//bzoPdwAAAABvOg9VbzoP/286D3cAAAAAbzoPu286D/9vOg//bzoP7m86DzNvOg93bzoP/286D/9vOg+qbzoP/286D3cAAAAAbzoPEW86D/9vOg+7AAAAAG86D7tvOg/dbzoPM286D/9vOg9VbzoPd286D/9vOg//bzoPZm86D/9vOg93AAAAAAAAAABvOg+qbzoP/286DxFvOg+7bzoP3QAAAABvOg//bzoPd286D3dvOg//bzoP7m86DyJvOg//bzoPdwAAAAAAAAAAbzoPZm86D/9vOg93bzoPu286D91vOg8zbzoP/286D3dvOg93bzoP/286D4hvOg8ibzoP/286D3dvOg+7bzoP/286D/9vOg//bzoPmW86D7tvOg//bzoP/286D91vOg8iAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAP//AAD//wAAtAEAAKTkAACm5AAApmQAAIZkAACHYQAAhyUAAJclAACXpQAAlAEAAP//AAD//wAA//8AAA=='},
	];

  

	var title = document.title.match(/^(.*) \(/)[1];
	var id    = location.pathname.match(/\/tt(\d+)\//)[1];

	function html() {
		var h = '';
		for(var i = 0, len = sites.length; i < len; i++) {
			var s = sites[i];
			h += s ? '<span><a href="' + url(s) + '" target="_blank"><img src="' + s.icon + '" title="' + s.name + '"><\/a>&nbsp;</span>' : '&nbsp;&nbsp;';
		}
		return h;
	}

	function url(site) {
		var u = site.url.replace(/%id/, id);
		if(u.match(/%title\[(.*?)\]/)) {
			return u.replace(/%title\[.*?\]/, encodeURIComponent(title.replace(/ /g, RegExp.$1)));
		} else {
			return u.replace(/%title/, encodeURIComponent(title));
		}
	}

	var bar = document.createElement('div');
	bar.style.cssText = 'position:center; text-align:left;';
	bar.innerHTML = html();
	var h1 = document.querySelector('h1');
	h1.style.position = 'relative';
	h1.appendChild(bar);

})();