esteinmann / chatgpt-convdown

GNU General Public License v3.0
56 stars 7 forks source link

[Question] Why "Access browser activity during navigation" permission required? #35

Closed SamuelMiller closed 7 months ago

SamuelMiller commented 1 year ago

Hello, Thanks for developing this extension. I am a little concerned about giving extension permission to "Access browser activity during navigation" permission in firefox safe?" Why does the extension require this permission and does the extension monitor other sites beside ChatGPT?

mattjoyce commented 1 year ago

I think the extension uses the webNavigation permission to inject a download button into the chat window's navigation bar. This button triggers the download of the conversation.

esteinmann commented 1 year ago

Good (and valid) question. My intention was to keep the required permissions to a minimum but was forced to make some changes like browser activity monitoring with the introduction of chat history. When you click on a chat on the left the URL changes and the DOM gets generated again, removing the download button. As @mattjoyce mentions the download button needs to be injected again and there must be a way to know when to do that. Right now the solution is watching the URL for changes. It should only monitor changes within chat.openai.com as you can see in: https://github.com/esteinmann/chatgpt-convdown/blob/main/src/background.js

The following filter is active there:

const filter = {    
    url: [{hostEquals: "chat.openai.com"}]
};
esteinmann commented 7 months ago

I consider this question as answered.