rlr / dotjs-addon

[unmaintained] ~/.js for Firefox
BSD 3-Clause "New" or "Revised" License
144 stars 17 forks source link

Support for Firefox developer edition? #52

Open mspreij opened 6 years ago

mspreij commented 6 years ago

And for future versions of Firefox I suspect.. they changed the API for extensions. I would miss this extension so much! :-/

eridal commented 6 years ago

This can't be the end. There has to be a way that allow us to load these files from disk.

sasha-x commented 6 years ago

I like this addon and try to make its works. Now dirty hack applied here https://github.com/sasha-ch/dotjs2-addon and works somehow on FF 58 Win7.

Other idea is to put our .js inside addon folder, use "web_accessible_resources": ["js/*.js"] in manifest.json and resign-reinstall addon after each permanent .js modification. Temporary modifications may be maked/tested via about:debugging

Other idea is to set up local web server and refer to files like http://127.1/my.dear.site.com.js in addon code.

@rlr , @eridal and others - what do you think about it all?

eridal commented 6 years ago

This looks promising!

I'm still waiting on full support to upgrade (plus tab-groups) but I'll give a try using a separate firefox installation.

Have you tried the addon folder approach? we could create a link from there into ~/.js --if your OS support such links

sasha-x commented 6 years ago

Have you tried the addon folder approach? we could create a link from there into ~/.js

@eridal, I'm not sure what do you mean.

I'm windows user now but I am ok with linux and my code will be tested with *nix soon.

I'm sorry for my English sometimes.

sasha-x commented 6 years ago

New version of https://github.com/sasha-ch/dotjs2-addon drafted. Require local web server. Linux.

Feedback are welcome.

mwgamera commented 6 years ago

Has anyone thought about using native messaging? The setup is brittle and a bit more annoying than with a web server, but more pleasant to use afterwards and it seems to be how it's supposed to be done with WebExtensions. I had some success in using it to access local resources from Chromium with tiny Perl scripts, and it seems to work mostly the same in Firefox (except different location of manifests; and that you can't load unsigned addon other than temporarily to be wiped on next restart so I didn't have much use of it here).