You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
awesome-chatgpt-prompts/extensions/firefox/content/content.js

11 lines
370 B

(function() {
// Listen for messages from the extension
browser.runtime.onMessage.addListener((message) => {
console.log("Message recieved, prompt = " + message.prompt)
// Find the text area element on the page
const textArea = document.querySelector("textarea")
// Fill the text area with the prompt
textArea.value = message.prompt;
});
})();