Make scripts into a plugin #28

Closed
opened 2023-09-19 04:40:45 +00:00 by glen · 7 comments
Owner

Start with firefox, then edge, then chrome. Skip safari: requires XCode, only runs on Macs.

Start with firefox, then edge, then chrome. Skip safari: requires XCode, only runs on Macs.
glen added the
enhancement
label 2023-09-19 04:40:45 +00:00
Author
Owner

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.

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.
Author
Owner

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.

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.
Author
Owner

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.

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.
Author
Owner

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.

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.
Author
Owner

Plugin is now working well in Firefox, so next up on this is to try it in Edge.

Plugin is now working well in Firefox, so next up on this is to try it in Edge.
Author
Owner

(For that, we may need the "browser" polyfill that provides Firefox syntax in Chrome -- may be needed in Edge as well.)

(For that, we may need the "browser" polyfill that provides Firefox syntax in Chrome -- may be needed in Edge as well.)
Author
Owner

OK, the PR that got things working in Edge also got things working in Chrome, so done.

OK, the PR that got things working in Edge also got things working in Chrome, so done.
glen closed this issue 2023-10-10 04:55:43 +00:00
Sign in to join this conversation.
No description provided.