/    Sign up×
Community /Pin to ProfileBookmark

need some javascript templates

hello

can you tell me please how can I create js for my browser (opera) that will enable me to:

1)
identify specific buttons and autoclick them whenever they are included in any of the webpages I visit

example:
autoclick any button that has text *click here* on it, and that exists in any webpage from those I visit
(text should support wildcards/regex)

2)
identify specific forms and autofill them with specific text whenever they are included in any of the webpages I visit

example:
autofill with “myname” any form that is named *your name here*, and that exists in any webpage from those I visit
(text should support wildcards/regex)

3) I would also autoselect specific entries from specific drop down menus, autoselect specific tickboxes/radiobuttons, autoclick specific links (eg autoclick any link of this type [url]http://*.pdf[/url] to all the webpages I visit and have such links)

I want to monitor all webpages I visit and autoperfom these actions

something else:
I also would like to remove specific webpage parts so that the next time I will load them, those parts wont appear in my browser

can you tell me please how to do this?
can you give me few examples, for eg domain.com, etc

thanks!

=============================================================================================

can you tell me if there is a GUI framework to develop js object oriented tools?

eg I want to identify specific forms, buttons, links and to autoclick them whenever they are loaded in any webpage I visit

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinMay 07.2007 — wow!

You asked that here?

That is a full project, not a little example.

To start with, your primary issue will be that every web developer might name the fields on their forms differently, so you need an almost AI script to recognize all entry fields and then decide whichy is which by the surrounding text, field id, field name and/or alt tag.

Your base would have to be a launch page as your homepage with a frameset that you can load your command code into the top hidden frame and load websites in the lower frame. That would give you script access all the web sites. But this would be restricted because your script did not open the site, so I think that would be classed as XSS and that wouldn't be allowed at browser level.

You then have the added problem that some web developers do not allow their sites to be loaded inside a frame, so when you visit the site, a new window will open with the site in it.

What you are asking can be done, but not by javascript. Javascript doesn't have enough control to do this as you really need to be able to control the browser here. You would need to write a BHO (Browser Helper Object).

The BHO would need to be written in desktop language like C, C#, C++, VB etc etc.

Have fun!
Copy linkTweet thisAlerts:
@coloreauthorMay 07.2007 — What you are asking can be done, but not by javascript.[/QUOTE]

mmm, are you sure?

after extensive research I figured out that JS is the way to go...

are you aware of userscript, greasemonkey, javascript for opera, etc?

PS: I have come very close to implement many of the above
Copy linkTweet thisAlerts:
@felgallMay 07.2007 — You should be able to do it in Opera by installing an appropriate JavaScript file into the user script folder attached to the browser. Most of the code will be identical to what you would put in a script to be attached to a page so the best way to code it is to attach it to a page and get it working there first.
Copy linkTweet thisAlerts:
@coloreauthorMay 07.2007 — You should be able to do it in Opera by installing an appropriate JavaScript file into the user script folder attached to the browser. Most of the code will be identical to what you would put in a script to be attached to a page so the best way to code it is to attach it to a page and get it working there first.[/QUOTE]

yes, I know how to make it work in opera, the problem is to write the code...
×

Success!

Help @colore spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...