Add magnet link to torrentz2
< 脚本 Torrentz2 Magnet 的反馈
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
登录以发布留言。
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