Hacker News new | ask | show | jobs
by mg 1255 days ago
This simple code works for me:

    let your_instance="masto.ai";

    document.location=(
        "https://"
        + your_instance
        + "/authorize_interaction?uri="
        + encodeURIComponent(document.location)
    )
Before you turn it into a bookmarklet, set your_instance to the Mastodon instance you use.

You can use my bookmarklet editor to turn it into a bookmarklet:

https://www.gibney.org/bookmarklet_editor

2 comments

Your code works, but there's a slight delay in comparison to the extension. Thanks for sharing!
This seems to work, thanks!