Skip to content

Instantly share code, notes, and snippets.

@fishfitz
fishfitz / DirtyWompScripting.js
Last active December 16, 2023 11:52
Dirty Womp Scripting
// 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
<!--
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)
-->