Are you sure you want to go to an external site to donate a monetary value?
WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
Hello,
my scripts broke by the current changes of FF/GM.
One problem is the dispatching of mouse clicks.
My old function:
Can anyone here help me how I have to create a click event now?
Thanks in advance!
Re: @BastianKanaan:
Hi there,
I'm trying to rebuild myfreefarm but I'm not too good with this. It does not work at all. Can you help me?
Can you tell me what to do?
Thanks in advance
Re: @marine64:
Slightly incorrect place for this I think... might try the script itself.
Re: @BastianKanaan:
Did you try just calling a synthetic click event on the node element? e.g.
someNode.click();
Re: @Marti:
It should work if a node has click() method. If it hasn't (
<a>
element for ex.), the call ofdispatchEvent(click)
does nothing.The only thing I can advise in this situation -- to simulate the behavior of mouse click using lower-level functions (window.open,
XMLHttpRequest..)
Re: @BastianKanaan:
a similar question in stackOverflow
This is my working function now:
The problem of my script was another one (security change of FF 30/31).
Re: @BastianKanaan:
confirmed, it really works. I post it to stackOverflow
and see how-do-i-programmatically-click-on-an-element-in-firefox
Also note that 2nd argument of
MouseEvent
constructor is optional at least under FF33 (I just tested right now):var evt = new MouseEvent('click');