lencx / ChatGPT

🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
https://nofwl.com
52.3k stars 5.88k forks source link

[Feature] UserScript Support #925

Open ShroomKing opened 1 year ago

ShroomKing commented 1 year ago

Feature description

I was wondering how complicated it would be to implement support for loading UserScripts into the webpage?

Motivation

In my browser I use the ChatGPT-Widescreen UserScript which pretty much eliminates the need to scroll horizontally(very annoying)

I just found out about your app, and I like it but the only thing that is keeping me from using it is the missing widescreen support

Additional context

Here's a screenshot of my browser with widescreen enabled: widescreen

And the default openAI layout in your app: no_widescreen

As you can see, tons of space is wasted/unused.

lencx commented 1 year ago

Hello, this limitation comes from the web structure of OpenAI. If you want it to fill the screen, you can write a script to override the default style in Control Center -> Scripts -> main.js.

Screenshot 2023-05-28 at 01 45 28
ShroomKing commented 1 year ago

Hello, this limitation comes from the web structure of OpenAI. If you want it to fill the screen, you can write a script to override the default style in Control Center -> Scripts -> main.js.

Screenshot 2023-05-28 at 01 45 28

Awesome thanks for the reply I didn't think of that.

Any idea why my Control Center is Blank?(Empty White Screen) I compiled using cargo build --release (Intel macOS Host)

asheroto commented 1 year ago

941 similar request

The maker of the script that the OP mentioned also makes these following scripts:

ChatGPT Auto Refresh auto refresh - automatically click "regenerate request" when it errors out https://github.com/adamlui/chatgpt-auto-refresh image

ChatGPT Auto-Continue auto continue - automatically click "continue generating" with code https://github.com/adamlui/chatgpt-auto-continue image

These would be a perfect addition. I noticed there's a scripts section in Control Center of the app, but if you add custom scripts to the scripts directory, it doesn't pick it up, maybe there is a way without modifying the existing scripts?

I'd love to see this as a feature (add user scripts) so users could install and customize the install.

Alternatively if you have an option to automatically click those options that would be great. I use the app for code generation a lot and encounter these issues above multiple times a day. 😊

Love the app, thanks lencx!

solid-pixel commented 1 year ago

I'd also love a feature to add your own scripts, as editing main.js will mean losing all your changes whenever it gets updated on github.