mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Add fixamo
to enable Tridactyl on addons.mozilla.org
No, it's not April Fools' Day.
This commit is contained in:
parent
7955daea32
commit
002b7aae6c
1 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue