a8551f3f9c
It was solved by switching to CSS, so although it may be a bug, it is no longer known. |
||
---|---|---|
LICENSE | ||
README.md | ||
tootify.js |
README.md
Tootify
Change the Mastodon "Publish!" buttons back to "Toot!"
Backstory
It all started with a toot.
Wait they dropped the toot? What will appeal to my inner 5 year old?!?
—Caroline Ledbetter (@Cledbetter@fosstodon.org)
The context: Mastodon version 4 was released and brought a lot of changes with it, including responsiveness rules and a completely different mobile interface. The most significant change though, according to some people, was renaming the "Toot!" button to "Publish!".
This is of course better for newcomers because they can easily understand what it means, and one could argue that it's also more formal and professional. But many long-time Mastonauts are used to the "Toot!" button: it's what makes Mastodon Mastodon! If you fall in that category (or just support the idea that "Toot!" should be promoted more), this addon will help you bring the old "Toot!" button back!
Installation
Tootify is a Greasemonkey script, which means it should work in any browser than supports such scripts in any form!
Get the addon
If you're using a Firefox or Chromium-based browser, you can install any Greasemonkey-compatible extension and add the script to it. This guide will cover using the Tampermonkey extension, though the official Greasemonkey extension should work too.
- For Firefox browsers, install the extension from the Firefox Addons site.
- For Chromium-based browsers, install the extension from the Chrome Web Store.
Adding the script
- Copy the script from
tootify.js
in this repository. - Click on the Tampermonkey extension icon and select "Create a new script...".
- Paste the full text of
tootify.js
into the editor, replacing any text already present. - Add your Mastodon domains to the list (see "Modification" below).
- Save the script.
Now, when you next open your Mastodon, you should see the "Publish!" button changed back to say "Toot!"
Modification
By default, Tootify runs on the fosstodon.org and scholar.social instances, where I have my accounts. To add your instance, modify the @match
setting near the beginning of the script.
Example: here's how the line looks by default:
// @match *://(fosstodon.org|scholar.social)/*
As you can see, it has entries for fosstodon.org
and scholar.social
within the parentheses, and separated by a vertical bar |
.
If your account is on wandering.shop, you could modify it to look like this:
// @match *://(fosstodon.org|scholar.social|wandering.shop)/*
Feel free to add as many instances as you want, separated by the |
!
Contributing
Contributions are welcome; I don't have any guidelines or anything so just join in! One thing that's on my mind is maybe packaging this as Firefox and Chrome addons so that people who aren't so comfortable doing techy stuff can still have their toot button. Other ideas welcome :)
License
This script is published under the GNU General Public License version 3 (or later). For the full details, see the LICENSE file. If you need a different license feel free to contact me; I like to guarantee my software's freedom by default but I'm open to other uses :)
Credits
- Original idea from a Mastodon conversation with @benjaminhollon@fosstodon.org and @Cledbetter@fosstodon.org
- Installation instructions shamelessly copied from Umify
- New CSS styles from this GitHub gist by @moiety@queer.garden