summaryrefslogtreecommitdiff
path: root/modules/nixos/firefox/default.nix
blob: 8e2380b1d42d8301487d855f20298420788656d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
{
  config,
  inputs,
  lib,
  pkgs,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.firefox;
in {
  options.nixfiles.modules.firefox.enable = mkEnableOption "Firefox";

  config = mkIf cfg.enable {
    hm = {
      imports = [inputs.arkenfox-nixos.hmModules.arkenfox];

      home.packages = with pkgs; [profile-cleaner];

      programs.firefox = {
        enable = true;

        package = pkgs.firefox;

        arkenfox.enable = true;

        profiles.default = let
          mkCssWithRoot = css:
            mkMerge [
              (with config.colourScheme; ''
                :root {
                    --black: ${black};
                    --red: ${red};
                    --green: ${green};
                    --yellow: ${yellow};
                    --blue: ${blue};
                    --magenta: ${magenta};
                    --cyan: ${cyan};
                    --white: ${white};
                    --bright-black: ${brightBlack};
                    --bright-red: ${brightRed};
                    --bright-green: ${brightGreen};
                    --bright-yellow: ${brightYellow};
                    --bright-blue: ${brightBlue};
                    --bright-magenta: ${brightMagenta};
                    --bright-cyan: ${brightCyan};
                    --bright-white: ${brightWhite};
                    --background: ${background};
                    --foreground: ${foreground};
              '')
              (with config.fontScheme; ''
                    --sans-serif-font-family: "${sansSerifFont.family}", "${sansSerifFontFallback.family}", sans-serif;
                    --sans-serif-font-size: ${toString sansSerifFont.size}px;
                    --serif-font-family: "${serifFont.family}", "${serifFontFallback.family}", serif;
                    --serif-font-size: ${toString serifFont.size}px;
                    --monospace-font-family: "${monospaceFont.family}", "${monospaceFontFallback.family}", monospace;
                    --monospace-font-size: ${toString monospaceFont.size}px;
                }
              '')
              (builtins.readFile css)
            ];
        in {
          id = 0;

          isDefault = true;

          userChrome = mkCssWithRoot ./userChrome.css;

          userContent = mkCssWithRoot ./userContent.css;

          extensions = with pkgs.nur.repos.rycee.firefox-addons;
            [
              bitwarden
              consent-o-matic
              darkreader
              furiganaize
              localcdn
              no-pdf-download
              noscript
              privacy-redirect
              ublock-origin
              violentmonkey
            ]
            ++ optional config.nixfiles.modules.ipfs.enable ipfs-companion;

          search = {
            force = true;

            default = "DuckDuckGo";
            order = ["DuckDuckGo" "Google" "Yahoo"];

            engines = {
              "Ebay".metaData.hidden = true;
              "Amazon.com".metaData.hidden = true;

              "2GIS" = {
                urls = [{template = "https://2gis.ru/kazan/search/{searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://d-assets.2gis.ru/favicon.png";
                    sha256 = "sha256-BlSaYRcUx9zhfJnVK5V7rsyft4qaueIEOONiCg+6aLE=";
                  }}'';
                definedAliases = ["@2gis"];
              };

              "AliExpress" = {
                urls = [{template = "https://aliexpress.ru/wholesale?SearchText={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "ae01.alicdn.com/images/eng/wholesale/icon/aliexpress.ico";
                    sha256 = "sha256-7xgem2pY2PNuv8as1YnS+U03GvDLLGjhcDLt69rtmaA=";
                  }}'';
                definedAliases = ["@aliexpress" "@ali"];
              };

              "Ansible Galaxy" = {
                urls = [{template = "https://galaxy.ansible.com/search?keywords={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://galaxy.ansible.com/assets/favicon.ico";
                    sha256 = "sha256-oAolpZhdKbVTraes6dDlafpvq/Vypu264vgKN4jzJk8=";
                  }}'';
                definedAliases = ["@ansible" "@galaxy" "@ag"];
              };

              "Arch Wiki" = {
                urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}];
                icon = "${pkgs.fetchurl {
                  url = "https://wiki.archlinux.org/favicon.ico";
                  sha256 = "sha256-0uxMtT8myzTT7p9k6v5UxsguPKu+vHPlglNTMbnN1T0=";
                }}";
                definedAliases = ["@archwiki" "@aw"];
              };

              "crates.io" = {
                urls = [{template = "https://crates.io/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://crates.io/favicon.ico";
                    sha256 = "sha256-upooA/+m5KMUD1t4WFY3EOmytdpUFgNqUj12Auta1mM=";
                  }}'';
                definedAliases = ["@crates"];
              };

              "Discogs" = {
                urls = [{template = "https://www.discogs.com/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://st.discogs.com/d56dcb7367720ea20f1b11a4385705517c7e7702/images/favicon.ico";
                    sha256 = "sha256-zEDrbmcUf8XHUyYzNc6JsWzBioX8sm8tjScGHim5VTk=";
                  }}'';
                definedAliases = ["@discogs"];
              };

              "Docker Hub" = {
                urls = [{template = "https://hub.docker.com/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://www.docker.com/wp-content/uploads/2023/04/cropped-Docker-favicon-32x32.png";
                    sha256 = "sha256-4NmHGMaq31qoIvdlmy7fI3qTbkcp1/tJhqQu/9Ci4/c=";
                  }}'';
                definedAliases = ["@dockerhub" "@docker"];
              };

              "Ecosia" = {
                urls = [{template = "https://www.ecosia.org/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://cdn-static.ecosia.org/static/icons/favicon.ico";
                    sha256 = "sha256-uvPShG1yVh4C4zaJmGuhhr96V/NredB1Wte9O3U6QxA=";
                  }}'';
                definedAliases = ["@ecosia"];
              };

              "Genius" = {
                urls = [{template = "https://genius.com/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://assets.genius.com/images/apple-touch-icon.png";
                    sha256 = "sha256-M9YQEVg3T7hMO/xPfihR1aXfG+/pNiVOBCOtzx3GrkE=";
                  }}'';
                definedAliases = ["@genius"];
              };

              "GitHub" = {
                urls = [{template = "https://github.com/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://github.githubassets.com/favicons/favicon-dark.svg";
                    sha256 = "sha256-qu/d9ftvsntplFuxw9RFL8BpI9b2g5b6xfeGw6Ekh6w=";
                  }}'';
                definedAliases = ["@github" "@gh"];
              };

              "godocs.io" = {
                urls = [{template = "https://godocs.io/?q={}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://go.dev/images/favicon-gopher.svg";
                    sha256 = "sha256-OlKpUUeYF8TtMoX4e0ERK1ocIb53OJ8ZDxvwJaQVM/0=";
                  }}'';
                definedAliases = ["@godocs"];
              };

              "pkgs.go.dev" = {
                urls = [{template = "https://pkg.go.dev/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://go.dev/images/favicon-gopher.svg";
                    sha256 = "sha256-OlKpUUeYF8TtMoX4e0ERK1ocIb53OJ8ZDxvwJaQVM/0=";
                  }}'';
                definedAliases = ["@gopkgs"];
              };

              "Hackage" = {
                urls = [{template = "https://hackage.haskell.org/packages/search?terms={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://hackage.haskell.org/static/favicon.png";
                    sha256 = "sha256-+6WAv93yaA3L2eheGKxklY/uRAvbKD1q/WcmufmhKxY=";
                  }}'';
                definedAliases = ["@hackage"];
              };

              "Hoogle" = {
                urls = [{template = "https://hoogle.haskell.org/?hoogle={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://hoogle.haskell.org/favicon.png";
                    sha256 = "sha256-6qmjRYDDRUwm6EdLoZB6o9XtoujsfDEQJ9xOu3Knei8=";
                  }}'';
                definedAliases = ["@hoogle"];
              };

              "Jisho" = {
                urls = [{template = "https://jisho.org/search/{searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://assets.jisho.org/assets/favicon-062c4a0240e1e6d72c38aa524742c2d558ee6234497d91dd6b75a182ea823d65.ico";
                    sha256 = "sha256-BixKAkDh5tcsOKpSR0LC1VjuYjRJfZHda3WhguqCPWU=";
                  }}'';
                definedAliases = ["@jisho"];
              };

              "コトバンク" = {
                urls = [{template = "https://kotobank.jp/gs/?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://kotobank.jp/favicon.ico";
                    sha256 = "sha256-t+EzqURlQwznuBqa0GcBbqumvZqtU7HrEAjGUlqp1tg=";
                  }}'';
                definedAliases = ["@kotobank"];
              };

              "Kubernetes" = {
                urls = [{template = "https://kubernetes.io/search/?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://kubernetes.io/images/favicon.png";
                    sha256 = "sha256-YI5QvGQXoaTG3uUGQ/R99Xl2r+VqBAA1qqthzPbf8nQ=";
                  }}'';
                definedAliases = ["@kubernetes" "@k8s"];
              };

              "Last.fm" = {
                urls = [{template = "https://www.last.fm/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://www.last.fm/static/images/favicon.702b239b6194.ico";
                    sha256 = "sha256-ID+DfF+dZ5CzKiBp/psQPRD6r/06PZ0rVYiELWUt5Mw=";
                  }}'';
                definedAliases = ["@lastfm"];
              };

              "MDN" = {
                urls = [{template = "https://developer.mozilla.org/en-US/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://developer.mozilla.org/favicon-48x48.cbbd161b.png";
                    sha256 = "sha256-Wnd0BqQIKgroGmV+R8vqV9uNBwDvcxBrQ8hXOLOFeKY=";
                  }}'';
                definedAliases = ["@mdn"];
              };

              "MELPA" = {
                urls = [{template = "https://melpa.org/#/?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://melpa.org/favicon.ico";
                    sha256 = "sha256-bmlydqXBM8MUMC6cOTGSHPx6zN8tZFqmQ+srbXkSCA4=";
                  }}'';
                definedAliases = ["@melpa"];
              };

              "MusicBrainz" = {
                urls = [{template = "https://musicbrainz.org/search?type=artist&query={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://musicbrainz.org/static/images/favicons/favicon-16x16.png";
                    sha256 = "sha256-M5mKQurmO9AP0gfC+5OLwi8k4XWQy759eQrrKAeytl0=";
                  }}'';
                definedAliases = ["@musicbrainz" "@mb"];
              };

              "NixOS Packages" = {
                urls = [{template = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://nixos.org/favicon.png";
                    sha256 = "sha256-awcsDbbpRcDJnJpRavj/IcKMReEektRcqKbE35IJTKQ=";
                  }}'';
                definedAliases = ["@nixpkgs" "@np"];
              };

              "NixOS Options" = {
                urls = [{template = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://nixos.org/favicon.png";
                    sha256 = "sha256-awcsDbbpRcDJnJpRavj/IcKMReEektRcqKbE35IJTKQ=";
                  }}'';
                definedAliases = ["@nixopts" "@no"];
              };

              "NixOS Wiki" = {
                urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://nixos.wiki/favicon.png";
                    sha256 = "sha256-DE8IgVninF6Aq3iNMgerhvF1dpoXqDUSibtWSpf/dN4=";
                  }}'';
                definedAliases = ["@nixoswiki" "@nw"];
              };

              "OpenStreetMap" = {
                urls = [{template = "https://www.openstreetmap.org/search?query={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://www.openstreetmap.org/assets/favicon-32x32-99b88fcadeef736889823c8a886b89d8cada9d4423a49a27de29bacc0a6bebd1.png";
                    sha256 = "sha256-dt4QVbQPdb4neS/fwH3yOWOSbEdkjMZtAYnIeCfr7qI=";
                  }}'';
                definedAliases = ["@openstreetmap" "@osm" "@maps"];
              };

              "ProtonDB" = {
                urls = [{template = "https://www.protondb.com/search?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://www.protondb.com/sites/protondb/images/favicon.ico";
                    sha256 = "sha256-oauOp0EASNjMcThfzYJ2TfbaOYHBPL8LOp+9lmp4pmc=";
                  }}'';
                definedAliases = ["@protondb"];
              };

              "PyPI" = {
                urls = [{template = "https://pypi.org/search/?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://pypi.org/static/images/logo-small.2a411bc6.svg";
                    sha256 = "sha256-+fcSfcNxAMLIFkp+gh52c48lQORoyhcegUIFtuq/zYs=";
                  }}'';
                definedAliases = ["@pypi"];
              };

              "Python Docs" = {
                urls = [{template = "https://docs.python.org/3/search.html?q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://docs.python.org/3/_static/py.svg";
                    sha256 = "sha256-WGW+i8wK+IhZSQPqARL2yNkjxXJsQIHoyFYRDMcznO8=";
                  }}'';
                definedAliases = ["@pydocs"];
              };

              "Rate Your Music" = {
                urls = [{template = "https://rateyourmusic.com/search?searchterm={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://e.snmc.io/3.0/img/logo/sonemic-32.png";
                    sha256 = "sha256-JpTt1tjBkUvDMTGrG7Hg2EiE8PR3RL7McodeZk1EpZA=";
                  }}'';
                definedAliases = ["@rym"];
              };

              "Rust Std" = {
                urls = [{template = "https://doc.rust-lang.org/std/?search={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://www.rust-lang.org/static/images/favicon-32x32.png";
                    sha256 = "sha256-l2y4jpnODbua4dyLvXTMBlHVkoDPM9y00l6L61so7eA=";
                  }}'';
                definedAliases = ["@ruststd" "@rust"];
              };

              "SourceHut" = {
                urls = [{template = "https://sr.ht/projects?search={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://sr.ht/static/logo.png";
                    sha256 = "sha256-NBzKZhqE9//zVJlOwYiwyW/jRFh8+nS2YvC3zMCQ1fU=";
                  }}'';
                definedAliases = ["@sourcehut" "@srht"];
              };

              "SteamDB" = {
                urls = [{template = "https://steamdb.info/search/?a=app&q={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://steamdb.info/static/logos/32px.png";
                    sha256 = "sha256-IUBiB5JUSvyDa+m/wecmHB8s3Wfu0JK98bJ+ZRZ5ybQ=";
                  }}'';
                definedAliases = ["@steamdb"];
              };

              "WolframAlpha" = {
                urls = [{template = "https://www.wolframalpha.com/input?i={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://www.wolframalpha.com/_next/static/images/favicon_1zbE9hjk.ico";
                    sha256 = "sha256-S9k7AlBQiDElBCGopJ8xfBD6dIhGU+EBh8t1QYbP2S4=";
                  }}'';
                definedAliases = ["@wolframalpha" "@wa"];
              };

              "Yahoo" = {
                urls = [{template = "https://yahoo.com/search/?text={searchTerms}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://yahoostatic.net/s3/web4static/_/v2/oxjfXL1EO-B5Arm80ZrL00p0al4.png";
                    sha256 = "sha256-gvYh4oCZEO7BL2QZ6QvQFlmFiP2L4SLJrxAsKFcG6G4=";
                  }}'';
                definedAliases = ["@yahoo" "@ya"];
              };

              "YouTube" = {
                urls = [{template = "https://yewtu.be/search?q={}";}];
                icon = ''${pkgs.fetchurl {
                    url = "https://www.youtube.com/s/desktop/280a3f09/img/favicon.ico";
                    sha256 = "sha256-i7HQ+kOhdDbVndVG9vdMdtxEc13vdSLCLYAxFm24kR0=";
                  }}'';
                definedAliases = ["@youtube" "@yt"];
              };
            };
          };

          # https://github.com/arkenfox/user.js/blob/master/user.js
          arkenfox = {
            enable = true;
            "0000".enable = true;
            "0100".enable = true;
            "0200".enable = true;
            "0300".enable = true;
            "0400" = {
              enable = true;
              "0401" = {
                enable = true;
                "browser.safebrowsing.malware.enabled" = {
                  enable = true;
                  value = false;
                };
                "browser.safebrowsing.phishing.enabled" = {
                  enable = true;
                  value = false;
                };
              };
              "0402" = {
                enable = true;
                "browser.safebrowsing.downloads.enabled" = {
                  enable = true;
                  value = false;
                };
              };
              "0404" = {
                enable = true;
                "browser.safebrowsing.downloads.remote.block_potentially_unwanted" = {
                  enable = true;
                  value = false;
                };
                "browser.safebrowsing.downloads.remote.block_uncommon" = {
                  enable = true;
                  value = false;
                };
              };
              "0405" = {
                enable = true;
                "browser.safebrowsing.allowOverride" = {
                  enable = true;
                  value = false;
                };
              };
            };
            "0600".enable = true;
            "0700" = {
              enable = true;
              "0710" = {
                enable = true;
                "network.trr.mode" = {
                  enable = true;
                  value = 5;
                };
              };
            };
            "0800".enable = true;
            "0900".enable = true;
            "1000" = {
              enable = true;
              "1001"."browser.cache.disk.enable" = {
                enable = true;
                value = true;
              };
            };
            "1200".enable = true;
            "1400".enable = false;
            "1600".enable = true;
            "1700".enable = false;
            "2000".enable = true;
            "2400".enable = false;
            "2600" = {
              enable = true;
              "2615" = {
                enable = true;
                "permissions.default.shortcuts" = {
                  enable = true;
                  value = 2;
                };
              };
            };
            "2700".enable = true;
            "2800".enable = true;
            "4500".enable = false;
            "5000".enable = false;
            "5500".enable = false;
            "6000".enable = false;
            "7000".enable = false;
            "8000".enable = false;
            "9000".enable = false;
          };

          settings = {
            "app.update.auto" = false;
            "browser.backspace_action" = 0;
            "browser.bookmarks.max_backups" = 1;
            "browser.disableResetPrompt" = true;
            "browser.download.autohideButton" = false;
            "browser.eme.ui.enabled" = false;
            "browser.newtabpage.activity-stream.feeds.system.topsites" = false;
            "browser.newtabpage.activity-stream.feeds.topsites" = false;
            "browser.newtabpage.introShown" = true;
            "browser.onboarding.enabled" = false;
            "browser.search.region" = "US";
            "browser.search.update" = false;
            "browser.startup.homepage_welcome_url" = "";
            "browser.startup.homepage_welcome_url.additional" = "";
            "browser.tabs.closeWindowWithLastTab" = true;
            "browser.tabs.firefox-view" = false;
            "browser.tabs.inTitlebar" =
              if config.nixfiles.modules.kde.enable
              then 1
              else 0;
            "browser.tabs.warnOnClose" = false;
            "browser.tabs.warnOnCloseOtherTabs" = false;
            "browser.tabs.warnOnOpen" = false;
            "browser.toolbars.bookmarks.visibility" = "never";
            "browser.urlbar.decodeURLsOnCopy" = true;
            "browser.warnOnQuitShortcut" = false;
            "extensions.pocket.enabled" = false;
            "extensions.screenshots.disabled" = true;
            "extensions.update.autoUpdateDefault" = false;
            "extensions.update.enabled" = false;
            "full-screen-api.warning.delay" = 0;
            "full-screen-api.warning.timeout" = 0;
            "general.autoScroll" = true;
            "general.smoothScroll" = true;
            "gfx.font_rendering.opentype_svg.enabled" = false;
            "identity.fxaccounts.enabled" = false;
            "keyword.enabled" = false;
            "media.autoplay.blocking_policy" = 2;
            "media.autoplay.default" = 5;
            "media.autoplay.enabled" = false;
            "media.eme.enabled" = false;
            "media.hardwaremediakeys.enabled" = false;
            "reader.parse-on-load.enabled" = false;
            "signon.rememberSignons" = false;
            "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
          };
        };
      };
    };
  };
}