If I remove that required jquery, the event can be captured. on the page 
there is a jquery loaded. But I still don't know why? 

just because the required jquery would be violated with the one on target 
page?


On Monday, August 13, 2018 at 12:05:40 PM UTC-4, Tim wrote:
>
> Hi,
>
> I tried to capture a jquery-ui event: dialogopen but failed. My script is 
> as below. 
>
>
> // ==UserScript==
> // ....
> // @require 
> https://code.jquery.com/jquery-2.2.4.min.js#sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=
> // ==/UserScript==
>
> (function () {
> 'use strict';
>
> $(document).ready(function () {
>
> $(document).on("dialogopen", function (e, u) {
> console.log('dialog open');
> console.log(e);
> // do something here
> });
>
> });
> })();
>
> Can anyone help me out? 
>
> I tried to change the event to "click" and it worked fine. And I also 
> tried to run this from console and "dialogopen" event can be captured well.
> Do I miss any configuration like permission or anything else?
>
> Thanks
> -Tim
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to