Chrome Extension which is supposed to run on all Facebook pages only runs when I hit refresh

后端 未结 3 810
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 14:54

This is my first hack at writing a Chrome extension. I want it to execute some pretty simple JavaScript every time a Facebook page loads. It\'s doing everything I want

3条回答
  •  清酒与你
    2020-12-18 15:45

    In an obvious way it is not possible. The facebook page is making numerous ajax calls, hence the page does not reload completely. What you need here is to identify whether a ajax call response has been received by the browser or not? and then triggering the event required. I can't comment on that part as I'm still a newbie in that respect.

提交回复
热议问题