Donwloadable/tweetable torrent of M.I.A's Piracy Funds Terrorism
Many web and desktop applications turn a URL in the text you type into a clickable link. Some (like Twitter) even shorten it automatically. Sadly, however, this is not true for magnet torrent URLs (if you don't what they're good for, see "Micro FAQ" below).
Demagnetizr is a browser app that can
display a short "info page" for a magnet, including title, download
and tweet
buttons.
It doesn't "know" the magnet URL or anything about it.
It simply accepts it as the hash string of the page's URL, for example:
http://zzzen.com/demagnetizr/#magnet%3A%3Fxt%3Durn%3Abtih%3A6554d899acb6a17d0264a4bab9b41ad71094ae30%26dn%3DCultures%2BOf%2BResistance%2B2010%2BDOCU%2BDVDRip%2BXviD-JETSET%26tr%3Dudp%253A%252F%252Ftracker.openbittorrent.com%253A80%26tr%3Dudp%253A%252F%252Ftracker.publicbt.com%253A80%26tr%3Dudp%253A%252F%252Ftracker.ccc.de%253A80
and presents it in a useful way.
This "demagnetized" representation of a magnet URL can be recognized by URL shorteners
(including Twitter itself, which is how we can have a tweet
button), or used as-is in email, IM, etc.
If you're at the receving end of such a link, just click on it. It's quite self explanatory. If you want to create such links, read on. It's really simple.
You can also click search
and look up anything you have in mind (try spiral tribe
. Recommended).
You'll get a list of possible torrents, sorted by number of seeds currently online (the more - the better).
Clicking on any of the links would paste its magnet URL in the text box,
and update the download
and tweet
buttons, etc.
You can also paste a magnet URL from your torrent app or some site
in the text box top right - and it will update everything below it
(download
and tweet
buttons, etc.) on the fly.
If you know even a little bit of html, it only takes 10 minutes, and it's fun.
The search feature uses @makevoid's thorrents.com
API which - in turn - searches The Pirate Bay.
Thanks to both of them, <300 lines of html+js can be a powerful app.
Thanks to twitter's Bootstrap, this thing can look presentable, and thanks to the robustness of GitHub Pages, we can leech all this CSS and JS goodness and keep everything in a single, short page.
Respect, y'all. Mankind rules, and I'm proud to be a shareholder.
Make it work when pastehtml runs us in a frame and "swallows" our hash :)
Fixed urlhash browser compatibility bug. Thanks to Warprofit for the heads-up.
Added patrons :)
location.search
, so now we use location.hash
).location.search
is still supported for legacy tweet compatibility :)CSS already looks presentable, but perhaps could look better (and should be more efficient). Whatever you do, please try to keep it all contained in a single pastehtml-able page.
Another possibility is to add a "facebook this" button (or whatever you folks call it). I couldn't be bothered since I don't have facebook, but here's a nice and easy procrastination for ya.
Here's recommended software for
Linux/Mac and Windows.
Once you install the software, you can go to the demagnetizr
demo
and click on the download
button. Like the music? Click to tweet about it. Easy.
One reason is that they might work even if torrent indexers like The Pirate Bay are blocked by your ISP (they might not work - e.g. if the trackers are blocked too - but many of the ways to circumvent that would involve magnet URLs anyway :) ).
Modified http://html5shim.googlecode.com/svn/trunk/html5.js to a secure url
https://html5shim.googlecode.com/svn/trunk/html5.js