n4ze3m / page-assist

Use your locally running AI models to assist you in your web browsing
https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo
MIT License
1.56k stars 148 forks source link

Text is not selectable in Firefox Sidebar #169

Closed gerroon closed 3 months ago

gerroon commented 3 months ago

Hi

It would be nice if we can select the text in the sidebar just like in the Chrome version. I found an answer but I am not a Js dev I would not know how to fix this.

https://discourse.mozilla.org/t/cant-select-text-displayed-in-the-sidebar/90833

 think text selection might be disabled by the browser style (see Browser styles on MDN 2). By default, sidebars also use the browser’s stylesheets for extensions which, among other things, disables text selection.

You can opt-out of this by specifying browser_style: false in your extension’s manifest.json like so:

{
    "manifest_version": 2,
    "name": "Context Search",

    "sidebar_action": {
        "browser_style": false,
        ...
    },
    ...
}
n4ze3m commented 3 months ago

Hey, thanks for searching for a solution. I already implemented it, but unfortunately, there's a bug in the framework I'm using that doesn't automatically include browser_style in the manifest file. Anyway, I'll add it manually from the next version onwards. :)

n4ze3m commented 3 months ago

Hey, the latest version has been released. The text selection issue has been resolved. Please let me know if you still experience any issues

gerroon commented 3 months ago

Thank you, this is awesome, not the FF addon is feature parity with Chrome one thanks