wseagar / eight-dollars

A browser extension that shows twitter blue vs real verified users
MIT License
1.19k stars 69 forks source link

Update on Safari instructions #78

Open Carnacki78 opened 1 year ago

Carnacki78 commented 1 year ago

Any update on when there will be instructions for installing this on Safari, or has it been submitted to the Safari Extensions store?

trlkly commented 1 year ago

Unless something has changed, there isn't currently any way to make the extension work in Safari, due to how its extension API works.

You currently can't run scripts directly on Twitter's page because it blocks them using a Content Security Policy. And the current method for detecting paid subscriptions depends on running a script directly on the page. (Most extensions and userscripts don't need this.)

Other browsers have ways around this, but none are known for Safari right now.

sirilyan commented 1 year ago

It is possible to use Xcode to build the extension. You will need Xcode (of course) and either a valid developer signing key or a local macOS signing key. If you only sign it for local then of course you won't be able to run it on iOS devices.

The instructions at https://forums.macrumors.com/threads/how-to-convert-chrome-extensions-to-run-in-safari.2247012/ are for Xcode 12, but the basic procedure hasn't changed that much.

trlkly commented 1 year ago

Now that the script uses an external list of verified accounts, it seems like it might be possible to make a version for Safari now. It should no longer depend on running a script directly on Twitter's page to determine if the account is verified.

The list of verified accounts would probably need to be injected directly into the code.

If you have UserScripts for Safari installed, you can try this link to install a version that does just that:

https://github.com/trlkly/eight-dollars/raw/main/stand-alone.user.js