yaade icon indicating copy to clipboard operation
yaade copied to clipboard

Firefox extension source code

Open blacklight opened this issue 9 months ago • 1 comments

My Yaade service works fine with the Chrome extension, but the Firefox extension seems to be affected by a couple of bugs. Namely:

  • It always makes https requests even when the URL is http://
  • It ignores environment variables, whether they are specified in headers or in the URL

Image

I think that these should be relatively easy to fix, but I couldn't find the source code of the Firefox extension anywhere.

Would it be possible to publish it? If so I'd be happy to take a look and fix these issues.

blacklight avatar Mar 26 '25 20:03 blacklight

The source code for the firefox extension is exactly the same as for the Chrome one. Check the "extension" folder. The only difference is that manifest_ff.json is used instead of manifest_chrome.json. Before packaging the extension simply rename it to manifest.json.

Note that no extension does interpolation of environment variables. That happens in the client before the request is sent to the extension. So if there is a bug here it is in firefox doing interpolation wrong, not the firefox extension doing it wrong.

jonrosner avatar Mar 27 '25 06:03 jonrosner