Chrome Extension: How to remove content script after injection?

前端 未结 2 1602
北海茫月
北海茫月 2021-01-12 08:53

With a Google Chrome Extension: Is it possible to remove a content script after it has already been injected into the page?

There are no API methods for reloading co

2条回答
  •  半阙折子戏
    2021-01-12 09:01

    I suppose if you dynamically load the content scripts it's possible to force a page refresh using javascript (window.location.reload()) this time not loading the content scripts

提交回复
热议问题