Created
November 16, 2022 02:29
-
-
Save mstine/6acc228d90736f0da92051d56bdd9ff8 to your computer and use it in GitHub Desktop.
Mastodon Toot Forever! - User Script for Tampermonkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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