BuyukBang IMDb Bar

BuyukBang IMDB Bar enables direct searches from IMDB

// ==UserScript==
// @name           BuyukBang IMDb Bar
// @description    BuyukBang IMDB Bar enables direct searches from IMDB 
// @version        4.0
// @author         BuyukBang
// @scriptsource   https://greasyfork.org/tr/scripts/11317-buyukbang-imdb-bar/code
// @uso:script     29190
// @namespace      http://buyukbang.blogspot.com
// @homepage       http://buyukbang.blogspot.com
// @icon           https://2.bp.blogspot.com/-QOHo8rGr8Kc/TrptL2NGlLI/AAAAAAAAAA0/0td1ySq9g_k/s35/buyukbang.jpg
// @screenshot     https://1.bp.blogspot.com/-DRn5a8TZ1r0/WjUn_cgU2FI/AAAAAAAAARs/0AoRG6o0N84TROJKasvJfnBYU9-Xf821ACLcBGAs/s1600/2017-12-16_17-01-21.jpg// @include        *.imdb.com/title/*/
// @include        https://imdb.com/title/*/
// @include        https://imdb.com/title/*/#*
// @include        https://imdb.com/title/*/combined*
// @include        https://imdb.com/title/*/maindetails*
// @include        https://imdb.com/title/*/?*
// @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/*/?*
// @include        https://*.imdb.com/title/*/
// @include        https://*.imdb.com/title/*/#*
// @include        https://*.imdb.com/title/*/combined*
// @include        https://*.imdb.com/title/*/maindetails*
// @include        https://*.imdb.com/title/*/?*
// @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/*/?*
// @grant          GM_log
// @grant          GM_openInTab
// @grant          GM_addStyle
// ==/UserScript==

/*

Here is the list of all supported direct searches:

Subtitle search
----------------
Turkcealtyazi.org
Planetdp.org
Yedincigemi.com
Opensubtitles.org
Subscene.com
Podnapisi.net
Google.com

Torrent search
--------------------
Rarbgmirror.com
Torrentz2.eu
Kickasstorrents.to
Thepiratebay.org
Google torrent search

Streaming Search
--------------------
Netflix.xom
Amazon Prime Video
Youtube

Movie Information (Turkish)
---------------------------
Beyazperde.com
Sinefil.com
Sinemalar.com
intersinema.com

Movie Information (English)
---------------------------
Metacritic.com
Rotten Tomatoes
Criticker.com
Allmovie.com
Mrqe.com

TV
--------------------
Episodeworld.com
TV.com

General Information
--------------------
Google.com
MoviePosterDB.com
Wikipedia.org
Eksisozluk.com

-----------------------------------------------------

This script is based on following scripts:
- "IMDb->DirectSearch Fixed" from mohanr
- "itas" from tukankaan
- "KG-IMDb" from KaraGarga
- "IMDb Search A2f" from Akif

-----------------------------------------------------

Changelog
---------
v4.0  (13.03.2021)
------------------
- Added Trakt.tv
- Added Themoviedb.org

v3.9  (12.06.2019)
------------------
- Added Netflix
- Added Amazon Prime Video
- Divxplanet.com replaced with PlanetDP.org
- Filimadami.com replaced with Sinefil.com
- Removed closed site: isoHunt
- Fixed broken Subscene.com
- Updated all icons

v3.8  (10.02.2019)
------------------
- Replaced Rarbg.to with rarbgmirror.com

v3.7  (06.03.2018)
------------------
- Fix for IMDB URLs

v3.6  (03.03.2018)
------------------
- IMDB URLs changed to https
- Removed closed sites: Sinematurk.com, Tehparadox.com

v3.5  (16.07.2017)
------------------
- Added: Rarbg, Google torrent search
- Updated domains: Divxplanet -> Planetdp.org, Kat.cr -> Kickasstorrents.to, Torrentz.com -> Torrentz2.eu
- Fixed broken sites: Subscene.com, Sinemalar.com, Criticker.com
- Removed closed sites: Sharebus.org, Osloskop.net

v3.4  (28.01.2016)
------------------
- UI enhancements

v3.3  (28.01.2016)
------------------
- Compatible with new IMDB interface
- Divxplanet.com domain replaced with Altyazi.org
- Added Kat.cr

v3.2  (25.07.2015)
------------------
- Fixed broken sites: Podnapisi, Isohunt, Sinemalar.com, Rotten Tomatoes
- Removed closed sites: DivxForever, Filestube, VeryCD, Divxplanet Ed2k, Youtorrent, Scrapetorrent, Fenopy, Film.com.tr

v3.1  (23.03.2013)
------------------
- IMDB ID search instead of title for Turkcealtyazi.org
- Direct IMDB ID search instead of G-Search for Divxplanet.net
- Added Mrqe.com
- Added MoviePosterDB.com
- Code cleanup

v3.0  (23.12.2012)
------------------
- Added new IMDB search result compability for URLs ended with ?ref_=fn_al_tt_1

v2.9  (09.11.2012)
------------------
- Metadata update for compability to the latest greasemonkey versions.

v2.8  (09.11.2012)
------------------
- Added Sinemalar.com
- Added Filimadami.com
- Added Sinematurk.com
- Added intersinema.com
- Changed Sharebus.com to Sharebus.org
- Removed closed sites: Btjunkie.org and Demonoid.me
- Removed Sinema.com

v2.7  (11.11.2011)
------------------
- Fixed all links effected by IMDB title change

v2.6  (10.28.2011)
------------------
- Fixed broken TV.com

v2.5  (10.28.2011)
------------------
- Added Tehparadox.com
- Fixed broken Beyazperde.com
- Updated Yedincigemi
- Updated Google subtitle search
- Updated Google torrent search
- Updated Demonoid.com
- Removed closed sites: Rapid.org and Torrent-Finder.com

v2.4  (10.20.2010)
------------------
- Updated for the new IMDB design
- Added Episodeworld.com
- Added Film.com.tr
- Removed Film.gen.tr
- Fixed broken Rapidfind.org
- Fixed broken Metacritic.com
- Updated Torrentz.com icon


v2.3  (03.24.2010)
------------------
- Added English subtitle search for Opensubtitles.org
- Added English subtitle search for Podnapisi.net
- Added Google subtitle search
- Added Btjunkie.org
- Added Demonoid.com
- Added Rapid.org
- Added FilesTube.com
- Removed closed site: Rapidfind.org
- Removed Mininova.org
- Removed Rollyo.com searches

v2.2
----
- Fixed broken Yedincigemi and Allmovie search links
- Updated DivxForever subtitle search to use imdb code instead of movie name

v2.1
----
- Fixed wrong search problems caused by strings like " (V) " in IMDB title

v2.0
----
- Fixed broken search links
- All search engines are optimized for better result
- Fixed the problem caused by " character used in the IMDB title of the TV shows
- Added Torrent-Finder.com
- Removed closed sites: FindHash and SpyTorrent

v1.5
----
Updated Altyazi.org subtitle and ed2k searches

v1.4
----
Updated DivxPlanet.com subtitle search 

v1.3
----
Sharebus.com search updated

v1.2
----
TV.com added

v1.1
----
DivxForever.us replaced by DivxForever.in

v1.0
----
initial version

*/

// --------------- SEARCH ENGINES --------------- 
//  You can remove or comment out below lines if you disable a search engine from the script.

var trackers = new Array();
var cleanTitle = new String(getCleanTitle());
var imdbCode = new String(getImdbCode());


//-----------------------------------
//------------SUBTITLES-------------- 
//-----------------------------------
//Blank
trackers.push(new SearchEngine("blank", "", false, ""));
trackers.push(new SearchEngine("blank", "", false, ""));

