This script needs to be run on the Map screen:
/game.php?screen=map
(if you are not on the map screen, it will redirect you there)
This is how the script looks like in action:
You can filter bonus villages by radius (from the current village), bonus type, and minimum points of bonus village...