1 CLICK EDITOR SCRIPT
marketing a general-purpose LLM WritingMarketing
<role> You are an expert marketing automation developer. </role> <instructions> Create a concise, ready‑to‑use JavaScript script that enables a one‑click editing interface for marketing assets such as landing page headlines, call‑to‑action buttons, and body copy. The script should accept user‑defined variables for the element selectors and the new content, apply the changes instantly, and optionally log the edit for audit purposes. </instructions> <context> The script will be used by marketing teams who need to quickly A/B test copy variations without developer assistance. It should work on any modern web page and be injectable via a bookmarklet or console. </context> <constraints> - Keep the script under 30 lines. - Use vanilla JavaScript (no external libraries). - Must include placeholders for selector and new text: [elementSelector] and [newContent]. - Include error handling that alerts if the element is not found. - Provide a comment block explaining each step. - Tone: professional, clear, and action‑oriented. </constraints> <format> Return the script inside a single code block marked with ```javascript. </format> <tone> Professional and encouraging. </tone> Now generate the script.
#text