//TurkceAltyazi - Subtitle
trackers.push(new SearchEngine("Subtitle: TurkceAltyazi", "http://www.turkcealtyazi.org/find.php?cat=sub&find=%imdbkod", true, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAZFJREFUOI3NkrFLW1EYxX/3vRtjeEaTmDRaBEEUHBQUCq5makfHboJT61KnYofi0kWdFIR2EfQvkNJBFCmiDtqGDpWSxQq2oFYTkpC8mFdvrkOM+jBK3Py27/I7h+8crtDFbBurbydJ/33CQ6YhmuT59DvJj4URtf3xpRAPkqM1mMGOA0n2T0vBEyYfGQDAzB9hqhxOY6dLIJO/UKFutDAQpf8EDlcw7ZOARDnSDvUTffUFgNONeVT+H9EX4y6D/cU3PB16j7cxjJPLUPgQog4wbkLZve/ULY+iq5zs9zik5mKUzh00XDGXBuX1bHMWyyxWDy0gUtglFV9ClNdyNABv6ifJtRnqf3/mvjINAWJrivRJgiZZujbwnx+j18fuFVcmmImjd+II0xWBmsTVWONurLZ5ZAZaQ1ZZEOy8BapILznlu/UukT7nygCwB6exWnvIHCRcYH1XDNsex/o24SpREmg/1LrcrCEgsj6K+lr9XMsAUfl6GmhqO5X0DX8yc8fNFNMNlUyeWsJ7/TbPXs9eAHcqgNEnNuvtAAAAAElFTkSuQmCC"));

//PlanetDP - Subtitle
trackers.push(new SearchEngine("Subtitle: PlanetDP", "https://www.planetdp.org/movie/search?title=%imdbkod", true, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAf1JREFUOI2Vkz1I1WEUxn/nvP/bjXuvtyLNRqvFjC5GFBUWdKmlpWhsDLcWuWNDNDekODY0RoNTOFWLGiERVt5r3qxAxPIjHKSS6P++72nwqy8tD5zpnOfHw8M5YmbCpLYSaUFkkH1hiS2UAtAS62Aes17eJ1e2AsDMZK3fZJptQh/Z22TOJpKLv8w26HXAWCFv1YbdZiY2nrlm4xmzembG6tsO/xswlj1gtXzWqrlXNprvXluoZas2ljWrZYeslj34N8ByBl5LePWYvsNCF6OFeaoNxzn0rYR3FaLrAPeaWu4J1Vz7nyEGLeETJU2mLDjMS6OlDPOiWKP0tYegBb7LIN6dIrgRXhYeM9LQwUhRVwCuDS85UjdFUPCKmANEeb4jR/vnJaLrM788I7iyRR3E5PKqg1aiFgluUoJDxEVSKXNksQ1zJZ7tmiW6XoLDUgepG5YoJzi62JesONhP1EZwS6g+4NjCJQCeNvWjegEgelBlGqyTkwsPVzMQG2jKR+OLinRyZu4uAEPNN6NxQ51hHkSZR6xCx6d7v99RQtSdKgIWiwzsLWP0o7JdAhAlClzn9OytjQ4xIZVGUyFGd9slRAxdsXsHrMLZmU1/IwHZQxQUsBQV5b6qdVH+OL+ZcB2g2iIBEIYRu8q5D/X/Ef6UgUVEKpyf7tmKcLV+AFjUL400aZecAAAAAElFTkSuQmCC"));

//opensubtitles.org - Subtitle (Turkce)
trackers.push(new SearchEngine("Subtitle: Opensubtitles - Turkce", "http://www.opensubtitles.org/tr/search/sublanguageid-tur/imdbid-%imdb-id", true, "data:application/octet-stream;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAEgAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACqqqr///////+qqqoAAAAAAADMzMzu7u7///////9VVVUAAAAAAAAAAAAAAAB3d3eZmZkAAAAAAACZmZmIiIgAAACIiIgAAAAAAABERETd3d0AAAAAAAAAAAAAAADu7u4REREAAAAAAAARERHu7u4AAABERET////////d3d0zMzMAAAAAAAAAAAAAAADd3d0iIiIAAAAAAAARERHd3d0AAADd3d1EREQAAAAAAAAAAAAAAAAAAAAAAAAAAAB3d3eZmZkAAAAAAACqqqp3d3cAAADMzMxEREQAAAARERHd3d0AAAAAAAAAAAAAAAAAAACZmZn///////+qqqoAAAAAAAAiIiLu7u7////////u7u4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"));

//opensubtitles.org - Subtitle (English)
trackers.push(new SearchEngine("Subtitle: Opensubtitles - English", "http://www.opensubtitles.org/en/search/sublanguageid-eng/imdbid-%imdb-id", true, "data:application/octet-stream;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAEgAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACqqqr///////+qqqoAAAAAAADMzMzu7u7///////9VVVUAAAAAAAAAAAAAAAB3d3eZmZkAAAAAAACZmZmIiIgAAACIiIgAAAAAAABERETd3d0AAAAAAAAAAAAAAADu7u4REREAAAAAAAARERHu7u4AAABERET////////d3d0zMzMAAAAAAAAAAAAAAADd3d0iIiIAAAAAAAARERHd3d0AAADd3d1EREQAAAAAAAAAAAAAAAAAAAAAAAAAAAB3d3eZmZkAAAAAAACqqqp3d3cAAADMzMxEREQAAAARERHd3d0AAAAAAAAAAAAAAAAAAACZmZn///////+qqqoAAAAAAAAiIiLu7u7////////u7u4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAD///////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"));

//Yedincigemi - Subtitle
trackers.push(new SearchEngine("Subtitle: Yedincigemi", "http://altyazi.yedincigemi.com/ssearch.php?q=%imdbkod", true, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAtpJREFUOI2Fk01sVGUUhp/vzr1tKTQKlRqFlo0BU4hN1GGhBGIygTRAjSY1gaVKcKEB22GnUYNhBwlolAYVQmADMQRYFUgAtULCVCaSVqedaach6c9M79w7P3dmvvv3uaBVakh4N+ec5H3e1XkFT9Cu/pEtXr2+VVZrL9UrFa9qF0cqBfvmxPD+B//36o8fb8dHY4rwiFJhNKIJNA2ECgkDH9/z1Kq1h68WctYh3GNji4y2uHQfSH4chuE1IURU0zSEpqFpAukqyiVJ4NaFUyz34Fp3YO9bi5wAiO272xMx9MuRBoNIRAcBgedhz5doX+nwbqyZ+dlZQs/HKrhcuXrPTiQyURhM62/2/NYi6853RmCgQgNlGAigUpFsaA/4/stOLvycoO/QEK0tVe7e2Ydpjj+bSNjHgZ26Wc29s21T85ovDnSg6xoIge8Lbv+e5YXVy2gwPI6eGEE6MF2eJx4/T1ubBErdsP4VvWJaO1sadArmLMNJmyBUdG1sZTKVYctrUXK5AtnxOQgtwOHCxSEMXQI1AW5Ml3ZhfWpUsv/TFKOZRpoa4at+k9NnUnz0YSeyPo10LBobS3z+2at0dS3DcR4yMPCAm7cmN2iOVdBvDE6RvGdRmZund4fPn/czjP9VIZMeYnXbfdqeryGlxcmBa+za7fNcq8kvv2YBQ9eqdn6qVszjFGZoUjO88brJ6Z+ygMPhr5NE9L+J95WBPGFQAtKUy3mCQABhVkBvH3hHoUa8fx1F2+bUjzkgACTdOzwOHmxmaipACJ3ZuTrnzuVJjbmA2iYg9iJ4Yx3tTcu/Of4y7+25jpQ+IBdCAkCxYrmOUw1QKgAiAEmYiUZgogwrZWdny/bhP6ZJpx8C7r/go18TuN7iri3McA84E+K/Jqz7AeofLKQ/TZ/A9LewxF28As/UQG0G0fRkTk0C78PM2SVdWKpVa6GhF9gKdIDwQaWBQfAugVl+3P0P+ytZ7sJrm4sAAAAASUVORK5CYII="));

//Subscene - Subtitle
trackers.push(new SearchEngine("Subtitle: Subscene", "https://subscene.com/subtitles/"+cleanTitle, false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAACBUlEQVQokU2Sy0vUYRiFn3dmoCIaUwgXlUEjXUydFg5RKghKBF2IapFRbSOSaBtFiyCENm36D6Jl0CKDIBfZfWFkQrgoiCG6aF6brKF+57T4zUTf8uPwcs5zTmw4eYX6sx0YGxvJQRgrCWzJVuBcTRdhO6yaGmxjTIINTtXIOdsAVtjYjatXXjy+b7C/tFD5ef/FxPCte3OVH4aQsGxlG4p9gZFSV1dPHxjsL5W/zlZ//+7p3LKpuene89chB05d51DyLwH2YH8J2DM0HPjcob7bD18ig2ysBMjUpJIloPx1Frh+5pikm3dH55e+Y9US2+Ekm2/vRUqThJOZ+aX9u4sdmzfs7dox8vjVz+ovMHbYtQxr2ruxsQJhTZU/zcx/H+ja0dzU0Ltz28jT17+q1VCSgkLK5tu6sVLSQKA378rTcwsDpY7mpobO1o13Rp8BdoIMzgA1Sk5If61bD57sv3AN6CluK7a22IklMFImnFiSZWLtyhWXTh0cOro3pIn3H59MTAH51auQIu3Syin5EzhkrM5C4eyRAaBlXWN6frGyPDY+iU1EijWb374rJR3w4fP0t7nFUluh1FboaG1ZrCyfuHzjy8wsYJQWEOsPnwdR7yWUAL3FrcDY+CR1J+nAUJIDWfqfNNKjV2/DCdSvWIClyETOUqRDsmxZDuqzTT1gsOVU8hd6pofIlPFCzAAAAABJRU5ErkJggg=="));

//podnapisi - Subtitle (Turkce)
trackers.push(new SearchEngine("Subtitle: Podnapisi - Turkce", "http://www.podnapisi.net/subtitles/search/?language=!tr&keywords="+cleanTitle, false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAYklEQVR4nGNkgID/DMQBRlwCcAPevXuHVaeQkBBWQ5gIaUQGUDUoroUbgGQDToCkBm4I0S6AyaOrwwgDEgAjAwMDAwuyDUJCQnhdApNH9i5JYYBNHUmxgE3dwLtgNBaoEAYAkKI8fEy0ctAAAAAASUVORK5CYII%3D"));

//podnapisi - Subtitle (English)
trackers.push(new SearchEngine("Subtitle: Podnapisi - English", "http://www.podnapisi.net/subtitles/search/?language=!en&keywords="+cleanTitle, false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAYklEQVR4nGNkgID/DMQBRlwCcAPevXuHVaeQkBBWQ5gIaUQGUDUoroUbgGQDToCkBm4I0S6AyaOrwwgDEgAjAwMDAwuyDUJCQnhdApNH9i5JYYBNHUmxgE3dwLtgNBaoEAYAkKI8fEy0ctAAAAAASUVORK5CYII%3D"));

//Rollyo - Subtitle
//trackers.push(new SearchEngine("Subtitle: Rollyo", "http://rollyo.com/search.html?q=%title&sid=327654", false, "data:image/gif;base64,R0lGODdhEAAQAN0AAPr//8ABAdgAALEAANEAALgAAMgAAP319fjKyuEzM9oSEup1deAjI+EqKvvm5qsAANkKCuhYWOFAQOZNTdkfH8gSErcSEqEAAN8cHN4SEtESEut7e/W8vOhmZu+Li+VRUex7e9qYmPOSkt+OjsESEvjPz/bAwJ4AAP3p6fKhoeyamvW5ueSqquQ5OeM5Obc4N8o7O+RAQMtbW9Q7O7cdHdIYGO2EhO1kZO1bW84zM+hfXwAAAAAAAAAAAAAAAAAAACwAAAAAEAAQAAAGl0CAcEgsGo9GBGjSSjRqJIulosiADpGI5DA8iCSBgkEAWSwAJk8nEdkgUDdDQJBpAEofwZCMcBAKBAoYHgAcNmsfCwgAOAEDBgoMAhMrRAccMY4DARqSAmQYDRQEBgUDDw+cngSkAWEDsA8XBRUun6xyrqYDFycDISkCrKRyBbsvRBujBrnGNCxGDio6MzkwMiMOSNvc3EEAOw%3D%3D"));

//Google - Subtitle
trackers.push(new SearchEngine("Subtitle: Google", "http://www.google.com/search?hl=en&lr=&q=subtitle intitle:'"+cleanTitle+"'", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAglJREFUOI2Nk99L02EUxj/vNkthRdToFxLNJqaJESYVXtSN3ZS1CqMM6qKLQKJ/oPsF3eV1F1HRBrVcGV4FdRPeJUK0oeYaUmyzRbOxpvtuTxd+v7atIA+ci/e8z3nOe57zHmgwSQFJEUkzksq2z9ixtkZ8bSKSxvR/i0r6Z3LCQRRfxZS7claZ7u3KHPApd3lQxfE67rhDYmyCMSCo5RLfh89QSc6A2w1WebWCZwNaLtLU08fWxy+cus+NMRecniVJi+dOKtPfrUzPLhUij2TNz8lKzqkQfqjs0XZV8j8a2/FjiyPrQ1iZI61Kd+yUtZBahxSSpDC2wrImA1qZQMXo6HqTJSnhAfwAys9h3NA80FsnsLn1kw6vWTv/qkCwy829ay0AbZ46sMBUGkZUY9uaDW4DtQgXkATwbG6nBEwsxOtHPLqJRMhLIuTl4mEPhbLY53M51/Mu4D1AevcdDi6e4NRUhM9LX/6qns3D/UmLchX6O9cePmW0+j0/AQzErvO1mOVbpcjdQyMca+3FZVxMp6e5/SaFL32DPT6LJzdbHAK/85GiwPlSdYXg+Agfl1J4jJuyKghoMi5kCuzQcd4OhWjZCMAzY8yQQwAQB/YDvJx9zYPZGO9ycapA35YAVwOnudQ56FSOA13G/JmOsw/Rdcz+qRqXqU51yS8prNXlWrE9Ycf2NuJ/A6uf5JCErH2FAAAAAElFTkSuQmCC"));


//---------------------------------------------
//---- Movie Information/Critics (Turkish) ----
//---------------------------------------------

//Blank
trackers.push(new SearchEngine("blank", "", false, ""));

//Beyazperde.com
trackers.push(new SearchEngine("Beyazperde.com", "http://www.beyazperde.com/ara/?q="+cleanTitle, false, "data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABnRSTlMAAAAAAABupgeRAAABOUlEQVQI12NggIC0mQxpMxmIAIwIDchgVjohDcgArhmbNkacduPVxoBPG3F+w2YVeXqwe9pBTYqPk/XgrecfJyYi9MxKZ2BgYEFTysTI2BtqUeCsy8DAcOzuyyDWRS8/fUf2N3o86MsIX6gNhkuXrzvZtfMicvwwoTmHl4MVmSvEzY6mgAnNT+cfvzl+7yWE/fnH79Vn76FpYGZgYGAw9rVTlbRVlfz88/erzz+2XH709defi4/fla07efrBa0URXh9deQEu9ofvvjAY+zIypM2s9jJs8TdlYGB4/vFbwLRdpx68gptnqiC6Mctdkp+LgYEha9mR6QevMckK8lR7GUKkJfm5Stz0kB1Q6qYPUc3AwFDipsfDzsrCycb8+vMPHnaoX//8+4es4c+/f+++/oSwP3z7xcrMBABQ2W0R+3SKhgAAAABJRU5ErkJggg=="));

//Film.com.tr
//trackers.push(new SearchEngine("Film.com.tr", "http://film.com.tr/search.cfm?keyword=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABkElEQVQ4jZWTTS8DURSGn2kvnUY601SJj0VFLKxId11opj9A+AVIbGyleyJIrCz8AP6BBEsJWixs1caCMKRJF5hMfZaZXguJBHeKk9zNPc8573tO7tWklJzOzMjK5ibPl5f8JaI9PXSMjtK/sKCFxw1DXiwt4TsOISn/dHzHwT06QtP1OW2nq0t6rhuoFjEMOsfGaB8e5vnqipOpqc+cME20XV2Xjeymt7eJZ7N4roswTfai0S950ez7gcXJiQni2Sz24iI3GxvEczm+86KRupHLAVBdXeWlXKZSKv1gRLheD2yQGBqiZts8Xl8TDmBCqsvWkREynkcklSKSSpHxPNqmp5UNRJNiB9JxuC8WiVkW98UiD4UCT+vrqFjxFv5p7u7gAOP4mJhlUVlZ4XZr6yOhYJUjALQMDgLg7u8HIR8O/JC6R8yyqNk2tWoVAphAB/rAAAB3h4cN1QFEPZHg+1NOptMAVAsFXhVzfxabJtr58rI8m539VUkVffPziN58XgNkeW3tX9+5e3KS3nxeewfTC5/hNeEvAgAAAABJRU5ErkJggg=="));

//Sinemalar.com
trackers.push(new SearchEngine("Sinemalar.com", "http://www.sinemalar.com/ara/?type=all&page=1&q=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAp1JREFUOI11k8tLVHEUxz/3MXcydRyncVLHR4pMRk1UVIuSyoVCUJveIC2CoEX9AS2qXbtqFxQt2gYtCgKjoJIiS+xhPkpM1JwxS21mnJl7vXPv3Ptro9hoHjiLA9/zPed7vhyEEKyZltUsTPOgcN31IjlzS+iZCysxMqtDAsAwjuqJ8c60Hn9Gzmwf+drd2vn8yTFc4SsACyGWq5y9g/z8bSynJ2tMni7eWFc9Gx9GxjeWzjop3Ug0RLfufk5x4MxSi1owW3bdj596tgcrQ/vqG2swk1OA5gYq1cag4sPIaLx6/bS09XCHAjjACgk5e1dNfbVa31iJvZBELPwkVNskS3hBsejtHcq2tp2+t9RcKMF1fUZiond9sC4i3Dg5U0eRvEhWFll1kWQJKGN+Lv/IXxs5tlqCQHU+DHvIfSHVNwi7qymKRnGnR5l7MMDvNEyO/Ob4iztv/l16mUCRE97OgR/6k/cNbmAeLZXA7i7CGQ3xs1tmMqkQ85tJNO3p/wkAbXMk7vR34b/8DjetIKkOCxNbse1NeEtl1m0J/QDigLKYVqELzQ1jbrmOEjaZf7iDbFctiiKwvRaWDtFTR/qALNAEmEC80IW6DePJwVKS9yP4OwYJXX0LFRkWsjZUqOxvP5heRI4ubrLCxqAvrssm6ZdhYlf2okUyFLWN4ageDt09gV02fQkzdXHNG1BcHJfLpWz4fH+J48mTj3lJdJWx7Uo7FQdaIW/IidnBm4HgnilU7TWSlCgkUOVpwxuaGbvRXOIps2BGQwv4CZ/dCcJFzI4QqIp6U7H+Dn9VFNR1jwt/ASBntTCXbuFPZsNE3+fg5PeRgBKV6xWfp9bN55SpX0bq5Llr11HUbmBoNcHqUIAKICzAI0Ea+AYIgL/4gT69e7NW/QAAAABJRU5ErkJggg=="));

//Sinema.com
//trackers.push(new SearchEngine("Sinema.com", "http://www.sinema.com/Search.aspx?Search=%title", false, "data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////APj4+AXg4OAd0tLSK8TExDjc3Nwh+vr6A////wD///8A////AP///wD///8A////AP///wD///8A+Pj4BdTU1CisrKxTrKyskNLS0qvZ2dmhs7Ozf6amplbQ0NAu+vr6A////wD///8A////AP///wD///8A8vLyDKSkpFfCwsKO4urn5b3c0f2k0L/9qtPE/drs5f3d3d3ww8PDfry8vD/09PQH////AP///wD///8A+Pj4BaSkpFnPz8+u2+zm/T6bd/08mnb9PZt3/T2adv07mXX9gL2m/fr7+/3MzMyeqqqqU/r6+gP///8A////AMbGxjfX19d5/////dLn4P06mXT9O5l1/Uafff09m3f9PZt3/Tyadv2o0sL9/f39/bq6uoHg4OAd////APj4+AOpqalW9PT04/////3R59/9aLGV/dXp4v39/v792uzl/T6bd/09m3f9c7ed/f////3s7OzVuLi4Rfz8/ADg4OAesLCwjP////3////99vr5/f39/f3////98Pf0/ZzMuf07mnX9PJp2/XG1m/3////9/v7+/bCwsGfy8vIKwsLCOtbW1qj////9/////f////3q8/D9o83A/XGynP1ssJn9bLCZ/Wiulv2x1cn9/////f////3FxcV15ubmFcjIyDPMzMyu/////f////3p8/D9erek/Xa1oP12taD9dbSg/XW0oP2q0MT9/P39/f////3////9v7+/e+jo6BXc3Nwhzs7OZP////3////9tNbL/Xa1oP12taD9g7uq/bva0P3u9fP9/////f////3////9/f39/bi4uFr09PQJ+vr6A7i4uEXp6enj/////a3Sxv12tKD9c7Oe/eHv6v3////98vj2/ajQw/3+/v79/////eDg4NfMzMwx/Pz8AP///wDMzMwx1NTUbv7+/v3O5N39dLSf/XW0oP2FvKr9oMu9/Xy4pf19uab9/////fr6+vy6urp11NTUKf///wD///8A+vr6A7KyskrNzc2e/Pz8/ajQw/10s5/9drSg/Xa1oP11tKD9frmm/fn5+fzQ0NCFwsLCOvr6+gH///8A////AP///wD09PQHzs7OLq6uro7d3d3j3ezo/bfYzf2y1cr9yODZ+t7i4c6rq6uEtra2Rvj4+AX///8A////AP///wD///8A////APr6+gPY2NgkrKysUJycnHnS0tJqsLCwicTExE24uLhF3t7eHvr6+gH///8A////AP///wD///8A////AP///wD///8A////APz8/ADy8vIK6OjoFejo6BX09PQJ/Pz8AP///wD///8A////AP///wD///8A//8AAPx/AADwHwAA4AcAAOADAADAAwAAgAMAAIADAACAAwAAwAMAAMADAADgBwAA4AcAAPAPAAD/fwAA//8AAA=="));

//Sinefil.com
trackers.push(new SearchEngine("Sinefil.com", "https://www.sinefil.com/ara/%title", false, "data:image/x-icon;base64,AAABAAEAEBAAAAAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAABV0v8vVdL//1XS//9V0v//VdL//1XS//9V0v//VdL//1XS//9V0v//VdL//1XS//9V0v//VdL//1XS/8X///8BVdL/L1XS//9V0v//VdL//1TN+f9PrM7/S5Kr/0h+kv9Ie47/Soie/0+rzP9U0P3/VdL//1XS//9V0v/F////AVXS/y9V0v//VMz3/0qIn/9CUFX/QEJC/0BAQP9AQED/QEBA/0BAQP9AQkL/Rmt4/1LC6v9V0v//VdL/xf///wFV0v8vVdL//1PK9f9DWWH/QEBA/0BAQP9AQED/QEBA/0BAQP9AQED/QEBA/0BAQP9GbHn/VM35/1XS/8X///8BVdL/L1XS//9U0f7/Soui/0FHSf9Gbnz/TJax/1Cu0P9OpcT/QlRa/0BAQP9AQED/QENF/1G84/9V0v/F////AVXS/y9V0v//VdL//1PE7f9RuuD/VdL//1XS//9V0v//VM76/0Zsef9AQED/QEBA/0BAQP9QstX/VdL/xf///wFV0v8vVdL//1XS//9V0v//VdL//1TR/v9Txu//TJKr/0Rfaf9AQUL/QEBA/0BAQP9BS0//UsPr/1XS/8X///8BVdL/L1XS//9V0v//VdL//1PE7f9Jg5j/QUhK/0BAQP9AQED/QEBA/0BAQP9AQ0X/Soyj/1TR/v9V0v/F////AVXS/y9V0v//VdL//1K/5v9EXWX/QEBA/0BAQP9AQED/QEBA/0BCQv9FZ3P/T6nJ/1TP+/9V0v//VdL/xf///wFV0v8vVdL//1XS/v9Mfo//QEBA/0BAQP9AQED/QlJY/0qIn/9Sv+b/VND9/1XS//9V0v//VdL//1XS/8X///8BVdL/L1XS//9W0v7/TG15/0BAQP9AQED/QEFC/1Cz1/9V0v//VdL//1XS//9SveT/U8nz/1XS//9V0v/F////AVXS/y9V0v//VdL//0dzg/9AQED/QEBA/0BAQP9FZ3L/VJiw/02Dlv9EYWv/QUdJ/0yVr/9V0v//VdL/xf///wFV0v8vVdL//1XS//9Pqcr/QUhK/0BAQP9AQED/QEBA/0BAQP9AQED/QEBA/0BAQP9EYmz/VM34/1XS/8X///8BVdL/L1XS//9V0v//VNH+/0+qy/9EYWz/QEVH/0BBQf9AQED/QEFB/0BERf9CT1P/SX+T/1TL9v9V0v/F////AVXS/y9V0v//VdL//1XS//9V0v//VdL//1LA6P9OqMj/TZ26/06mxv9Rud//VM/7/1XS//9V0v//VdL/xf///wFV0v8vVdL//1XS//9V0v//VdL//1XS//9V0v//VdL//1XS//9V0v//VdL//1XS//9V0v//VdL//1XS/8X///8BAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//w=="));

//intersinema.com
trackers.push(new SearchEngine("intersinema.com", "http://www.intersinema.com/ara.asp?ara=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAABgElEQVQokWNcVrzp6e6XTBxMDMQBYtVh1/Dv+7//v/4zMDD8//v/7+d/DP/xavhx6pekiwiPCteve7//f2ZQjpb5fvoXph4WCPXrzm+Prda6TpqsHCxra7f717r9/PrLMclyutQyDjN2LDb8efdX3VK5l3PesdVnnTKtXj54nSHUIijGz2HI/v/ffywaWOVYTqw9X/Qt0cRbb3nSZk4ejtmf6+5fefzj/C+Gvwy/Hv5B18AsyHx758Pnt189uvLUtcn69cN3z2+/Wm24k5GBgU2A1XWu5e8nf1D88O/TPyUnWXk9aWTbPbbafPv23SLYkIGBYdezYwzSDAyMSKH0/+8/tAD5/eOPlLo4zmBlYEQPQUZGBiYmdFEmhGpGdLmfX38fX3L+46vPDAwM/2ExAvUDizDzlRm3P7/58u/ff4j239/+Puh+yqrOMrF9kXSsKJs+C8QJLHAbGDkY7y9/hjCfmQESZTxmnO8vfWZiZ0KxAaKHmQ97WmRiR7iW5NQKANkDkQ2/USxWAAAAAElFTkSuQmCC"));

//---------------------------------------------
//---- Movie Information/Critics (English) ----
//---------------------------------------------

//Blank
trackers.push(new SearchEngine("blank", "", false, ""));

//Trakt
trackers.push(new SearchEngine("Trakt", "https://trakt.tv/search/imdb?query=%imdbkod", true, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAk5JREFUOI1lk7tP1EEUhb8z7P52FRAhQoSoMbo8LEws1AQtNKGwseAfwMZKS40mxkejRMFHo8QKG0tbLYzRmGjUDiyIATY2Cib4RGFls7tzLJYF1FvOPd+ZO2dyxT/lXNdh0HnwDqC8fJwCvQcPKj/1fK1eK2BnJ1ivgRbwSQgZ5P3VJu+QF0E3gW/gXk1Prxosw3OgYXClYoYKOC0gkUikEYqew/pKhvXgM8htmp4mVG/QG9AQ8sFF+9a8Y7pkUzVgkCV/AU0tEe9Q9AHQEOgNQHCuqw9oAnsxur9oA5CRqA+6whJl0Cz2QlaaLeB+fjsCG53r6pNz3c8gXq5Yj+cd0yuwNEiRImgOPIM0+j1W2gw0KZTqMj4C4WIAb4eQLeC18GUqvAC2gT8i3avBAAWcphSy4O0BKCPv0+rYlxCROnaR8BS4/SNWWmvwSvLRe4FyAAyUU4j6oAuYFGgGsZVACwmn6wnz4r+qAA5AgjWWDTzBqgN9Av8CZjHtBNrTWQ00En7UTAwQeAkkATSBvAHUCp4Bz0QzUoi+gVgANgNbUgnHNih8F9AoLZBiE2hCznXtAR6BTlXn8t2fMTZ7NZNzmPWgT0R/KJb8IEM4TsbDwNGg/NQ4aAx8CHl3yW6uPbJosxh9FbGE3EGddmYSrSPDYdC48lPjq7uQ654EXoIfII0uxNhR6yUSCZzAPCRwDWuf8pPd1ShqX5Of7AY3APcx1xuknoaggYaggQR6gBakt5h0Df5rG9dM0oo9TFAvdn1VpQLRr5DOKj/5ea3+D/ddACQ9Zk6TAAAAAElFTkSuQmCC"));

//TMDB
trackers.push(new SearchEngine("TMDB", "https://www.themoviedb.org/search?query=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAA3NCSVQICAjb4U/gAAAAUVBMVEUPL0gQOU4JKUQgutgDJUEIMUsGN1MnQFYCI0AKK0ZuybNTxMA8qrI4v8wZosEop71QrKcKhaoNueJGd3JjsZ+Ez6oEbZIEao9amIlSjoNbs6cqg68OAAAACHRSTlPR////////R9rHGQ4AAAABYktHRACIBR1IAAAAYUlEQVQYlYXPSQ6AIAxA0TIoLYOg4nj/gwoJC0ES//IlTVtQQK9AAcgqAKqB+oClAsiHEscMyK4YgrV+muYRM6yb1sY4J8RytLBnkOyMdx7xZUQisdSYIuyv/bv081z7/gPKOAci7Rbo+gAAAABJRU5ErkJggg=="));

//Metacritic
trackers.push(new SearchEngine("Metacritic", "http://www.metacritic.com/search/all/%title/results", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAsFJREFUOI1tk19MUwcUxr9bNfyRIsksUGxRh13QrdD23tvbKtEnHxbf2RIWXTQ8zBgTYY/bDNnAh70umVH7gIjRRBOjiY/GGJXouIXYEV2yLZaWlWwGSEq0AuW3BzYQ9Xs8Od/vJOecz9B7RNoa1nJ5Tl7juJYlvVRGMsYM0z3ydq+xzujanar3XNVCSeOZCmUnPSovSVsbFrU/IqkOqbDpsmE96np3qhufJN/OnSGbGr9FVWMEKYB/e5iWjxwkLz/1JWCqDdz4pN6eTK6dc/0J5AkTt21CoRB9p7/jfz0aeYgkjnY6K5BRZ3gNkE2QuWkhteHEbdrCYSQBMF0oMF8sApDP5ZDE2b4k5KLg2l3CTXSR/5ikncAybQLBZr48fJjhoSEAJCGJ2ZkZALLZ5yvwCRvSZkqkzcGZhw6qj9Da2kpvTw9vaqC/n4qaGiQxNzsLwMVL17j5cwBc84lwY6mxGw7y7KJl507u37vHVD7PhQvnVyGnv/2GKq+X5mCQ27duIYnBHzrgWQThxlKj16Mc/LRz1XDyxAkk0dtzarV2ZmCAXaEQ2wIBPmy1GPx+LzyLItLm4OyIg/QBo48fAzBfLNIcDFJbV8fXvb0AjKfTbPX5cGyb2qZ27l6ywY09+W+Jn3AgmUTSGmS+SJPfj6++ge5jR6nZsoW4bRO3LeSNwkQM0mbKWDljkqe/LmjPobKkcY25riKxmF6XStrX0aFSqaTNVVWSIf02tagfv6pU95FF6Z8NX3gkSS+WPtsdKyt1plKqjChqmvrzj9+VzT5XYbqgzdXVkiE9nVrS5wcq1H3spfT3psuG+csbzzSyv5PpKA+uWPh3xJF8SA00tUSpbmxHdSbn+h34K7zuld8Nk89zVeVXykxUKpcztLRgyNdYVjJclmoNaXrjujCtA6yBrGEZzKlax7WMVDIyQu+N8790hM1k8ujEKwAAAABJRU5ErkJggg=="));

//Rotten Tomatoes
trackers.push(new SearchEngine("Rotten Tomatoes", "http://www.rottentomatoes.com/search/?search=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAc1JREFUOI2Vkktrk1EQhp853y2R2IIo3lBRUZrGjb9AoYp/QKFQEDeioDs3bl0UpRRLl65EQdy48BeoC1duTEWrNVAVEZVIa0lq813OGTdpmuQjtH1Wc5h33pk550A/08enmB19B8DkngtMHbyc03Th95zuHRhHxANTYab8kmJwltgtw4/HgwykE82MviLyz+AUnIIIKKDuDyIWwxK+fcH1jze7DcxGtPqILPvUtlVUOZW6FM+UrvzLdj+vNU7Mv/574/e5ofe5CS5OHpseigq3FgW9s7CSfN5V4OrRUvTr2bd074dGQNHgQkE9gwmEFF2N3rZKHYOsEv70WroPp2BhduLI2tjXplepLodpwctfnIB1rhZW45OSlL27wY7oduK0IwjWLM4XbGByxeuERkjq8SVfA/+8Ve1JpsV8136cKjJsJgyG/X31W0IBFXPICGzebjCeUaUusrmyHwHEue8Ga994bN/BiGAb9qkAxKeLiYHAbbHYF7DWLYRz8YgBkJX4mifC4EfbIBDInDbDuXgE2l85XHQP43pr3Kk2QyN4Qs9Spt01NELq3HxUbe1cz+WWT8refQ39MUQOIzIMpKK6hHM1GtmD8It70q3/D6WKrgmCznUMAAAAAElFTkSuQmCC"));

//Criticker
trackers.push(new SearchEngine("Criticker", "https://www.criticker.com/?type=films&search=%title&", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAACb0lEQVQokX3PO0xTURwG8HPPObePFOittKUtUiEQCpLQIBrFiBAXEzVG46DGxDgY3Y2Lq25q4qZxcsbFuOhghIQJURCsUKHYS59AH9zS9tL7Ov/jwEjjN39f8v0Ezjn6b15PfQ35PZbF5mPJ549u0r16Y+lPyibSsWjfQUMzTKWqZrZ3k7niZq44Mx+/NB7dzBZM4AghGpfzO+Xqj5Xkp9mf6UIlmS3I+VJZqVkMGAcqCFKb6/6NiUh3YHZxDSFEHaKY2SnH5Xwske0Nd/R0+iZPDgR9UlfHkaBPCnmlD9MLC79lQLxUqSOEqLvVyTkfPd7z7tkDr9Ry2NDmcvYdC0QjXVOf53TDpA6baBdFwYUJFpqiHXZxdnFtI7W9mS8hJGBCiFJVy3s1QWg+aJdaz0T77l0bP+r3aLpBRUocdnFfM1aTOa/UalrMYmAxZjFgjAGgX+vpb7G/cqawKm9hjKkgCG0tTovBxYcvkCAA58A5AADnHDhwzg3z1ZO7VydHVM1QGzq1iVgzTE03Xz6+PdgTMhkD4ADAgAMAQiiZKUx/jyvV/VgiazFGCcY2SikWhvvDY8O9hw1yrtjQzesXRjVdr9Y1SglxOWzgdtXURlM0wXh5PW2Z1tJa+pZpUkIwJkTZU5Wq2nTgctoHuoOXJ0/ohllTGxQhRLDACX769uOb99NBrxTyS51+T8DrDnk9AZ9bJCRfrMzMry4nMudPDVKE0FBvZzjYXqs3DNOSc8UvcyvF3Wql3gAGwLnA2MTpoTtXzio1VdUMihCKRsIIoXMj/QcfALiq6buVeragpLZKidTO0lpqI7UdT+Yj3cF/dktQ+wjrMXAAAAAASUVORK5CYII="));

//AllMovie
trackers.push(new SearchEngine("AllMovie", "http://www.allmovie.com/search/all/"+cleanTitle, false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAXpJREFUOI2lkk9LAlEUxc/4tzGFFFEXMq6MCASpTdAiqDalLYqQqHWZ0LT1S7Rt0VfoC0iEiIvCRRQJKo6bHEHThX/GhYnNmzbNc9C388KDw72/dzjv8oAFiws/1jUAqCVCVFv9gpsFT9pyb5alAiazCqKaAcDEu4YsAzIauuZYfVg7DVooaeII8zDY6SVDVWPuFVafpjUUTbCe195mh+mUGEunxNhs38jSBJqqBoyQJncsm7H9y3/9xAm+XxZLE1R2LUGjQSaXjQwU5WCgKIeZXDZinBlZ5g40uWPeOztJ2G02CQDuHu4TmtwprhZGcyxNsPb8823oexut5pXL6Xx3LTs/Gq1mEoCXxVIDk83+peuL2+s4IcTT7ffj3UE/Tghxn4vJIxZLDco73JauP8sl0cHzL1K+sCHlC1EHz78WK+UbFsvcQUmqRgGAE3x6axsAwsDcP5j+aat9rE3GdgCw+oU6y3jSlkOzLH2CdBxY0rWq9Dysw2IXrj98oq7vSD1iyQAAAABJRU5ErkJggg=="));

//Mrqe.com
trackers.push(new SearchEngine("Movie Reviews Query Engine", "http://www.mrqe.com/search?utf8=%E2%9C%93&q=%title&commit=%C2%A0", false, 
"data:image/jpeg;base64,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"
));


//-----------------------------------
//---- TV Information/Critics ----
//-----------------------------------
//Blank
trackers.push(new SearchEngine("blank", "", false, ""));

//Episodeworld.com
trackers.push(new SearchEngine("Episode World", "http://www.episodeworld.com/search/?searchitem=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAACtUlEQVQokU2SO2hTYRiGv//Pf245NSdpmjY2rW1pvYEWoVQQxUEHwVXEFtHFpRRcnFzcBSdB3EQcxMumDoKgUiyFemlLVQw1mrS535NzTv6Tk3P5HCriu73wwLM8BBHhv3mezy3b6nYJIZQQVVVkSfwfIL7vE0J2T75U9R07KIvAJCBUZmgahu1RLbRHC/UBACKSXYPreqlMdnR4aCOtP3ufajsKjYz0LGs2bl07N9luVARJGYr1AwBBRN/H5Fb64P59yynn5vPS9TPh+FDkSw5SFe/lSnpQbD9aPJAIdqgQjEZCBBF38uVYf/h3k3BPTJb9C9M0KMLTNRgOQ0mHxQdbotNcvT1r1zJj42PUdT1ummWT/GoIs6PQtd35h+Z6HjQFnqzh56x/KKEWq9bC/Y2pqYlypU4bLT0Rjy6nsW2TrgNzM+JIVH6fAt2GRJi8+lgo1Mw9IfH1h+Tmtun2OHUclwripx0/XYevRRADcHyMtThQAhUD260Wei76iLXC6teMKAiMEvB9Umj2tg0lQCHbgloHPmc9FwKZihVUJNu2u9wAXjNMi1LCPESJEcHVt2qk5wR/VFi9of/K1bp8IFco8Q43edfVC2DXo2HVdT2myLLT40eG3DffS8zTGi2p0zEL+Z1qpQyAlIlmPQ/FDTGinjw20eNVGtb6cqXG/In+gF1NZ4vlUpFzLrCA1TGQino1S5pJoANXLl+aisuSEiSImC9W98a0x0s7V+9sgiRLqgy+71ht0m14egECiWMnZ97emq4WM5MT4wwAEntjyZ/bV85OKcy/cXcp+y0HrgWOAVYTBsYvzk3fWzjcM+uxWIyxwN+WEDGdLUa1oAPii3ebK+s/bdsZGR05f/roqaPxTCanhbVoJPS3pX/pNlpGx+QsgKqqIiIiWpblIR2M9YsC22X+AA0hhhC5qzPiAAAAAElFTkSuQmCC"));

//TV.com
trackers.push(new SearchEngine("TV.com", "http://www.tv.com/search?type=11&q=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAh9JREFUOI3NkktsTGEYhp//7zln5kx7ZqZNUL0gRZVKRSyQpkhEJHYkIhYVFhIrCRsSC3YisZOuWHRlpSuJSGtFKAsVKmg0MekFaWfa6dzOzLl9Fhoaq9qId/PlW7zP4skL/0VExBGRSyKSFZGciEyKyJW/AaTDSB5M5j15lCnJ57wnIvJ4NV1j+fZrxZGx+Rq3Xue4vLuRLSmzT0RuABGwBIwDPUByufdWKTVkAFRDro7NucnRby7zbsibuSqt9UZCK3XdUNC9xg6TBp/yPtveZ10jaWm6GmMzwJACmC35cntsgeffXUylSBgKx9J4IbhBxPnuFKc6k9yfKDAwnud0p8PZrhROrE5pAMcyvP3NNjuaYlQCoSNlcWxjA73rbb4UfYanKlQDYWS6wkwxoDNtETd19ZcDx+Tuya3OmVqE82zWZW9znHPbUwC8y1WZXPIYmS4zsehxsM1mz7o4huIJgF6WeNMNyZS8CK0giH5bPrqhnqInDH4ssFgLOdyWwDbqfODeSkCDAg8FfijMuwGZgs9sKeBQa4J0TPNhoUZTXNPbksCLeFoOebkS4Jqar5scg3RcMTxV5tpoloHxPO1Jk11r43ihsK/Zpt0x/YLPnUyJ7ErAXJ3i4YG2+sLFniY2pywEAQQNnOhooK8lwfEOB0vzytK82JlW4Z9rbBGRwSiSYiWQXDmQnBtKTkRyUfTzjyJxReSCiNirWem/yQ/iIQGQk4yerwAAAABJRU5ErkJggg=="));


//-------------------------------------------
//-----------General Information-------------
//-------------------------------------------
//Blank
trackers.push(new SearchEngine("blank", "", false, ""));

//Google
trackers.push(new SearchEngine("Google", "http://www.google.com/search?hl=en&q=%22%title%22 movie&btnG=Search", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAglJREFUOI2Nk99L02EUxj/vNkthRdToFxLNJqaJESYVXtSN3ZS1CqMM6qKLQKJ/oPsF3eV1F1HRBrVcGV4FdRPeJUK0oeYaUmyzRbOxpvtuTxd+v7atIA+ci/e8z3nOe57zHmgwSQFJEUkzksq2z9ixtkZ8bSKSxvR/i0r6Z3LCQRRfxZS7claZ7u3KHPApd3lQxfE67rhDYmyCMSCo5RLfh89QSc6A2w1WebWCZwNaLtLU08fWxy+cus+NMRecniVJi+dOKtPfrUzPLhUij2TNz8lKzqkQfqjs0XZV8j8a2/FjiyPrQ1iZI61Kd+yUtZBahxSSpDC2wrImA1qZQMXo6HqTJSnhAfwAys9h3NA80FsnsLn1kw6vWTv/qkCwy829ay0AbZ46sMBUGkZUY9uaDW4DtQgXkATwbG6nBEwsxOtHPLqJRMhLIuTl4mEPhbLY53M51/Mu4D1AevcdDi6e4NRUhM9LX/6qns3D/UmLchX6O9cePmW0+j0/AQzErvO1mOVbpcjdQyMca+3FZVxMp6e5/SaFL32DPT6LJzdbHAK/85GiwPlSdYXg+Agfl1J4jJuyKghoMi5kCuzQcd4OhWjZCMAzY8yQQwAQB/YDvJx9zYPZGO9ycapA35YAVwOnudQ56FSOA13G/JmOsw/Rdcz+qRqXqU51yS8prNXlWrE9Ycf2NuJ/A6uf5JCErH2FAAAAAElFTkSuQmCC"));

//MoviePosterDB
trackers.push(new SearchEngine("MoviePosterDB", "http://www.movieposterdb.com/movie/%imdb-id/", true, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/gD+AP7rGNSCAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAABjElEQVQ4y6WTT0sbURTFf/e+N39iiIIUu6i1Lgx1VQpFoaBQcOHOhYi74kdw7wfowu/goqtuShf9Al0VDKWItF0phKZqLUJiyiQmxsm4mMxz0u7M3Z3zzjvcd+598mj1dcIIZQHKazv3unz08U1qYHTEDozKaAZ2YPB+a46Cp+xVLvjwrTEkXCmPs738kOs4YePtseMVwDOCZ4SCp1TrXdafTRJYcbxnhM3nk1TrXQqeOs4Z+EbwB8ThWRur8GK66Pj5qZCJ0HB41uZfvQIEVglsmmQ/gS+1Fq/mxh2/Up7gczVCJL2U16cdWMG36aFRqPxqsfi4SClUxnzl5ZMi+7XITSuvtwAl37hQAqP8+duj2YlZmi1x1evT7MRctmOCgUNebzPHrIym+OC0xcJMkeubhK8nbXwrQx0MTSH/JqNCYJXv5x3KD0KeToX8OL8isOr2Ja+3WapZgEKacNSN+dno0ukl3PQTfCMIQj+50zuDbKa7n36Tx+8O6kO4Uouo1CKH/9vE+5SM+p1vAYV8ZwooQAvxAAAAAElFTkSuQmCC"));

//Wikipedia
trackers.push(new SearchEngine("Wikipedia", "http://en.wikipedia.org/wiki/Special:Search?search=%title", false, "data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAEAgQAhIOEAMjHyABIR0gA6ejpAGlqaQCpqKkAKCgoAPz9/AAZGBkAmJiYANjZ2ABXWFcAent6ALm6uQA8OjwAiIiIiIiIiIiIiI4oiL6IiIiIgzuIV4iIiIhndo53KIiIiB/WvXoYiIiIfEZfWBSIiIEGi/foqoiIgzuL84i9iIjpGIoMiEHoiMkos3FojmiLlUipYliEWIF+iDe0GoRa7D6GPbjcu1yIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"));

//EksiSozluk
trackers.push(new SearchEngine("Eksisozluk", "http://eksisozluk.com/show.asp?t="+cleanTitle, false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAA3NCSVQICAjb4U/gAAAAJFBMVEVHcEyEx0uCwkiCwUmDwUeBwkmCwkp/v0iCwkmBwkp/wkqCwko/3BN5AAAAC3RSTlMAG3SxUtqUEPTBPit4qTAAAABcSURBVBiVbY9JDsAgDAPJRgj5/39LSVgqdW4eATalBIjlQxfpdwZzN7hE9UE9mdsrGq+s5hPT1eBJNoEsIfEu+4ZPRRBFdAT9n4gV1xLddyiHQBrav1EcUwRnfgBUMgUbOLqztgAAAABJRU5ErkJggg=="));

//New Line
trackers.push(new SearchEngine("break", "", false, ""));


//-----------------------------------
//------------TORRENT----------------
//-----------------------------------
//Blank
trackers.push(new SearchEngine("blank", "", false, ""));
//Blank
trackers.push(new SearchEngine("blank", "", false, ""));

//Rarbg
trackers.push(new SearchEngine("Torrent: Rarbg", "https://rarbgmirror.com/torrents.php?search=%imdbkod", true, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAflJREFUOI2F0z9oXEcQx/HPCSWY22DcvFe4CK9KoYOQIhZxE1/j5lQLUpig2lIVIhchsY1xZadIYR8uXKhXfZUhnFOeXAVOhBDCI+XbJjHsEozRpjid/OdsMrDMsMN+5/eDnV4ppYePcQ0f4cRq/IWf8cdKp5RyuZTypPx//FNK+aGU8kEppbc86/gCn0/nnfFBS3hzQB9VFWwNq/PDQX0HF/Dtsr++LFKijVk/k9NbMtvs6VG0v8P2sL6Ox/jtDUBAPyzypUFl60oFJkfR8XGUMJm2RsP6XODLFQCE/iI3DcPNGk42mnptbzwjZRmpI9QurlhYqng7ck76MqgCoQZ/vhOwpMQumc46Kee16VEnp6SLjIaVwHP88h5AInEUo8Onx2dXsD3asLM1gAdoVwApZ/PjVkpZXfc1/WDexoWo0F8+fo6D10eunXlNSdu2Yuxc2qhNDnZsDRsxdmJs7d4/hPP4CR+uABZaMykuPgXu7Y8MmiClbDqZ2r19CCPcfAcgyynKOUsL4y9DCP8+uLcjnMLH40MPDybwHb7G+hkgZcSO1Mk5w9+4uzloXtza35bzord3Y2wyncEdfNUrpVzF3a5Lm23bymjqStPUv+Iz/IhvZvM5iYwqBINB8zu+752u86e47tU6n2CMmcU+3cAneHlq+wUe4dl/EuoEoSZWymEAAAAASUVORK5CYII="));

//Torrentz
trackers.push(new SearchEngine("Torrent: Torrentz", "http://www.torrentz2.eu/search?f="+cleanTitle, false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAMJJREFUOI1jZGBgYDBOm/mfgQxwdlY6IyO5mmGAiRLNDAwMDCwwp6BLoLsMlxoMQVIMYGCgghdGmgGhK/6nm+UtfW1RtPZR6Ir/wQwM0GgkFvxjYNAWdYlS4/jFYPPw0LJ5DAwMa0kyYG0EYx4DAwOD//z/Z/lldc+R7AII+M/Ixs1QxcqtG83AQEYghqxmmPT3D8PmNWGMb0g2IHTV/9b/DAzn1kUx7oSJkeSFe3tmVTEwMDAYp82cx8DAwGBonMYJAIwuO1PGiE7uAAAAAElFTkSuQmCC"));

//Kickass
trackers.push(new SearchEngine("Torrent: Kickass", "http://kickasstorrents.to/usearch/%title/", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAA3xJREFUOI0l0ctPXFUAB+DfOec+5zBz5ynvMhSQNCSgobRqtJHoBok0VJOqqUkXPjZdaDGujYkrNxpdGdOdSU3VhWlq1WhDg5W2obTBltFSSng0CAzDzFzmPs85Lvz+hY+pEkdPF395Z1d++8qYk5s6ncyOP+8M6Ub0Nrdw7kAbfffkOKfXvukJPzpbzBXb8EKt7n926njCnv7x9BxRSz3O+FvrXweR9SqjJPCD0FMA1ZnGEwmTSSnh7vsNQO7EsRCMsYyh62mNxTcuf5V/nQ30YHT2jjqbTfNEImFojsOtbLrJ1DVGlZJIcgMJW9elhHOwWMikUralFBBL5O7dD1e1C5e8CdNMZJnGwBiDYWhw6z7yhSROnBhB94E0hBBw3QA8lcCXX/yK6p4HyzSsu8veGGsuaJ/wpkSrqeswTA1SApxrmJgYxs1b6/jjz4dglKFQSOG330uYn18Fb7KglEK1FtpaGKPAKAVlBIauo+56GBxox/nzs6i7PuJYIdWkYfpqCWtrFeTzKcRxDBELCAGHQgEEAKUUjDEoKIhYYbfiorklg8njQxgdfRz1+j46O3IwDR2EEIAQKAKpAaospGojhAAAKGHYqwZ4YrADhq7DMDRwbiGOBAglUAIACKQEIFWVakzM+0GklFSQUoJSgpnZZWzteFha3oZGKZyEDoCgXm/A8xrw/QB+EIFQsUI7m+Xl/YZfCyMB1/VBqcQHUy9CygibW1UMHGqBH8Tw/BAbj8rg3MTThzsgZRQnbVyj77zhzMg4Wijv1rGxWUZfbwsOj/Qi8GMce7YPvf2tuHL1b0hJ4Dgcd0v/Ip3iOPZUsdrdhWntuaPpWi7tb1CNoaszj4crFZRKmzj52hF0H2zBhR/mcemnvxDHMWhIkE7qsEwGJ2nJZ8Zsl5w5ZX/cCHPvTY4PJVNJE3N3HuH2Yhkd7WnsVVxYBjA82AYhJMJIwElZSDs2fr5yb3Ok7/6ktlultUp9v76ytpcc6C/gycFWPJbnKC1to7fLQW93Dpwb0Nj/Sw0vwvW5VWxslG99+v6RZe32A3auLdPwv7+4MOUFh4q5jKUu/rLobW27JiGU2baBbNpWjmNFSilRrXrVnUrtRntW+5z0X98m6sEwXjpTTW2vL79pW/zDbMbE6lrlO12nfULgqIKyKFGLQmChEQg38vFPGGNmfQslANF/ELGRK2tf6tsAAAAASUVORK5CYII="));

//ThePirateBay
trackers.push(new SearchEngine("Torrent: Pirate Bay", "http://thepiratebay.org/search/%title/0/7/0", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAB+klEQVQokX2STcsxYRTHr3khk9fxmigllAVSXrIjK3vFRsmCDZv5CBZ8CfIBLIiVhRQWZqEsKBsbq1FSk5cmzeU8i/H0uNX9/DbXOXX6n/M/1yEAAP3lM/6CIAgloJVnv99zHCdJEkmSX6WKSrVaLRQK7xwA+v3+b9oK+XxeqXx3oOl3oFKpMMYsy2KMr9crQuj1egGAWq1WCn4MEAqF1ut1qVTq9Xo8z1cqlcFg0G63P+3Rn4MyDGOxWJ7PZ6PR0Gg0sizX6/Xtdqv0+ecJADqdjpIajcbPnnq9nqIohFAikXg+nwDwvRNRFD0ej1arRQgFAgFJkjDGCKH7/f72sNvtOI6TZVlRSiaT8XjcZDIhhFKpVDKZZFkWIWS322maxhgTs9ksk8k0m02dTudwOFiWvd1usiwrozIMQ5IkSZKxWGw0Gi2XS8rlci0WC+XvLpcLRVHxeDydTkcikXA47HQ6H4/H8Xicz+etVothGGIymYzH4+12W6vVNptNt9s9n89Wq9Xv9wuCIEmSz+dzu92n00kQBIwxAQCCIASDQZPJ5PV6bTabwWAIBAKv14vn+f1+b7FYotHocDjMZrPlchkBwPV6NZvNHMeJogg/EUVxPp8Xi0WE0Gq1AgAEALIsT6fT8/kMv3A8HnO53OFwAADiPyf9CQAoF/4HStItR7mjWFIAAAAASUVORK5CYII="));

//Demonoid
//trackers.push(new SearchEngine("Torrent: Demonoid", "http://www.demonoid.me/files/?category=1&query=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/gD+AP7rGNSCAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACR0lEQVQ4y8WTz0sUYRjHP7M7O+4P29zdljQE3RKULCSLQIyKiYLoUBBdO+TFoEuXKCjoWgQdPRlEd/sLHC+F6aVwbUstcl01WRvd3dlxdmaceTvIatIPvPWcvrwP75eH5/l84X+WqqpCqov6o6Zp0l4+1rVcF3ceRfGEAHaaf6uBey7gMPw0tmOgr3pkOhp5+DzK4kKV9iMJQqEAnu8DgrJuo+s2TUmwLJtvX2pAjEDdoFyykQJg1wQfP5TRV2s4jsAyfSzTJxJVqJQcFuaLhCMNzOR0NE2Ttg2cWgghBIGAxOVrbSRSYRxb8HZsGc/32PQ8WjM+zYeaqJolioXY7h1I8gaIOEHZp1hcx6x6hGSFrmMp1leDGNVFIjEPOeQSCsaxnO+oqiqCqqqKwQcNtB+OkZ8vk52UUNxLdLTcYGpykwv9d+lqu85sNsyb0R9IUpQNZ4HTZ32mxpNbEywvVZh+34jinqPvxBlOnuohnU5RqRjIskwy1UTzwRauXrlJOt3Kk2f36Tmf25q8fteBW7fp7T1OONqAtWGhKAqu62IYBolEgkKhQDKZJJ+fp1QyeflqCHxl6wqapknDL4ao2Q4tza3Mzc2xsrJCZ2cnpmmSy+Xo7u7GdX1KJYNKRQdfQdM0KVhfYiaTeZxfHqdxH4yNTrA/foBYNM67iQk+f5ohEIDc7BgjI6+Zzs5sE7sLW1VVRd9FC09UCAZ9fCEQvoTtlNHX1iivC4yl/l24/8b9r5xnjuqEwxEct8bXbPKPWflncPYSsp+9dAnY5lgLkAAAAABJRU5ErkJggg%3D%3D"));

//Google torrent search
trackers.push(new SearchEngine("Google torrent search", "http://www.google.com/search?hl=en&lr=&q=torrent %imdbkod", true, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAglJREFUOI2Nk99L02EUxj/vNkthRdToFxLNJqaJESYVXtSN3ZS1CqMM6qKLQKJ/oPsF3eV1F1HRBrVcGV4FdRPeJUK0oeYaUmyzRbOxpvtuTxd+v7atIA+ci/e8z3nOe57zHmgwSQFJEUkzksq2z9ixtkZ8bSKSxvR/i0r6Z3LCQRRfxZS7claZ7u3KHPApd3lQxfE67rhDYmyCMSCo5RLfh89QSc6A2w1WebWCZwNaLtLU08fWxy+cus+NMRecniVJi+dOKtPfrUzPLhUij2TNz8lKzqkQfqjs0XZV8j8a2/FjiyPrQ1iZI61Kd+yUtZBahxSSpDC2wrImA1qZQMXo6HqTJSnhAfwAys9h3NA80FsnsLn1kw6vWTv/qkCwy829ay0AbZ46sMBUGkZUY9uaDW4DtQgXkATwbG6nBEwsxOtHPLqJRMhLIuTl4mEPhbLY53M51/Mu4D1AevcdDi6e4NRUhM9LX/6qns3D/UmLchX6O9cePmW0+j0/AQzErvO1mOVbpcjdQyMca+3FZVxMp6e5/SaFL32DPT6LJzdbHAK/85GiwPlSdYXg+Agfl1J4jJuyKghoMi5kCuzQcd4OhWjZCMAzY8yQQwAQB/YDvJx9zYPZGO9ycapA35YAVwOnudQ56FSOA13G/JmOsw/Rdcz+qRqXqU51yS8prNXlWrE9Ycf2NuJ/A6uf5JCErH2FAAAAAElFTkSuQmCC"));


//-------------------------------------------
//----------------Streaming------------------
//-------------------------------------------
//Blank
trackers.push(new SearchEngine("blank", "", false, ""));

//Netflix
trackers.push(new SearchEngine("Netflix", "https://www.netflix.com/search/%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAWVJREFUOI2Nks1KHEEURs9XPdO2jqQNziBBDISQhXkHdz6Ca1cBn0lwl2SXhSjZuXLtJpsQiCAJwST+4IAMTOju+lzYhpmMk+m7u1V1T51bdWEkPqVP311kXf/Ill1mvf7D+n47Pz1Mc39Mcx+k+fvRmjCafKZUhQG4wbmz3hYzYgyQAr9sAlBgMDsTh/4HSAicuyIAEejLm+Y5JbXWLEAAbg0Dg4ACYG7wZmCXagIAWBCc1RYFBmn7Z3TRyACgBZzFSMK99yVsrBGyqimAuvC3jYCICYFXwzpvBHgi+BIrEqACXicJN378HScABuYlYuWvAWFgRUKP3j/FIAG+4WEPjlVbvAiBsikAYCUoxX7bRkTgZQh/v3cmwMCilPCns9eu8w5iUZMTNdWgDRLfWbKOHiZzVQkFcTpg1DDi+z2xm9ZtPJMYxvEuWv8k5RK6yqXrvuMpgIaXH5x1TyB0gO56aI0p3AERen4ZCZoRgQAAAABJRU5ErkJggg=="));

//Amazon Prime Video
trackers.push(new SearchEngine("Amazon Prime Video", "https://www.primevideo.com/search/?phrase=%title", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAdxJREFUOI2lk79rU1EUxz/nvnvzEiK0Q4Joh3YQZzMIhQia/AEiDiKUKFoiDi5R8D8QRChdXExKoRXp7ujQmCGTSEDBybGLRkoV2+TlvXevQ37bFBW/cJfzPd/v/Z7DvcIMVLbzm57SORxZAIR2bKPW+q3m3d97ZUq4la8a7ZeVJ1jrwI27lBJs7AijoLZ+u3nvmMGjl5d3E74pRL14VqgRdMKjF4T1tVKjCKCGN/+NGCDqxSR8U6hs5asjA6P98qS4F+9zENQJ4x8nmhjtlwG8ynZ+0xiTc7Y/8FG4x+qlDW4sP+XnoeXjlxdoNY9WqSkTTysuXj27qDylc9a6CcoRxj3m0hlWrjzkeemAwvkHtI/qdKOvoy5rHZ7SOYUji+MEOE4l57i2vEr1TofruScE8f6QAkdW/XFrAxidZD6dAexUXSO0ERZmpxDA0vz0hp1393FOkTZLY0po69hGLa31hXhiD9pLAND48Jqd9zfRskBKLyEyDqyUEEZRSwAevyo65/oG1kVk0ufY+/4WwSdpTiMcn1REeLay27cMo6CmE17fWTTfDj+TMoukzJmZYp3wCKOgNpwE+M+nDLBWahS7nU5NRPC0QpQgMjhqUBOh2+nUhuKpBJP4l+/8C/uuwB1X4GrpAAAAAElFTkSuQmCC"));

//Youtube
trackers.push(new SearchEngine("Youtube", "http://www.youtube.com/results?search_query=%22%title%22&search=Search", false, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAJ9JREFUOI3FkkEKg0AMRd8E0Ru4c1/0BoJn8XD2GO6E3kBx784bCGq66NBVaKdW8ENgyJ+f/JDA1XBWUqEEbsDuUwKMDh5mFYVGYVXQwFgVmrcDBT1o34lCfUTsG9cCZCbbddD332pkAqQmtSyQ56+J2xbi2PqVSrhhGxEwm0ySwDBAUXzSzxEwmVRVhRiY/l+jf9+B7Qft5jUnnfKleAL5LDy9WUKyUwAAAABJRU5ErkJggg=="));


// --------------- END OF SEARCH ENGINES ---------------  


function xpath(query, context) {
	context = context ? context : document;
	
	return document.evaluate(query, context, null,
		XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
}

function SearchEngine(shortname, searchurl, usesIMDBID, icon) {
	this.shortname = shortname;
	this.searchurl = searchurl;
	this.usesIMDBID = usesIMDBID;
	this.icon = icon;
	
	this.getHTML = function (title, id) {
		if (this.shortname == "blank") {
			var html = "<a>&nbsp;&nbsp;&nbsp;<\/a>";
		} else if (this.shortname == "break") {
			var html = "<br>";
		} else {
			var html = "<a href=\"" + this.getSearchUrl(title, id) + "\"><img class=\"img\" style=\"-moz-opacity: 0.4;\" border=\"0\" src=\"" + this.icon + "\" title=\"" + this.shortname + "\"><\/a>&nbsp;";
		}
		return html;
	}
	
	this.getSearchUrl = function (title, id) {
		var searchUrl = this.searchurl;
		if (this.usesIMDBID) {


			searchUrl = searchUrl.replace(/%imdb\-id/, id);
			
			var adres=window.location.href;
			var ilk='imdb.com/title/';

			var imdbKod=adres.substring(adres.indexOf(ilk)+15);
			//remove everything after first slash
			//regexp = /\/.*/g;
			//remove everything after first alphanumeric character
			regexp = /[^a-zA-Z0-9].*/g;
			imdbKod = imdbKod.replace(regexp, "");

			searchUrl = searchUrl.replace(/%imdbkod/, imdbKod);
		}
		else {
			searchUrl = searchUrl.replace(/%title/, encodeURIComponent(title));
		}
		
		return searchUrl;
	}	
}

function openAllInTabs(title, id, inclIMDBID) {
	for (var i = 0; i < trackers.length; i++) {
		if (trackers[i].usesIMDBID && !inclIMDBID)
			continue;
		else
			GM_openInTab(trackers[i].getSearchUrl(title, id));
	}
}

function getTitle() {
	var title = document.title;
	title = title.replace("IMDb - ", "");
	title = title.match(/^(.*) \(/)[1];
	regexp = /\(.*\)/g;
	title = title.replace(regexp, "");
	return title;
}

function getCleanTitle() {
	var title = document.title;
	title = title.replace("IMDb - ", "");
	title = title.match(/^(.*) \(/)[1];
	regexp = /\(.*\)/g;
	title = title.replace(regexp, "");
	regexp = /,|:|;/g;
	title = title.replace(regexp, " ");
	regexp = /'|"/g;
	title = title.replace(regexp, "");
	return title;
}

function getImdbCode() {
	var adres=window.location.href;
	var ilk='imdb.com/title/';
	var imdbCode=adres.substring(adres.indexOf(ilk)+15);
	//remove everything after first slash
	//regexp = /\/.*/g;
	//remove everything after first alphanumeric character
	regexp = /[^a-zA-Z0-9].*/g;
	imdbCode = imdbCode.replace(regexp, "");
	return imdbCode;
}


function getId() {
	with (location.href) {
		var id = match(/title\/tt(.*?)\//i)[1];
	}
	return id;
}


function addIconBarIcons(title, id, trackers) {
 var iconbar = xpath("//div[@id='main_top']", document); //xpath("//h1", document);
    if (!iconbar || iconbar.snapshotLength != 1) {
    GM_log("Error! Couldn't find icon bar. Quitting!");
    return;
  }

	iconbar = iconbar.snapshotItem(0);
	iconbar.id = "iconbar";
	
   var tdimg;
  for (var i = 0; i < trackers.length; i++) {
    tdimg = document.createElement("span");
    tdimg.innerHTML = trackers[i].getHTML(title, id);
    iconbar.appendChild(tdimg);
	}

	
	if (GM_openInTab) {
		var tdopenall = document.createElement("a");
		var aopenall = document.createElement("a");
		aopenall.innerHTML = ""; //Open all stopped
		aopenall.href = "javascript:;";
		aopenall.setAttribute("class", "openall");
		aopenall.addEventListener("click", function () { openAllInTabs(title, id, true); }, false);
		tdopenall.appendChild(aopenall);
		
		iconbar.appendChild(tdopenall);
	}
}

function addStyles() {
	var open_all_class = "a.openall {\n" +
	"	font-weight: bold;\n" + 
	"	font-family: Calibri, Verdana, Arial, Helvetica, sans-serif;\n" +
	"	font-size: 10px\n" +
	"}";
	
	GM_addStyle(open_all_class);
}


addStyles();
var title = getTitle();
var id = getId();
addIconBarIcons(title, id, trackers);
//addAkaIcons(id, trackers);


(function()
{
    try
    {
        var tr = document.evaluate("//TR[TD/@class='lhscol'][1]/TD[last()]//TR[1]",
                document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
                null).snapshotItem(0);
        if (tr)
        {
            tr.deleteCell(tr.cells.length - 1);
        }
    }
    catch (e)
    {
        alert("UserScript exception: " + e);
    }
}
)();