Since Polisens web queueing solution for getting a passport sucks, and it is more or less impossible to book a time, I wrote this small javascript. What it does is that it automates the searching for a bookable time. In the file you just change the constants to your information and away you go. :)
For some the confirm doesn't show up, which makes you loose the selected time quickly.
This allows for config in the script to automatically click "next" as soon as a suitable time is found