Skip to content

Instantly share code, notes, and snippets.

@Ventero
Created August 20, 2011 20:03
Show Gist options
  • Save Ventero/1159592 to your computer and use it in GitHub Desktop.
Save Ventero/1159592 to your computer and use it in GitHub Desktop.
Late injection test
// ==UserScript==
// @name Late injection test
// @namespace ventero
// @include *
// @require https://gist.github.com/raw/1159592/883c27709814b7066708e50c51522937ab37678d/require.js
// ==/UserScript==
if(typeof requiredScript === "undefined") requiredScript = "not present";
alert("Injected!\ndocument.readyState is " + document.readyState + "\n required script is " + requiredScript);
var requiredScript = "present";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment