Skip to content

Instantly share code, notes, and snippets.

@shawnhooper
Last active November 16, 2022 04:42
Show Gist options
  • Save shawnhooper/0d724ca6e8b125ab9d81502a6500b8f7 to your computer and use it in GitHub Desktop.
Save shawnhooper/0d724ca6e8b125ab9d81502a6500b8f7 to your computer and use it in GitHub Desktop.
TamperMonkey script to replace the Mastodon "Publish!" button with a "Toot!" button
// ==UserScript==
// @name Toot
// @namespace https://shawnhooper.ca/
// @version 1.0
// @description Replace the Mastodon 4.0+ Publish button with "Toot"
// @author Shawn M. Hooper
// @match https://fosstodon.org/*
// @match https://mastodon.social/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=fosstodon.org
// @grant none
// ==/UserScript==
(function() {
'use strict';
let button = document.querySelector('.compose-form__publish-button-wrapper button');
button.innerText = 'Toot!';
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment