Safari Web Extension - injecting script only when extension button is clicked
问题 To keep it simple, I am taking reference for SeaCreator extension example from Apple. You can take it from here: https://drive.google.com/file/d/1loBDgkJAEtyh0QehOUlgOSyUnW9ZZDk6/view?usp=sharing In this example as mentioned, we are replacing fish names with different emojis . The thing is when we tap on the extension icon, it turns into blue to indicate the extension is active and whenever any page is rendered, all fish names will be automatically replaced with emojis. See screenshot -> What