Greasy Fork

Greasy Fork is available in English.

IMDb Pirate Downloads

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

当前为 2016-12-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         IMDb Pirate Downloads
// @namespace    http://r3bify.info
// @version      0.9
// @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 imdbtt = href[href.length-2];
var imdbLink = "http://www.omdbapi.com/?i=" + imdbtt + "&plot=short&r=json";
var xhr = new XMLHttpRequest();

xhr.open('GET', imdbLink);
xhr.onload = function ()
{
    var imdbJSON = window.JSON.parse(xhr.responseText);
    var urls = '<br />Search RARBG: <a href="https://rarbg.to/torrents.php?imdb=' +
        imdbJSON.imdbID +
        '" 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 +
        '" 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 +
        '" target="_blank">By Title and Year</a>';

        document.getElementsByClassName("subtext")[0].innerHTML += urls;
};
xhr.send();