I've never written a Google Chrome User Script before.
There is a website that periodically opens a modal popup. The popup requires acceptance before the underlying page will be updated. When the popup isn't present the page updates automatically.
The popup does 2 things.
1 - A <div> with an ID of "confirm-acceptance" becomes visible (CSS display changed).
2 - The div contains an <a> with an onclick event of fn_AcceptanceConfirmed();
So, I want the script to call fn_AcceptanceConfirmed(); when the <div id="confirm-acceptance"> is visible.
Is this possible? Checking once every 10 minutes or so would be fine.
Clues or code would be great.
There are 2 links, but if the first one can be explained, then I can do the second.