One of the bureaucrats at StrategyWiki, Ryan Schmidt, wrote something similar in JavaScript. When you click on the Mark as patrolled link, it patrols the edit and automatically moves on to the next unpatrolled edit to that page (when it reaches the end of the line, you get a message 'Done. You may now browse away from the page.') Though it isn't guaranteed to work.
It's on my JS page there under Ajax Patrol:
here.If you want to use it, you'll need to change importScript to importScriptURI... and something else I can't quite remember. Use the full url instead of the SW page name, or something like that. You probably should credit him, with a comment line such as //by Ryan Schmidt. It's the honourable thing to do, I guess. You'll also need to import the top 'Common library of functions' line, and put it at the very top of the JS page.