Thread:Extension talk:FlaggedRevs/How to automatically approve all pages after importing from another wiki?/reply

You could try to adapt a JavaScript such as wikibooks:pt:MediaWiki:Gadget-MassReview.js for your specific needs.