- Copy the code below:
javascript:var name=document.querySelector(".account__header__tabs__name").firstChild.firstChild.innerText; var mastodonAccount=document.querySelector(".account__header__tabs__name").firstChild.children[1].innerText; var mastodonURL=mastodonAccount.split('@'); navigator.clipboard.writeText(mastodonAccount+','+name+','+'https://'+mastodonURL[2]+'/@'+mastodonURL[1]);
- Create a new bookmark.
- Set the bookmarklet name and paste the above as the URL.
Hey, I tried it but couldn’t get it to work. What browser do you use? And can you describe a bit more in detail what to do?