Remove site list entries from Dark Reader extension
After using Dark Reader for a few months, my site list has been growing and this affects my browsing experience a lot.
For example:
- Everytime I run a ASP.NET app, IIS will assign it a random port (e.g.
localhost:55167) and everylocalhostwebsite will share Dark Reader configuration. - Recently, when I toggle any
localhostsites, they will not change fromdarktolightor reverse. I must toggle the optionInvert list only/Not invert listto deal with this behavior in the mean time. I suspect that there are manylocalhostsites with different port in the site list but I only toggle thelocalhostsite with its current port number. There are still many otherlocalhostsites in the site list.
I tried to dig through Dark Reader code for filtering/deleting my site list but the codebase is huge for me. There are many design decisions in there but there is no comment/documentation explain how things work so I gave up on the codebase.
I can remove the site list manually from the Dark Reader popup but my number of sites in there has been growing to 3 digits. I cannot delete all of them manually.
Because of that, I decide to create a Python script to automate the task for me.
pip install -r ./requirements.txtCheck the content of the script before runnning. I not responsible for any works you may lost while you are using the script.
python main.py
- Open Dark Reader by click on the extension icon
- Open
Site List - Scroll to the first site in the list
- Place the cursor on the first site
- Press
F9to start or pause - Press
ESCto end the program
Start the automating process with F9 and leave the computer there until there is no site entry left then press ESC to end the program.