Skip to content

Instantly share code, notes, and snippets.

@Padilo300
Created March 30, 2023 18:01
Show Gist options
  • Save Padilo300/a027e7f0c39e460c41e589371f9c12f4 to your computer and use it in GitHub Desktop.
Save Padilo300/a027e7f0c39e460c41e589371f9c12f4 to your computer and use it in GitHub Desktop.
save all css per page
Object.values(document.styleSheets).map(x => {try{return Object.values(x.rules).map(x => x.cssText).join("\n")}catch{return []}}).join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment