How can I automatically click a link if it is on the current page?
My Rogers webmail client (based on Yahoo) places an ad at the right side of the screen on almost every page, that takes up a lot of screen space. It has a "Hide" link that I click every time. Unfortunately every refresh of the page or load of a new page brings the ad back. I would like to have something automatically click that "hide" link every time it appears.
It is a long link with most of it the same each time, only a rand= string at the end that changes. So it would either need to support wildcards, or match on part of the link.
Any suggestions? I suppose maybe I could install some sort of ad blocker, but that seems like overkill to hide this one ad. It is the only ad that I find annoying. Thanks.
כל התגובות (2)
you can try to write some web driver to do this particular job for you, one such driver is Selenium. know more about it at https://code.google.com/p/selenium/downloads/list.
But this thing will need a good programming skill. Otherwise you have Adblock plus addon (https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/), you can try this. you can also contact its developer to include this particular facility also in this add on
Check out some of the add blocking add-ons at Mozilla Add-ons Web Page