AI wrote a Firefox extension for me
Well, wrote it and then helped me tweak it. The prompts were easy. The code pretty straightforward. The functionality is very basic. It just takes the current page title and URL and, using the things:/// URL scheme, adds an item to the inbox. (Yeah, in Safari, the “Share ... Add to Things” option does the same thing in Safari. But I’m not using Safari.) This cleans up after itself, closing the tab that was opened to call the Things URL integration a second after it’s finished loading. I’m generally happy with it, with a couple of “punch list” items.
ChatGPT:
To do:
- Need to figure out why the keyboard shortcut isn’t working (“keyboard shortcuts do work, but only if the extension is installed as a permanent add-on, not as a temporary add-on via
about:debugging.”) - Need to modify it to use the contents of the clipboard rather than the URL, if on certain cites (like Filevine, which maddeningly does not update the URL as a single page application, but you can use the interface to copy a direct link to, e.g., a task)
, and, oh yeah, get clipboard access working... Clipboard access is working. - Package it so I can just drop it into my Firefox installs, vs. needing to go into
about:debugging#/runtime/this-firefoxto add manifest.json via Load Temporary Add-On... - Port it to Chrome
Still, not bad for a ~1 hour project on a Friday afternoon.
If Firefox (at least?) kicks up this error:

Comments
Post a Comment