{"id":14989009,"url":"https://github.com/jonkpirateboy/pass-fur-alle","last_synced_at":"2025-04-05T13:06:47.556Z","repository":{"id":40302876,"uuid":"471828970","full_name":"jonkpirateboy/Pass-fur-alle","owner":"jonkpirateboy","description":"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. :)","archived":false,"fork":false,"pushed_at":"2022-12-28T12:35:23.000Z","size":73,"stargazers_count":373,"open_issues_count":3,"forks_count":94,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-04-05T13:06:29.076Z","etag":null,"topics":["javascript","passport","tampermonkey"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonkpirateboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-19T22:46:32.000Z","updated_at":"2025-02-07T23:55:22.000Z","dependencies_parsed_at":"2023-01-31T06:30:49.618Z","dependency_job_id":null,"html_url":"https://github.com/jonkpirateboy/Pass-fur-alle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkpirateboy%2FPass-fur-alle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkpirateboy%2FPass-fur-alle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkpirateboy%2FPass-fur-alle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkpirateboy%2FPass-fur-alle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonkpirateboy","download_url":"https://codeload.github.com/jonkpirateboy/Pass-fur-alle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339155,"owners_count":20923014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","passport","tampermonkey"],"created_at":"2024-09-24T14:17:34.192Z","updated_at":"2025-04-05T13:06:47.541Z","avatar_url":"https://github.com/jonkpirateboy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pass für alle\n\nSince 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 preferred booking dates and away you go. :) More or less.\n\n*If the script you have on your computer stops working, make sure to check for updates and download the latest version.*\n\nMy site about [Pass für alle](https://passfuralle.se/) (in Swedish)\n\n## Install\n\n* Download the code to your computer, easiest way is to click [here](https://github.com/jonkpirateboy/Pass-fur-alle/archive/refs/heads/main.zip). This is the same file you get when clicking the green *Code*-button, followed by *Download Zip*. Extract the zip-file.\n* Go to [Tampermonkey](https://www.tampermonkey.net/) and install the addon to your browser.\n* Click the new icon in your browser for Tampermonkey and click `Create a new script`.\n* Open the `pass-fur-alle.js` file with a simple text editor like TextEdit, Notepad or something like that.\n* Copy all the code from `pass-fur-alle.js` and paste it in the Tampermonkey editor in the browser (replacing whatever is there) and save. If you want to change dates or other settings, read more under [Settings](#settings) below. \n* After that, read [Run the damn thing](#run-the-damn-thing).\n\n## Settings\n\nIn the script there are some constainst that you need to change, they are found under the comment `// Constants`\n\n### Start searching today.\n\n`var dateFrom = today();`\n\nIf you want to start some other day, just change this to a date with the format YYYY-MM-DD, for example:\n\n`var dateFrom = '2022-08-24';`\n\n### The last date you want to search for\n\n`var dateTo = '2022-12-24';`\n\n### Auto confirm time \n\n`var autoConfirm = true;`\n\nIf you don't want to allow auto confirm of found time slot, change to `false`.\n\n`var autoConfirm = false;`\n\n### Only accept time from specific passport offices\n\n`var acceptOffice = 'Solna,Globen,Täby,Sthlm City';`\n\nSet which passport offices you will accept time slots from. Separate offices with a comma.\n\n## Run the damn thing\n\n* Go to the [booking page](https://polisen.se/tjanster-tillstand/pass-och-nationellt-id-kort/boka-tid-hitta-passexpedition/) and click on where you want to book.\n* On step 4, where you search for free slots, the buttons are changed to work for you, instead of you working for the buttons.\n* Click whatever suits you, and the site will try to find you a good slot.\n* When a slot has been found you will hear a bell ring and you can now finish the booking of your time.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonkpirateboy%2Fpass-fur-alle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonkpirateboy%2Fpass-fur-alle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonkpirateboy%2Fpass-fur-alle/lists"}