Make scripts into a plugin #28
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Start with firefox, then edge, then chrome. Skip safari: requires XCode, only runs on Macs.
We'll keep the extension minimal: it should just have two switches for settings: Convert Geometry Applets and Display VRML/X3D files. That should do it.
The state of those switches will need to be kept in storage.local. We can access that through the firefox api, and then use the webextensions polyfill for chrome and edge. It seems likely that will be all that's needed for this to work on chrome and edge.
halfway done with initial pass: vrml viewer working pretty well. May want to provide settings for default size of browser, 150px × 150px sometimes feels a bit cramped.
Working on the geometry applets in the plugin -- seems as though I need to embed the entire geogebra apps bundle in the extension :-( I think I will try then loading it by adding a script tag; that may avoid the need for a background script (the first way I got it to work partially was to send a message to a background script that then invoked browser.scripting.executeScript() ... )
However, I think I will wait until x_ite updates to something that uses ResizeObserver.
Plugin is now working well in Firefox, so next up on this is to try it in Edge.
(For that, we may need the "browser" polyfill that provides Firefox syntax in Chrome -- may be needed in Edge as well.)
OK, the PR that got things working in Edge also got things working in Chrome, so done.