Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
17 changes: 17 additions & 0 deletions chromium/background-scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,23 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
}
});

/**
* @description Notify users about extension sunsetting in January 2023 and instructions turn on HTTPS natively
* @link https://www.eff.org/deeplinks/2021/09/https-actually-everywhere
*/
chrome.runtime.onInstalled.addListener(async ({reason, temporary}) => {
if (temporary) return;
switch (reason) {
case "install":
case "update":
{
const url = "https://www.eff.org/https-everywhere/set-https-default-your-browser";
await chrome.tabs.create({ active : false, url: url });
}
break;
}
});

/**
* Clear any cache/ blacklist we have.
*/
Expand Down