On paper this is a tiny feature. Put the prompt in a URL, open a new tab, done.
In practice each chatbot needed its own handling.
The app is Cover Styles ( https://covers.yuriystasyuk.com ), a free library of book cover styles where each reference cover comes with a prompt. You pick a cover, hit ChatGPT or Gemini or Grok or Meta AI, and the idea is that you land in that chatbot with the prompt ready and the cover image available as a style reference. Getting text across was easy. Getting the image across is where it got weird.
The easy half: prompts in the URL
Three of the four take a query parameter, and one of them names it differently:
var AIS = [ { k : " chatgpt " , n : " ChatGPT " , u : q => " https://chatgpt.com/?q= " + q + " &hints=image " }, { k : " gemini " , n : " Gemini " , u : q => " https://gemini.google.com/app?q= " + q }, { k : " grok " , n : " Grok " , u : q => " https://grok.com/?q= " + q }, { k : " meta " , n : " Meta AI " , u : q => " https://www.meta.ai/?prompt= " + q } ];
Enter…