I fucking love that you can just, put an entire JavaScript script, complete with comments, inside of an HTML <button> element and nothing will break. it will work exactly as you would expect and want it to
I’m trying to minimize JS as much as possible in #GAGSProject but I now have a button that lets you copy debug info from an error page to your clipboard to help me figure out if something is breaking, and I needed JS for that. and thankfully it was only a few lines
anyway I’m still working on getting #GAGSProject ported to FastAPI but FastAPI actually has some really nice error-checking features for request parameters so I’ve been sidetracked (in a way that I’m enjoying) on adding some user-friendly error pages to GAGS
@kasdeya
Even more generally applicable/scary:
Putting JavaScript in a bookmark, which is then applied to the currently opened page
https://en.wikipedia.org/wiki/Bookmarklet