nix-files/pkgs/additional/firefox-extensions/bypass-paywalls-clean/0001-dont-show-options.patch
Colin b6c8b1948b bypass-paywalls-clean: don't show options on first launch
this is apparently a thing firefox does when it sees the `options_ui`
key in manifest.json?
2023-10-05 19:02:51 +00:00

46 lines
1.2 KiB
Diff

commit dd8eabcd90ea0ea0df5c4554524ef9f82589bb35
Author: Colin <colin@uninsane.org>
Date: 2023-07-18 22:23:58 +0000
don't show options on first-run
diff --git a/background.js b/background.js
index e0c38e6..5d4acf4 100644
--- a/background.js
+++ b/background.js
@@ -1486,18 +1485,6 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
}
});
-// show the opt-in tab on installation
-ext_api.storage.local.get(["optInShown", "customShown"], function (result) {
- if (!result.optInShown || !result.customShown) {
- ext_api.tabs.create({
- url: "options/optin/opt-in.html"
- });
- ext_api.storage.local.set({
- "optInShown": true,
- "customShown": true
- });
- }
-});
function filterObject(obj, filterFn, mapFn = function (val, key) {
return [key, val];
diff --git a/manifest.json b/manifest.json
index 5af8d8f..3fb7be7 100644
--- a/manifest.json
+++ b/manifest.json
@@ -30,11 +30,6 @@
"manifest_version": 2,
"name": "Bypass Paywalls Clean",
"short_name": "Bypass Paywall",
- "options_ui": {
- "browser_style": true,
- "open_in_tab": true,
- "page": "options/options.html"
- },
"optional_permissions": [
"<all_urls>"
],