Skip to content

Instantly share code, notes, and snippets.

@BluBb-mADe
Last active March 18, 2023 00:41
Show Gist options
  • Save BluBb-mADe/3b41503bb8b7b5b79e70d7555159a810 to your computer and use it in GitHub Desktop.
Save BluBb-mADe/3b41503bb8b7b5b79e70d7555159a810 to your computer and use it in GitHub Desktop.
[IRRELEVANT] This will keep the play button on microsoft azures cutting edge text to speech demo page unlocked beyond the 1k char limit as the backend allows much longer texts.
/* THIS HAS BECOME IRRELEVANT BECAUSE MICROSOFT TOOK DOWN THE PUBLIC DEMO */
// ==UserScript==
// @name ms azure tts text length unlock
// @version 1
// @grant none
// @run-at document-idle
// @include https://azure.microsoft.com/en-us/products/cognitive-services/text-to-speech/*
// ==/UserScript==
const playBtn = document.getElementById("playbtn");
var observer = new MutationObserver((muts) => {
muts.forEach((mut) => {
if (mut.type === "attributes") {
playBtn.removeAttribute("disabled");
}
});
});
observer.observe(playBtn, {
attributes: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment