Greasy Fork

Torrentz2 Magnet

Add magnet link to torrentz2

< 脚本 Torrentz2 Magnet 的反馈

提问 / 留言

§
发布于:2019-05-21
编辑于:2019-05-27

fix for torrent page

hi. To get the script working again in the torrent page (not the search page, which is still working fine), change line 38 from

var hash = document.querySelector('.trackers > h2:nth-child(1)').childNodes[1].nodeValue.substr(6);

to

var hash = document.querySelector('.trackers > div').innerText.substring(11);

Probably the page changed slightly and the script needed this fixing to make it work again with it.

Thanks

发布留言

登录以发布留言。