On my website, I have two pages, each with a form. When you submit the first form on the first page, you are redirected to the second page with the second form. How can I submit both forms using a single Greasemonkey script?
Here is a step-by-step guide:
- Open Page 1
- Click on the submit button for the first form
- Once the submit action takes you to Page 2
- Click on the submit button for the second form
It's important to note that both pages have the same URL, but Page 1 displays on a 'GET' request, while Page 2 shows on a 'POST' request. (Editor's note: These pages may use AJAX-powered forms or submit-to-same-page forms.)