-
-
Save tanepiper/aab8870fe4e8f1564a6c92f302dd706c to your computer and use it in GitHub Desktop.
Mastodon User Page Bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
const MY_MASTO_HOST = 'tane.codes'; | |
if (window.location.host === MY_MASTO_HOST) return; | |
const user = document.querySelector('meta[property="profile:username"]')?.getAttribute('content'); | |
if (!user) return; | |
window.location.href = `https://${MY_MASTO_HOST}/@${user}`; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment