This file contains hidden or 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
<!-- | |
Actually this is a VueJS template (.vue). | |
The recognition itself uses an API that is included in Chrome and only works in Chrome (04/2020). | |
https://developer.mozilla.org/fr/docs/Web/API/Web_Speech_API | |
You may also need the following packages: | |
- npm install ky (http requests) | |
- npm install talisman (fuzzy matching) | |
--> |
This file contains hidden or 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
// Run this in the console | |
// Then you should quickly refocus the active window for the fillCoord to work properly | |
// Womp sometime needs some air | |
const wait = (ms) => new Promise(r => setTimeout(r, 10)); | |
// Toggle the create shape pannel | |
const toggleCreate = async () => { | |
document.evaluate("//p[text()='OBJECTS']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null) | |
.singleNodeValue |