Install the Cheat Layer extension and try these prompts to test it out:
Prompts:
1)
Assume a function exists called runOnTab(URL,CODE) to run javascript code in a new tab. Use this to open https://google.com in a new tab and run the code to pop up an alert that says hello. Do not define runOnTab since I have already done it.
2)
Generate a list of all the US cities with over 1 million population
Assume a function exists called google_sheets_add_row(sheets_url, "Sheet1", [data]). The third parameter must be an array of a single string value.
Loop through each city, and use javascript and this function to send the above list to google sheets with this sheet URL: https://docs.google.com/spreadsheets/...
3)
Using javascript, generate a 3D scene with three.js. Inject the canvas into the HTML page. Only show me the javascript.
4)
Using javascript, generate a 3D scene that takes webcam input for textures with three.js. Inject the canvas into the HTML page. Only show me the javascript.
5)
Generate a landing page for a Saas product that sells sales automation services using just javascript and inject it into the document on top of everything with a high zindex. Use this logo: https://cheatlayer.com/v3/images/logo....
Generate only Javascript. Run the code immediately.
1 comment
[ 0.21 ms ] story [ 12.3 ms ] thread2) Generate a list of all the US cities with over 1 million population
Assume a function exists called google_sheets_add_row(sheets_url, "Sheet1", [data]). The third parameter must be an array of a single string value.
Loop through each city, and use javascript and this function to send the above list to google sheets with this sheet URL: https://docs.google.com/spreadsheets/...
3) Using javascript, generate a 3D scene with three.js. Inject the canvas into the HTML page. Only show me the javascript.
4) Using javascript, generate a 3D scene that takes webcam input for textures with three.js. Inject the canvas into the HTML page. Only show me the javascript.
5) Generate a landing page for a Saas product that sells sales automation services using just javascript and inject it into the document on top of everything with a high zindex. Use this logo: https://cheatlayer.com/v3/images/logo....
Generate only Javascript. Run the code immediately.