Skip to content

Instantly share code, notes, and snippets.

@Padilo300
Created March 30, 2023 18:01
Show Gist options
  • Select an option

  • Save Padilo300/a027e7f0c39e460c41e589371f9c12f4 to your computer and use it in GitHub Desktop.

Select an option

Save Padilo300/a027e7f0c39e460c41e589371f9c12f4 to your computer and use it in GitHub Desktop.

Revisions

  1. Padilo300 created this gist Mar 30, 2023.
    1 change: 1 addition & 0 deletions save all css per page
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Object.values(document.styleSheets).map(x => {try{return Object.values(x.rules).map(x => x.cssText).join("\n")}catch{return []}}).join("\n")