Disable motion on an owned page
The script targets a controlled preparation task. It does not attempt a login or multi-step interaction flow.
const response = await fetch(
"https://api.prod.ss.snapshot-site.com/api/v2/screenshot",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-snapshotsiteapi-key": process.env.SNAPSHOT_SITE_API_KEY,
},
body: JSON.stringify({
url: "https://example.com/preview",
format: "png",
width: 1440,
fullSize: true,
javascriptCode: `
const style = document.createElement("style");
style.textContent =
"*,*::before,*::after{animation:none!important;transition:none!important}";
document.head.appendChild(style);
`,
}),
},
);
