Skip to content

Instantly share code, notes, and snippets.

@daneden
Created May 28, 2015 05:17
Show Gist options
  • Save daneden/89d869da5c5c2f247e1f to your computer and use it in GitHub Desktop.
Save daneden/89d869da5c5c2f247e1f to your computer and use it in GitHub Desktop.
var paras = document.querySelectorAll('p');
for(var p of paras) {
if (p.textContent.startsWith('“')) p.classList.add('p--oq');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment