开发者

get href value from a website to chrome extension

开发者 https://www.devze.com 2023-04-06 15:11 出处:网络
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-

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

精彩评论

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