Last active
March 18, 2023 00:41
-
-
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 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
/* 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