I have this Greasemonkey script, I originally wanted to get all the elements and search through those for but I couldn\'t get that to work. So I tri 2条回答 礼貌的吻别 (楼主) 2021-01-27 08:56 try using getAttribute instead of directly accessing the property href: if ( results[i].getAttribute("href").indexOf("http://www.unwantedsites.com") == 0 ) { 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
elements and search through those for but I couldn\'t get that to work. So I tri 2条回答 礼貌的吻别 (楼主) 2021-01-27 08:56 try using getAttribute instead of directly accessing the property href: if ( results[i].getAttribute("href").indexOf("http://www.unwantedsites.com") == 0 ) { 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
try using getAttribute instead of directly accessing the property href:
href
if ( results[i].getAttribute("href").indexOf("http://www.unwantedsites.com") == 0 ) {