Content scripts - Mozilla | MDN
Using the contentScripts API, you can ask the browser to load a content script whenever the browser loads a page whose URL matches a given pattern. (This is similar to method 1, except that you can add and remove content scripts at runtime.) At runtime, into specific tabs. In Manifest V2, using tabs.executeScript (), or Manifest V3, using ...