Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.15k stars 415 forks source link

jQuery(window).load() not firing #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
[code]// ==UserScript==
// @name       Webcomic Reader 2
// @namespace  http://to.do.later
// @version    0.1
// @description  WIP 
/// @match      http://*/*
// @include    http://*.keenspot.com/*
// @include    http://www.interrobangstudios.com/potluck*
// @include    http://satwcomic.com/*
// @include    http://www.twogag.com/*
// @include    http://www.vgcats.com/comics/*
// @require    http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @copyright  2012+, martixy
// ==/UserScript==

(function()
{
    jQuery(window).load(function(){
        alert("Proc");
});
})();
[/code]

What is the expected output? What do you see instead?
Will not fire the event at all.

What version of the product are you using? On what operating system?
TM 2.5.64

Please provide any additional information below.
Works in greasemonkey(as in FF) and opera. Suspect it would work natively in 
chrome, but with jQuery being cross-domain, it won't load.
May this be an issue with TM?

Original issue reported on code.google.com by Martin.N...@gmail.com on 10 Aug 2012 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by derj...@googlemail.com on 13 Aug 2012 at 4:18

GoogleCodeExporter commented 9 years ago
Please try with latest beta and give some feedback in case something still is 
not working as expected. Thanks.

Original comment by derj...@googlemail.com on 20 Aug 2012 at 2:56

GoogleCodeExporter commented 9 years ago
This is still broken for me.  v2.6.2767

Original comment by josh.m.s...@gmail.com on 9 Oct 2012 at 9:09

GoogleCodeExporter commented 9 years ago
[code]
// ==UserScript==
// @name       Jquery Window Load Test
// @namespace  http://to.do.later
// @version    0.1
// @description  WIP 
/// @match      http://*/*
// @include    http://*.keenspot.com/*
// @include    http://www.interrobangstudios.com/potluck*
// @include    http://satwcomic.com/*
// @include    http://www.twogag.com/*
// @include    http://www.vgcats.com/comics/*
// @require    http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @copyright  2012+, martixy
// ==/UserScript==

(function() {
    jQuery(window).load(function(){
        console.log(">>>>>>>>>>>>>>>> YIPPPPPIEAH! <<<<<<<<<<<<<<<<<<<");
        console.log(window.location.href);
});
})();
[/code]

Is working fine for me: http://postimage.org/image/lwe2plspx/

Original comment by derj...@googlemail.com on 11 Oct 2012 at 6:30