Skip to content

Instantly share code, notes, and snippets.

@ryantbd
Last active August 29, 2015 13:58
Show Gist options
  • Save ryantbd/9974415 to your computer and use it in GitHub Desktop.
Save ryantbd/9974415 to your computer and use it in GitHub Desktop.
Add weinre debug as the first child of <body>
;(function(e) {
e.setAttribute("src", location.protocol + "//" + location.hostname + ":2014/target/target-script-min.js#dev");
document.getElementsByTagName("body")[0].appendChild(e);
})(document.createElement("script"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment