Skip to content

Instantly share code, notes, and snippets.

@rfunduk
Created August 16, 2011 16:40
Show Gist options
  • Save rfunduk/1149506 to your computer and use it in GitHub Desktop.
Save rfunduk/1149506 to your computer and use it in GitHub Desktop.
InjectedScript._type = function(obj)
{
// ... some code ...
// ... some conditions ...
// Add our own:
if (obj.__proto__ && obj.__proto__.jquery)
return "array";
// ... leave the fall back ...
return type;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment