Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Navigator.plugins</title>
</head>
<body>
<script type="text/javascript" charset="utf-8">
Navigator.prototype._navigator = Navigator.prototype.navigator;
Navigator.prototype.navigator = function(){return [1,2,3]};
document.write('navigator.plugins.length = ' + navigator.plugins.length + ' // should be 3' );
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.