When this page loads, I want to simulate automatically clicking the send me this thing
button whilst having it open in a new window (or new tab)
- There will only ever be one
send me this thing
button on any page like that
What for?
This is for Greasekit on Fluid.app, which is similar to Greasemonkey.
That Button is a link and that page uses jQuery. So you can get the button like:
Then modify the link to open in a new tab/window.
Then click the link.
The code is:
BUT, beware that modern popup blockers will block this, I don't know about the webkit embedded in your version of Fluid. Tell your popup blocker to allow these particular popups.
Also, because this is Greasekit, you need to inject the above code, so the complete userscript will be something like: