Skip to content

Instantly share code, notes, and snippets.

View gcoop's full-sized avatar

Gavin Cooper gcoop

  • Surfline.com
  • Newport Beach, CA
View GitHub Profile
@nathansmith
nathansmith / remove_style.js
Last active August 18, 2020 21:03
Remove inline styles
/*
Remove inline style="..."
Preserve hidden content.
Call the function like this:
var all = document.getElementsByTagName('*');
remove_style(all);