Posts

Showing posts with the label AI Coding

AI wrote a Firefox extension for me

Image
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. https://pastebin.com/ckfftFfc ChatGPT: Original extension creation Modifying it to auto-close the newly opened tab  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 (l...