ExtraTorrent.cc direct download link

bagi yang hobi ke ET, pasti sebel karena link file torrentnya kaga langsung ke file *.torrent, tetapi ke halaman HTML dulu. Nah, berikut javascript untuk convert link tersebut.


a_ns = document.evaluate('//a[contains(@href, "torrent_download")]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
if (a_ns)
{
for (i = a_ns.snapshotLength - 1; i >= 0; i--)
{
tmp_a = a_ns.snapshotItem(i);
tmp_a.href=tmp_a.href.replace('/torrent_download/', '/download/');
}
}

Anda bisa jalankan, copy-paste langsung dari Inspect Element, javascript console,

atau … gunakan GreaseMonkey agar otomatis …

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s