A fork of DarkPDF with a few exceptions...
- It's always enabled
- It's one file only (no service workers, no chromeAPI's)
- It only requires file:// permissions
It creates a white colored div that covers the entire viewport and then uses CSS to give the div a "mix-blend-mode: difference;".
https://stackoverflow.com/questions/43233115/
onActivated() runs when the active tab changes (tab URL may not be set at this point). onUpdated() is when any tab is updated.
chrome.action.onClicked.addListener(() => {}) // refers to the extension being clicked in the toolbar
chrome.runtime.onInstalled.addListener(() => {})
-
Big thanks to Arshpreet Buttar for his DarkPDF Extension (Github Link).