File indexing completed on 2024-04-28 05:32:49

0001 /*
0002     Copyright (C) 2017 Kai Uwe Broulik <kde@privat.broulik.de>
0003     Copyright (C) 2018 David Edmundson <davidedmundson@kde.org>
0004 
0005     This program is free software; you can redistribute it and/or
0006     modify it under the terms of the GNU General Public License as
0007     published by the Free Software Foundation; either version 3 of
0008     the License, or (at your option) any later version.
0009 
0010     This program is distributed in the hope that it will be useful,
0011     but WITHOUT ANY WARRANTY; without even the implied warranty of
0012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013     GNU General Public License for more details.
0014 
0015     You should have received a copy of the GNU General Public License
0016     along with this program.  If not, see <http://www.gnu.org/licenses/>.
0017  */
0018 
0019 DEFAULT_EXTENSION_SETTINGS = {
0020     mpris: {
0021         enabled: true,
0022         websiteSettings: {}
0023     },
0024     mprisMediaSessions: {
0025         enabled: true
0026     },
0027     kdeconnect: {
0028         enabled: true
0029     },
0030     downloads: {
0031         enabled: true,
0032         addToRecentDocuments: true,
0033         saveOriginUrl: false
0034     },
0035     tabsrunner: {
0036         enabled: true
0037     },
0038     historyrunner: {
0039         enabled: true
0040     },
0041     purpose: {
0042         enabled: true
0043     },
0044     breezeScrollBars: {
0045         // this breaks pages in interesting ways, disable by default
0046         enabled: false
0047     }
0048 };
0049 
0050 IS_FIREFOX = (navigator && navigator.userAgent || '').toLowerCase().match(/(?:firefox|fxios)/) !== null;
0051 
0052 // NOTE if you change this, make sure to adjust the error message shown in action_popup.html
0053 SUPPORTED_PLATFORMS = ["linux", "openbsd", "freebsd"];
0054 
0055 // Default MPRIS settings for websites
0056 const MPRIS_WEBSITE_SETTINGS = {
0057     //"https://www.example.com": false
0058 };