// // Copyright ⓒ 2023 Chakib Ben Ziane and [`GoSuki` contributors] // (https://github.com/blob42/gosuki/graphs/contributors). // // All rights reserved. // // SPDX-License-Identifier: AGPL-3.0-or-later // // This file is part of GoSuki. // // GoSuki is free software: you can redistribute it and/or modify it under the terms of // the GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // // GoSuki is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE. See the GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License along with // gosuki. If not, see . package mozilla import ( "errors" "fmt" "io" "os" "regexp" ) const ( // Note that user.js will be read every time Firefox starts, so changes made to it will take effect immediately. // Also when Firefox is updated, it may update also the prefs.js file, and your // modification could be lost. Therefore it is better to use user.js to set such // preferences which are not possible to set from the Firefox settings. //TODO!: create file if it does not exist PrefsFile = "user.js" // Parses vales in prefs.js under the form: // user_pref("my.pref.option", value); REFirefoxPrefs = `user_pref\("(?P