Last active
          September 20, 2024 07:01 
        
      - 
      
 - 
        
Save bramus/d8bce55dab1881cde18aa2169c66ac33 to your computer and use it in GitHub Desktop.  
    Mastodon User Page Bookmarklet
  
        
  
    
      This file contains hidden or 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 = 'front-end.social'; | |
| 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}`; | |
| })(); | 
wow @bramus you're fast!
A firefox extension would also be very nice.
Thanx in advance.
@dbazuin Firefox extension in the works ;)
Thank you for doing this. I've added it to my little list of useful tools. I'm a Firefox person, so if you build it, I will definitely use it. Thank you.
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Want this as a Chrome Extension instead of this Bookmarklet? Look no further: https://github.com/bramus/mastodon-view-profile
mastodon-view-profile-demo.mp4