Questions tagged [safari-content-script]

2 questions
1
vote
1 answer

How to prevent multiple injection of content script when disabling/re-enabling safari extension?

If Safari, I end up with multiple copies of the content script being injected if I disable and then re-enable the extension in the same session. After page refresh, things return to normal. Chrome has a concept of an "invalidated extension context"…
1
vote
1 answer

Safari App Extension content script not loaded on Safari error page?

When running a Safari App Extension, if Safari shows "Failed to open page", your content script isn't loaded. In this sort of scenario, it might be nice to redirect the user to a new url or suggestions page such as "did you mean...". Is it possible…
Kevin Ghadyani
  • 6,829
  • 6
  • 44
  • 62