Built on iPad for iPad.
Safari
- If you don’t have it already, install the Siri Shortcuts App
- Create a new shortcut
- Open the shortcut settings, turn on “Show in share sheet”
- Change Accepted Types to only “Safari web pages”
- Name your shortcut
- Go back to editing the shortcut and add “Run JavaScript on Web Page” action.
- Add
completion({result: true});
to the end - Paste the main.js code into there.
Now when you’re in safari, press the action button, select “Shortcuts” then tap the shortcut you created
Bookmarklet
Paste the JavaScript into this online tool and set the link as a bookmark. When you want to use the tool, click the bookmark.