开发者

get href value from a website to chrome extension

I am making an extension and i want to do the following-

suppose i want my extension to work only on say, xyz.com, which contains the following line-

<a href="xyz.com/abcd" class="abcd">abcd</a>

How开发者_运维问答 do I retrieve href value from xyz.com's code into my extension using javascript?


Your question is a little confusing: if you are trying to have your extension loaded whenever a page in the domain xyz.com is opened then you can just set your permissions appropriately and it should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