Skip to content

Instantly share code, notes, and snippets.

@mstine
Created November 16, 2022 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstine/6acc228d90736f0da92051d56bdd9ff8 to your computer and use it in GitHub Desktop.
Save mstine/6acc228d90736f0da92051d56bdd9ff8 to your computer and use it in GitHub Desktop.
Mastodon Toot Forever! - User Script for Tampermonkey
// ==UserScript==
// @name Mastodon Toot Forever!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change the "Publish!" button to "Toot!" - Known to work on Mastodon 4.0.2
// @author Matt Stine
// @match https://mastodon.sdf.org/*
// @icon https://img.icons8.com/external-happy-man-bomsymbols-/512/external-fart-happy-man-human-resource-and-life-style-set-2-happy-man-bomsymbols-.png
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// @grant GM.getValue
// ==/UserScript==
//- The @grant directives are needed to restore the proper sandbox.
// ==/UserScript==
waitForKeyElements ("div.compose-form__publish-button-wrapper", toot);
function toot() {
document.querySelector("div.compose-form__publish-button-wrapper").children[0].innerHTML = "Toot!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment