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.
精彩评论