A customer of my Safari web extension Tweaks for Twitter asked me how to add a bookmark to their iOS home screen to open Twitter in Mobile Safari. The Add to Home Screen command in the Safari share menu is supposed to accomplish this, but with Twitter the resulting bookmark behaves strangely: it doesn't actually open in Safari! Consequently, the bookmark is practically useless if you want to use web extensions, which only work in Safari.
When you create the bookmark in Safari, everything appears to be fine. By the way, the full URL here is
https://mobile.twitter.com/?utm_source=homescreen&utm_medium=shortcut, which means that whenever you open the home screen bookmark, Twitter knows that you opened a home screen bookmark.
Afterward you can see an icon on your home screen that looks just like the Twitter app.
Nonetheless, when you open the bookmark, it doesn't open in Safari.
The bookmarked web page turns out to be a Progressive Web App (PWA). When you load
mobile.twitter.com in Safari, the page signals that it supports PWAs, and thus Safari creates a PWA when it adds a bookmark for Twitter to your home screen. PWAs run separately from Safari and lack some of the features of Safari, such as web extensions.
Is there a way to create a normal bookmark on your home screen to
Now let's try StopTheScript instead.
Tap "Allow for One Day" to enable StopTheScript to run on
mobile.twitter.com, and then reload the page.
The name is blank, because Twitter is no longer advertising PWA support. Just enter "Twitter" manually for the name.
StopTheScript is currently allowed to access
And that's it! Your home screen bookmark will open Twitter in Safari instead of in a PWA. I don't know why Apple makes this so difficult, but I'm happy to provide a solution.