Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Get Torrent link on all Pirate bay Pages.

View tpb.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
// ==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.