- Mar 22, 2013
- 9,145
- 10,489
So I want to do something in Firefox. It's something between Greasemonkey and a bookmarklet.
In a nutshell, I want to open a page and have something be auto-clicked on it.
The issue with bookmarklets is that they stop working on page reload. So I can use a bookmarklet to open the page, but then the code won't continue to execute the click.
The problem with Greasemonkey is that it's URL-bound. And that won't work in this case because I need a different thing clicked on the same URL (the click should be defined by me).
The idea was to use bookmarklets, and to have for example 3 bookmarklets in my browser:
| Open tab and Click 1 | Open Tab and click 2 | Open tab and Click 3 |
And then depending on what I need I would click the correct bookmarklet and it would open the page and click what I want.
So let's say I want to open 1 tab for each. I would do 1 middle-mouse-click on each bookmarklet. That would open 3 new tabs, and each would have the right thing clicked.
---
So bookmarklets won't work, at least not according to the guy who tried to make this for me and according to the reading I did on stackoverflow (granted, the stackoverflow threads are old).
Greasemonkey won't work. Unless, I don't know, if I can manipulate Firefox to open a URL of my choice, but inside that URL load the page I need (maybe in a frame?), and then I can have greasemonkey click what I need inside the frame. So say I open:
bhw.com
bhw1.com
bhw2.com
Bu they all actually open/display bhworld.com on the page. Then Greasemonkey could click based on URL, and solve my problem.
So I don't know. Any ideas?
In a nutshell, I want to open a page and have something be auto-clicked on it.
The issue with bookmarklets is that they stop working on page reload. So I can use a bookmarklet to open the page, but then the code won't continue to execute the click.
The problem with Greasemonkey is that it's URL-bound. And that won't work in this case because I need a different thing clicked on the same URL (the click should be defined by me).
The idea was to use bookmarklets, and to have for example 3 bookmarklets in my browser:
| Open tab and Click 1 | Open Tab and click 2 | Open tab and Click 3 |
And then depending on what I need I would click the correct bookmarklet and it would open the page and click what I want.
So let's say I want to open 1 tab for each. I would do 1 middle-mouse-click on each bookmarklet. That would open 3 new tabs, and each would have the right thing clicked.
---
So bookmarklets won't work, at least not according to the guy who tried to make this for me and according to the reading I did on stackoverflow (granted, the stackoverflow threads are old).
Greasemonkey won't work. Unless, I don't know, if I can manipulate Firefox to open a URL of my choice, but inside that URL load the page I need (maybe in a frame?), and then I can have greasemonkey click what I need inside the frame. So say I open:
bhw.com
bhw1.com
bhw2.com
Bu they all actually open/display bhworld.com on the page. Then Greasemonkey could click based on URL, and solve my problem.
So I don't know. Any ideas?