IMDb Pirate Downloads

Find IMDb Movies and TV Shows on The Pirate Bay and RARBG

Version vom 21.10.2016. Aktuellste Version

// ==UserScript==
// @name         IMDb Pirate Downloads
// @namespace    http://r3bify.info
// @version      0.8
// @description  Find IMDb Movies and TV Shows on The Pirate Bay and RARBG
// @author       R3bify
// @icon	 http://r3bify.info/favicon.ico
// @match        http*://www.imdb.com/title/*
// @grant        none
// ==/UserScript==

var href = window.location.href.split('/');
var imdbLink = href[href.length-2];

xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", 'http://www.omdbapi.com/?i='+imdbLink+'&plot=short&r=json', true);
xmlhttp.send();

var imdbJSON = JSON.parse(xmlhttp.responseText);

if($('div.infobar'))
{
    $('div.infobar').append(
        '<br />Search RARBG: <a href="https://rarbg.to/torrents.php?imdb=tt' +
        imdbLink.substring(2) +
        '" target="_blank">By IMDb Link</a><span class="ghost">|</span>' +
        '<a href="https://rarbg.to/torrents.php?search=' +
        imdbJSON.Title +
        '" target="_blank">By Title</a><span class="ghost">|</span>' +
        '<a href="https://rarbg.to/torrents.php?search=' +
        imdbJSON.Title +
        ' ' +
        imdbJSON.Year.substring(0,4) +
        '" target="_blank">By Title and Year</a>' +
        '<br />Search on The Pirate Bay: ' +
        '<a href="http://thepiratebay.org/search/' +
        imdbJSON.Title +
        '" target="_blank">By Title</a><span class="ghost">|</span>' +
        '<a href="http://thepiratebay.org/search/' +
        imdbJSON.Title +
        ' ' +
        imdbJSON.Year.substring(0,4) +
        '" target="_blank">By Title and Year</a>'
    );
}

if($('div.subtext'))
{
    $('div.subtext').append(
        '<br />Search RARBG: <a href="https://rarbg.to/torrents.php?imdb=tt' +
        imdbLink.substring(2) +
        '" target="_blank">By IMDb Link</a><span class="ghost">|</span>' +
        '<a href="https://rarbg.to/torrents.php?search=' +
        imdbJSON.Title +
        '" target="_blank">By Title</a><span class="ghost">|</span>' +
        '<a href="https://rarbg.to/torrents.php?search=' +
        imdbJSON.Title +
        ' ' +
        imdbJSON.Year.substring(0,4) +
        '" target="_blank">By Title and Year</a>' +
        '<br />Search on The Pirate Bay: ' +
        '<a href="http://thepiratebay.org/search/' +
        imdbJSON.Title +
        '" target="_blank">By Title</a><span class="ghost">|</span>' +
        '<a href="http://thepiratebay.org/search/' +
        imdbJSON.Title +
        ' ' +
        imdbJSON.Year.substring(0,4) +
        '" target="_blank">By Title and Year</a>'
    );
}