Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more windows for Copilot to use Creative, Balance, Precise #29

Open
nhan000 opened this issue May 9, 2024 · 4 comments
Open

Add more windows for Copilot to use Creative, Balance, Precise #29

nhan000 opened this issue May 9, 2024 · 4 comments

Comments

@nhan000
Copy link

nhan000 commented May 9, 2024

I'd like to use 3 modes of Copilot (Creative, Balance, Precise) together. If there's a way to add 2 more windows for Copilot that'd be great! Thank you!

@win4r
Copy link
Owner

win4r commented May 9, 2024

It is easy to modify the JSON in the settings like this:
{
"id": 3,
"name": "Copilot",
"url": "https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx",
"script": "(document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').value = '[message]', document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').dispatchEvent(new Event('input', {bubbles: true })), document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').dispatchEvent(new KeyboardEvent('keydown', {key: 'Enter' })));",
"iniScript": ""
},
{
"id": 4,
"name": "Copilot",
"url": "https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx",
"script": "(document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').value = '[message]', document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').dispatchEvent(new Event('input', {bubbles: true })), document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').dispatchEvent(new KeyboardEvent('keydown', {key: 'Enter' })));",
"iniScript": ""
},
{
"id": 5,
"name": "Copilot",
"url": "https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx",
"script": "(document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').value = '[message]', document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').dispatchEvent(new Event('input', {bubbles: true })), document.querySelector('cib-serp').shadowRoot.querySelector('#cib-action-bar-main').shadowRoot.querySelector('cib-text-input').shadowRoot.querySelector('#searchbox').dispatchEvent(new KeyboardEvent('keydown', {key: 'Enter' })));",
"iniScript": ""
},

@nhan000
Copy link
Author

nhan000 commented May 9, 2024

After replacing the highlighted section:
image

with your suggestion, so it now looks like this (replacing Claude and HuggingChat):

image

The app just crashed after that and couldn't be launched again. I've tried other ways to modify the config (name it 36, 37, 38, etc.) and restarted my PC but none works. I'm on Windows 11, Aila latest version.

@win4r
Copy link
Owner

win4r commented May 10, 2024

Uninstall AIla and reinstall. Your should modify the content in Text Edit applicaton,then copy and paste into Aila.

@nhan000
Copy link
Author

nhan000 commented May 10, 2024

It's still crashing for me unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants