Prompt to strip platform leftovers from exported HTML
This prompt asks an AI assistant to inventory the markup, scripts and CDN links that an exported Webflow, Framer, Squarespace, Shopify or Wix page still carries, sort them into safe to remove and tied to a script, and remove only the safe group. It reports everything else so you decide.
Last reviewed
Key facts
- Markers such as classes and data attributes are harmless until a script reads them.
- CDN links in HTML, CSS and inline styles are the leftovers that matter, because they tie the copy to the old platform.
- The assistant must report, not guess, when it cannot tell whether a script is still needed.
- Test status: run on a real export of webexport.online, which carries no Webflow, Framer, Squarespace, Shopify or Wix markers, so only the empty result was tested.
The prompt
Paste this into Claude Code, Cursor, Gemini CLI or another AI coding assistant with your project folder open, and replace everything in square brackets first. See how to run it in each tool.
You are cleaning a static export of a [PLATFORM: Webflow, Framer, Squarespace, Shopify or Wix] site in ./exported-site.
STEP 1: INVENTORY (change nothing)
Search every .html, .css and .js file and write a table to CRUFT_REPORT.md with these columns: item, files, count, what reads it.
Look for:
- requests to the platform's CDN hosts, in HTML attributes, inline styles, CSS url() values and JSON data attributes
- class names and data attributes that carry the platform's prefix
- scripts the platform added, and what each one does on the page
- forms and their action values
STEP 2: SORT
Put every item in one of three groups:
A. Safe to remove: nothing reads it. Give your evidence.
B. Tied to a script: a script or stylesheet depends on it.
C. Unsure.
STEP 3: REMOVE GROUP A ONLY
Make the change, then open three pages in a local server and confirm they look the same.
RULES
- Do not delete group B or C. List them and ask me.
- Do not rewrite content, links or text.
- Commit after each batch so I can roll back.How to run it
- Work on a copy of the unzipped export and start a local server so you can open pages.
- Send the prompt with the platform name filled in and read CRUFT_REPORT.md before you let the assistant change anything.
- Approve the safe group, then check three pages at phone and desktop width.
- Decide on group B and C one item at a time, with the assistant explaining what depends on each.
What each platform leaves behind
| Platform | CDN hosts to search for | Markers to expect | Remove only after |
|---|---|---|---|
| Webflow | website-files.com | w- classes, data-w-id, data-wf-page, data-wf-site | webflow.js and its interactions are rebuilt |
| Framer | framerusercontent.com | data-framer- attributes | the saved script modules are removed or kept deliberately |
| Squarespace | squarespace-cdn.com, static1.squarespace.com | sqs- classes | gallery and block scripts are rebuilt |
| Shopify | cdn.shopify.com | calls to /cart.js and product .js endpoints | cart code is replaced with links to your store |
| Wix | wixstatic.com, parastorage.com | scripts that place and animate elements | layouts are rebuilt without them |
Verify the result
These commands count the leftovers before and after the cleanup. Replace the pattern with the hosts for your platform from the table above.
grep -rlE "website-files.com|framerusercontent.com|squarespace-cdn.com|cdn.shopify.com|wixstatic.com|parastorage.com" ./exported-site | wc -l
python3 -m http.server 8080 --directory exported-site- The first number is lower after the cleanup, and every remaining hit is listed in CRUFT_REPORT.md as group B or C.
- Three pages look the same at phone and desktop width.
- The browser console shows no new 404 errors.
What can go wrong
- Removing a marker that a script reads breaks a menu or animation with no error message. The group B rule exists for this.
- The assistant rewrites text while it edits attributes. Check the diff for any change outside tags.
- Cleaning too aggressively on the first pass. Do one platform feature at a time.
Frequently asked questions
Is it safe to delete the platform markers?
Only when no script or stylesheet reads them. The prompt makes the assistant prove that for each item and put the rest on a list for you.
Why not delete every CDN link?
A link in a comment is harmless, while a script or stylesheet link means the page depends on the old platform. The report separates them.
Can a tool do this without AI?
The Webflow Code Cleanliness Audit flags bloated scripts and attributes in Webflow HTML, and the Asset Path Normalizer rewrites CDN URLs to local paths.
What if the site still loads files from the old platform?
Download them into the export folder and update the paths. The verify command lists the files that still point outward.
Official documentation
Free tools for this job
- No-Code Asset Path NormalizerRewrite CDN URLs to local relative paths for offline and self-hosted deployments.
- Webflow Code Cleanliness AuditAudit Webflow HTML for bloated interaction scripts, proprietary attributes, and form locks.
- No-Code Platform DetectorInstantly detect if a site is built with Webflow, Framer, Squarespace, Wix, or Shopify.
- Website Tech Stack DetectorDetect what technologies, frameworks, and platforms power any website.
Start with the files
Prompts work best on a WebExport download of your site. Paste your public URL into the export form and get a ZIP. The Free plan covers 1 site, 5 exports a month, 15 pages and 20 MB per export. Professional is a $9.99 one-time purchase with unlimited pages.