A library for web browser bookmarklets.
This repository contains a tiny browser helper library bmlib.js and an errorHandler.js intended to be loadable via jsDelivr.
Quick test
- Open
test/test.htmlin a browser (file:// or served from a local webserver). - Use the inputs to call
lsAdd(Set) andlsGet(Get). - Use the error checkboxes to simulate quota/security/handler errors and observe the collapsed error groups in the developer console.
Notes
bmlib.jswill attempt to loaderrorHandler.jsfrom jsDelivr athttps://cdn.jsdelivr.net/gh/ArqadeeGaming/bmlib@main/errorHandler.js. The test harness also exposes a button to trigger the loader manually.- The test harness is intentionally minimal; open the devtools console to see full stack traces and expanded details.
If you want, I can add a small package.json and a static server command to open the test page in your browser.