Skip to content

Instantly share code, notes, and snippets.

@sarnold
Created December 13, 2020 01:49
Show Gist options
  • Save sarnold/68a9b8f3e6577c9ee3d72faf1bbced9a to your computer and use it in GitHub Desktop.
Save sarnold/68a9b8f3e6577c9ee3d72faf1bbced9a to your computer and use it in GitHub Desktop.
js test
if(parent.document.URL!=document.location.href)
throw new Error("No script injected");
(function(e){e.setAttribute("src","https://gist.githubusercontent.com/ian-bateman/1b5e31ec14b2e82b1fa8891d3de81105/raw/b68d985be347f1406b3d67c29f906d2dcdbf054c/test.js");
document.getElementsByTagName("body")[0].appendChild(e);})
(document.createElement("script"));void(0);
console.log("******* Script Injected *******")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment