Skip to content

Instantly share code, notes, and snippets.

View ncjones's full-sized avatar

Nathan Jones ncjones

View GitHub Profile
javascript:(function(){
/**
* Bookmarklet to workaround MacOS Voice Control not being able to dictate
* into rich text editors that use <div contenteditable> such as ChatGPT.
*
* ChatGPT uses a nonstandard contenteditable input that does not expose
* itself as a real text input through Apple accessibility APIs. As a result,
* Voice Control shows "dictation not available here" and cannot type into it.
*

Keybase proof

I hereby claim:

  • I am ncjones on github.
  • I am ncjones (https://keybase.io/ncjones) on keybase.
  • I have a public key whose fingerprint is 6176 2271 4B69 4127 F30E 2C06 0AC8 7CA0 4171 8B39

To claim this, I am signing this object:

======================================================
======================================================
//File toggle.js
// All the logic for getting toggle information
exports = function FeatureToggle(toggleName, offFunc, onFunc) {
return function() {
if (toggleOn(toggleName))