Get in touch with the DFE without losing your mind
If you've ever had to deal with the Irish passport service, you'll know how hard they are to get hold of. Their WebChat service is always unavailable because of the number of users trying to get in touch, so you have to sit there refreshing the page until you get a slot.
The Irish Passport WebChat Automator lets you get your place in the queue, without the effort, in 3 easy steps:
-
git clone https://github.com/lewisdonovan/irish-passport-webchat-automator.git
-
npm install - OR - yarn
-
node index.js
A browser window will open at the DFE Passport contact page, check if the WebChat is available and alert you if so. If it's not available, the browser window will close and the process will start again, repeating until the chat session is available.
The browser window will pop-up in the foreground of your screen, each time it opens. If you want to run it in the background, follow the info in this Stack Overflow answer.
the puppeteerConfig
, userAgent string and request headers can be edited to whatever you need, you'll find them in the index.js
file. The script is pretty simple, feel free to make your own forks or to add functionality via PRs.