Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Browser Plugin that Auto click popups

  • 19-03-2021 10:42am
    #1
    Registered Users, Registered Users 2 Posts: 2,906 ✭✭✭


    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: 6,289 ✭✭✭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,367 ✭✭✭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