iOS Safari Web Extension restrictions

Hey,

  1. Is it allowed to inject an HTML item above a web page on iOS using Safari Web Extension?
  2. If yes what amount of screen space can we allocate to the UI?

Example:

Answered by Engineer in 718945022
  1. Yes - your extension's JavaScript can add content anywhere on the page. However, the best way to do that depends on which page is being loaded, and that can be tricky.
  2. It depends on the device (different devices have different widths, the device could be rotated, if it was an iPad, it could be in multitasking mode). You should use responsive design to design different UIs based on the width of the current page.

You can do so from javascript check this video

https://youtu.be/bspr-BS7_Rw?t=1162

Accepted Answer
  1. Yes - your extension's JavaScript can add content anywhere on the page. However, the best way to do that depends on which page is being loaded, and that can be tricky.
  2. It depends on the device (different devices have different widths, the device could be rotated, if it was an iPad, it could be in multitasking mode). You should use responsive design to design different UIs based on the width of the current page.
iOS Safari Web Extension restrictions
 
 
Q