window.onload works in Firefox+Greasemonkey script but not in a Chrome userscript?
问题 There is a page http://example.com/1.php that includes javascript file as usual: <script type="text/javascript" src="/util.js?1354729400"></script> This file contain function named exampleFunction which I need to use in my userscript. Also I have an user script: // ==UserScript== // @name SomeName // @namespace http://example.com/userscripts // @description Greets the world // @include http://example.com/* // ==/UserScript== window.onload = function () { console.log(exampleFunction); alert(