Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Browser Plugin that Auto click popups

  • 19-03-2021 11:42AM
    #1
    Registered Users, Registered Users 2 Posts: 2,915 ✭✭✭


    I have to access a website for work, it pops up and requests interaction every few minutes. Click OK.

    Is there a plugin one can get in any browser that will automatically click a button on a popup. Popup blocker not an option.

    chrome seems to have the most plugins but it doesnt have to be in chrome.

    If not a browser plugin then even a little app, that does something every 10 seconds?
    Checks If browser open
    If website = <work address>
    if popup open
    Then click ok.


Comments

  • Registered Users, Registered Users 2 Posts: 7,098 ✭✭✭Talisman


    Is it an alert dialog box or a div masquerading as a dialog box?

    If it's an alert modal dialog box then there is no way to use JavaScript to click the OK button. The modal dialog will stop the execution of the thread until the dialog is closed.

    If it's not a real dialog box then you could use JavaScript to simulate the OK button click event.

    A better solution might be to identify the event that triggers the popup and intercept it with your own handler.


  • Registered Users, Registered Users 2 Posts: 1,424 ✭✭✭nullObjects


    Think Talismans answer is on the ball

    If you wanted to write your own extension it's pretty well documented:
    https://developer.chrome.com/docs/extensions/mv3/getstarted/

    You could write a piece of javascript to click on the button and then have it trigger whenever you hit the domain of the application you are using for work.

    You would just load your own extension into your local Chrome, you wouldn't need to publish it or anything

    You could also use something like autohotkey, create an action that clicks on your dialog and bind it to a shortcut key:
    https://www.autohotkey.com/

    But I think writing a javascript script to do it is probably a lot better


Advertisement