Skip to content

Instantly share code, notes, and snippets.

@Yi-Tseng
Created July 23, 2014 18:15
Show Gist options
  • Save Yi-Tseng/1d58cb6b1088a972152c to your computer and use it in GitHub Desktop.
Save Yi-Tseng/1d58cb6b1088a972152c to your computer and use it in GitHub Desktop.
var elems = document.getElementsByTagName('*');
for (i in elems) {
if((' ' + elems[i].className + ' ').indexOf(' _5pcp _5vsi ') > -1) {
var a = document.createElement('a');
a.href='#';
a.innerHTML = '<(_ _)>'
elems[i].innerHTML = elems[i].innerHTML + ' · ';
elems[i].appendChild(a);
console.log(elems[i] + 'appened');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment