win4r / AISuperDomain

Aila(AI超元域): The premier AI integration tool for Windows, macOS, and Android. Ask once, get answers from 10+ AIs like ChatGPT, Gemini, Claude3, Copilot, Poe, perplexity and more. Features customizable AI and prompts.
https://www.youtube.com/@AIsuperdomain
MIT License
859 stars 144 forks source link

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

Open nhan000 opened 6 months ago

nhan000 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

nhan000 commented 6 months ago

It's still crashing for me unfortunately.