Skip to content

@meadhikari /tpb.js
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Get Torrent link on all Pirate bay Pages.
// ==UserScript==
// @name Get Torrent link on all piratebay link
// @description Sets a torcache link to all torrent files from torcache
// @namespace http://googlesystem.blogspot.com
// @include http://thepiratebay.se/torrent/*
// @include https://thepiratebay.se/torrent/*
// @match http://thepiratebay.se/torrent/*
// @match https://thepiratebay.se/torrent/*
// @author Bikram
// @version 1.4.10
// @date 2012-11-15
// @license MIT License
// ==/UserScript==
(function () {
var aTag = document.createElement('a');
aTag.setAttribute('href',"http://torcache.net/torrent/"+/magnet:\?xt=urn:btih:([a-zA-z0-9]+)/g.exec(document.getElementsByClassName("download")[0].children.item().getAttribute('href'))[1].toUpperCase()+".torrent");
aTag.setAttribute('title',"Right Click and Save")
aTag.innerHTML = "GET TORRENT FILE";
document.getElementsByClassName("download")[0].appendChild(aTag)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.