Modify URL before loading page in firefox

后端 未结 4 867
别那么骄傲
别那么骄傲 2020-12-03 05:52

I want to prefix URLs which match my patterns. When I open a new tab in Firefox and enter a matching URL the page should not be loaded normally, the URL should first be modi

4条回答
  •  隐瞒了意图╮
    2020-12-03 06:37

    You could listen for the page load event or maybe the DOMContentLoaded event instead. Or you can make an nsIURIContentListener but that's probably more complicated.

提交回复
热议问题