Skip to content

Instantly share code, notes, and snippets.

@Sakurina
Created May 20, 2011 15:47
Show Gist options
  • Save Sakurina/983201 to your computer and use it in GitHub Desktop.
Save Sakurina/983201 to your computer and use it in GitHub Desktop.
function runScriptsYo(doc) {
var scripts = doc.getElementsByTagName("script");
for (var i=0; i<scripts.length; i++)
eval(scripts[i].firstChild.nodeValue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment