Skip to content

Instantly share code, notes, and snippets.

@baptiste-roullin
Last active March 9, 2022 18:16
Show Gist options
  • Save baptiste-roullin/b103a031ee019df97de92a80c79d8337 to your computer and use it in GitHub Desktop.
Save baptiste-roullin/b103a031ee019df97de92a80c79d8337 to your computer and use it in GitHub Desktop.
const all = document.querySelectorAll('*')
for (var i = all.length - 1; i >= 0; i--) {
const after = window.getComputedStyle(all[i], ':after').content
const before = window.getComputedStyle(all[i], ':before').content
if (after !== 'none' && after !== '\"\"') {console.log(after)}
if (before !== 'none' && before !== '\"\"') {console.log(before)}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment