Chrome extension for Facebook loads just on refresh

前端 未结 1 419
萌比男神i
萌比男神i 2021-01-16 19:37

I wrote an extension which should say \'Hi.\' every time the user clicks on a page and this is the code:

manifest.json

{
\"         


        
相关标签:
1条回答
  • 2021-01-16 20:04

    You should use MutationObserver. It will allow you to react to changes in the DOM. It is especialy powerfull when used together with TreeWalker.

    See this sample extension for details on how to use it.

    0 讨论(0)
提交回复
热议问题