How can I mimic Greasemonkey/Firefox's unsafeWindow functionality in Chrome?
问题 I'm just fiddling around with user scripts in chrome right now, so please bear with my potential ignorance/idiocy. In the page I'm writing a script for, there is a <script> element that declares a variable x . Does this mean that, in my user script, I can just access x from the global namespace? For example, if the only line in my userscript is alert(x); , should that work as expected (assuming x is a String)? I understand chrome doesn't support unsafewindow, but for some reason I'm finding