Skip to content

Instantly share code, notes, and snippets.

@jsrath
Last active November 3, 2018 11:18
Show Gist options
  • Save jsrath/f32545394217b74f8a890f4d609bf8b0 to your computer and use it in GitHub Desktop.
Save jsrath/f32545394217b74f8a890f4d609bf8b0 to your computer and use it in GitHub Desktop.
function removeTags() {
const tags = document.querySelectorAll('.css-viz');
tags.forEach((element) => {
element.parentNode.removeChild(element)
});
const all = document.querySelectorAll('*');
all.forEach((element, index) => {
element.style.border = window.localStorage.getItem(`border${index}`)
element.style.boxShadow = window.localStorage.getItem(`shadow${index}`)
});
window.localStorage.clear();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment