Add fixamo to enable Tridactyl on addons.mozilla.org

No, it's not April Fools' Day.
This commit is contained in:
maxigaz 2018-05-17 22:08:45 +01:00 committed by Oliver Blanthorn
parent 7955daea32
commit 002b7aae6c
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -262,6 +262,23 @@ export function cssparse(...css: string[]) {
console.log(CSS.parse(css.join(" "))) console.log(CSS.parse(css.join(" ")))
} }
/**
*
* Simply sets
* ```js
* "privacy.resistFingerprinting.block_mozAddonManager":true
* "extensions.webextensions.restrictedDomains":""
* ```
* in about:config via user.js so that Tridactyl (and other extensions!) can be used on addons.mozilla.org and other sites.
*
* Requires `native`.
*/
//#background
export async function fixamo() {
await Native.writePref("privacy.resistFingerprinting.block_mozAddonManager", true)
await Native.writePref("extensions.webextensions.restrictedDomains", "")
}
/** /**
* Uses the native messenger to open URLs. * Uses the native messenger to open URLs.
* *