A way to observe url in urlbar of firefox, and get an event every time it changes

前端 未结 2 467
情话喂你
情话喂你 2021-01-21 21:53

I need it for my firefox extension. I don\'t care about waiting the page load completely, I want only observe URL and get an event every time it changes, also when I do history

2条回答
  •  抹茶落季
    2021-01-21 22:23

    https://developer.mozilla.org/en/Code_snippets/Progress_Listeners#Example.3a_Notification_when_the_value_in_Address_Bar_changes

    Also How can i check if url of current browser tab is changed?

提交回复
热议问题