News for hackers. Stuff that matters.
Re:Mastodon – Simplified Federation by Kye on Saturday November 05, 2022 @09:09AM (#33481076)
It seems like the bulk of it is only a few lines going by the GitHub. I don't know enough to know how to do it, but if you do, you might offer a bookmarklet version for privacy-conscious people as a pull request.

https://github.com/rugk/mastodon-simplified-federation

Re:Mastodon – Simplified Federation by TekMol on Saturday November 05, 2022 @09:40AM (#33481374)
Phew, there are so many files and lines in that repo.

As far as I understand it, all that has to be done is something like:

    document.body.innerHTML.replace(/<some_regex>/,'<some_string>')
Where <some_regex> matches strings of type

    @[email protected]
and '<some_string>' turns that into

    <a href=https://yourinstance/web/@[email protected]>@[email protected]</a>