Last active
November 3, 2018 11:18
-
-
Save jsrath/f32545394217b74f8a890f4d609bf8b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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