Chrome/Firefox Add-on Remote switch

I have crated add on that is a remote switch for Pi-Hole to enable and disable the ad blocker with the specified time provide by the user without having to open a new tab and go to the server URL. It requires no other installs on the server. It just uses the API key.

https://addons.mozilla.org/en-US/firefox/addon/switch-pi-hole/

https://chrome.google.com/webstore/detail/remote-switch-for-pi-hole/nkkklnmkpmobgcbkipccdjahpcgbhnki

I have uploaded the source code to my Github

1 Like

Thank you for the feedback! This was my first time using Javascript and CSS, I will add what you added to my list of things to change on it.

I've been using your extension in chrome for quite some time. Recently though it seemed to stop working. I'm not sure what changed. I've tried removing and re-adding the extension and re-entering the API Key. It still remains in "test" mode.

I'm suspecting it was a recent MacOS update that broke it but can't be sure. Any suggestions where to look?

Can you still access

http://pi.hole/admin

from with in Chrome?

Yes. No problem.

What version of Chrome, OS, and Pi Hole are you using. I don't have a mac to test this on.

Thanks for trying to help. Turns out something got tweaked in my VPN settings and it wasn’t using the pi-hole as DNS anymore.

When I tested http://pi.hole/admin before it was from my phone, I tried again from the desktop and it didn’t work so I was able to narrow it down.