Afficher les questions étiquetées : Afficher toutes les questions

I want to write an addon firewall but it fails

#!/bin/bash # Verzeichnis erstellen mkdir FoxyAddOnFirewall cd FoxyAddOnFirewall || exit # package.json erstellen cat <<EOF > package.json { "title": "Foxy A… (lire la suite)

#!/bin/bash

# Verzeichnis erstellen
mkdir FoxyAddOnFirewall
cd FoxyAddOnFirewall || exit

# package.json erstellen
cat <<EOF > package.json
{
  "title": "Foxy AddOn Firewall",
  "name": "foxy-addon-firewall",
  "description": "A Firefox addon to control internet access for other addons",
  "author": "Your Name",
  "version": "1.0.0",
  "license": "MIT"
}
EOF

# background.js erstellen
cat <<EOF > background.js
var permissionManager = Components.classes["@mozilla.org/permissionmanager;1"]
                        .getService(Components.interfaces.nsIPermissionManager);

// Addon-Liste abrufen
function getAllAddons() {
    var {AddonManager} = Components.utils.import("resource://gre/modules/AddonManager.jsm", {});
    return new Promise(function(resolve, reject) {
        AddonManager.getAllAddons(function(addons) {
            resolve(addons);
        });
    });
}

// GUI aktualisieren
function updateUI() {
    getAllAddons().then(function(addons) {
        var addonList = document.getElementById("addon-list");
        addonList.innerHTML = ""; // Zurücksetzen der Liste

        addons.forEach(function(addon) {
            var listItem = document.createElement("li");
            listItem.textContent = addon.name;
            
            var blockButton = document.createElement("button");
            blockButton.textContent = "Block";
            blockButton.addEventListener("click", function() {
                blockInternetAccessForAddon(addon);
            });

            listItem.appendChild(blockButton);
            addonList.appendChild(listItem);
        });
    });
}

// Internetzugriff für ein bestimmtes Addon blockieren
function blockInternetAccessForAddon(addon) {
    var host = addon.getResourceURI("").host;
    permissionManager.remove(host, "allAccess");
    console.log("Internetzugriff für " + addon.name + " wurde blockiert.");
}

document.addEventListener("DOMContentLoaded", function() {
    updateUI(); // GUI beim Laden der Seite aktualisieren
});
EOF

# index.html erstellen
cat <<EOF > index.html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Foxy AddOn Firewall</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <h1>Foxy AddOn Firewall</h1>
  <p>Welcome to Foxy AddOn Firewall!</p>

  <h2>Installed Addons:</h2>
  <ul id="addon-list">
    <!-- Addon-Liste wird hier eingefügt -->
  </ul>

  <script src="background.js"></script>
</body>
</html>
EOF

# style.css erstellen
cat <<EOF > style.css
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  text-align: center;
}

h1 {
  color: #007bff;
}

h2 {
  margin-top: 20px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}
EOF

# manifest.json erstellen
cat <<EOF > manifest.json
{
  "manifest_version": 2,
  "name": "Foxy AddOn Firewall",
  "version": "1.0",
  "description": "A Firefox addon to control internet access for other addons",
  "icons": {
    "48": "icon.png"
  },
  "permissions": [
    "management"
  ],
  "browser_action": {
    "default_popup": "index.html",
    "default_icon": "icon.png"
  }
}
EOF

# Icon herunterladen
wget -O icon.png "https://img.icons8.com/ios-filled/50/000000/firewall.png"

# Installationsanweisungen anzeigen
echo "FoxyAddOnFirewall wurde erfolgreich initialisiert!"
echo "Um das Addon in Firefox zu installieren:"
echo "1. Öffnen Sie Firefox und geben Sie 'about:debugging' in die Adressleiste ein."
echo "2. Klicken Sie auf 'Dieses Firefox installieren' unter 'Temporäre Add-ons laden'."
echo "3. Navigieren Sie zum Verzeichnis 'FoxyAddOnFirewall' und wählen Sie die 'manifest.json' Datei aus."
echo "4. Das Addon wird nun installiert und kann verwendet werden."

Demandé par j.sobiech il y a 1 mois

Dernière réponse par jscher2000 - Support Volunteer il y a 1 mois

  • Résolu

Inter font not dispalying properly

I've installed Inter font from Google fonts (https://fonts.google.com/specimen/Inter) on my windows, but as you can see in the image, the font is not displaying correctly… (lire la suite)

I've installed Inter font from Google fonts (https://fonts.google.com/specimen/Inter) on my windows, but as you can see in the image, the font is not displaying correctly in Firefox.

Demandé par Aram il y a 1 mois

Réponse de jscher2000 - Support Volunteer il y a 1 mois

  • Résolu

How do I disable search suggestions based on my search history, without deleting my search history?

I've disabled this for my google account. So when I search from google.com this behavior doesn't happen. But when I type anything into my address bar on Firefox to search… (lire la suite)

I've disabled this for my google account. So when I search from google.com this behavior doesn't happen. But when I type anything into my address bar on Firefox to search, the first suggestions are from my search history.

I don't want to delete my search history.

I often use my search history to find specific things that I need, but didn't bookmark at the time. I need my search history to be saved. I just don't want to automatically receive suggestions based on it.

Is there any way to turn this off? Even with an extension or something?

Demandé par Clinton Graham il y a 1 mois

Réponse de jscher2000 - Support Volunteer il y a 1 mois

  • Résolu

Mobile bookmarks folder dissapeared on PC

There used to be 4 root folders in my bookmarks toolbar on PC: bookmarks toolbar, bookmarks menu, other bookmarks and mobile bookmarks. Recently I noticed the "mobile boo… (lire la suite)

There used to be 4 root folders in my bookmarks toolbar on PC: bookmarks toolbar, bookmarks menu, other bookmarks and mobile bookmarks. Recently I noticed the "mobile bookmarks" folder is gone. That is where bookmarks saved in the default folder on mobile were synced. What happened?

Demandé par Vilko il y a 2 mois

Réponse de Vilko il y a 1 mois

  • Résolu

Can't change the default hover color of buttons in the navigation bar

Hi, I can't change the default hover color of buttons in the navigation bar. It either remains totally unaffected or there appears a larger background image of my color … (lire la suite)

Hi, I can't change the default hover color of buttons in the navigation bar. It either remains totally unaffected or there appears a larger background image of my color overlaid with the smaller default hover image. Hover on the bookmarks toolbar works fine, except for the "Show more bookmarks" chevron, which behaves exactly like a navigation bar button. I tried these:

  1. nav-bar toolbarbutton:hover,
  2. nav-bar toolbarbutton:hover:active,
  3. nav-bar toolbarbutton-icon:hover,
  4. nav-bar .toolbarbutton-icon:hover, #nav-bar.browser-toolbar hbox#nav-bar-customization-target.customization-target toolbarbutton:hover,
  5. nav-bar toolbarbutton[open="true"],
  6. nav-bar toolbarbutton[checked="true"],
  7. nav-bar toolbarbutton[buttonover="true"]

Demandé par fioiu omotrl il y a 1 mois

Réponse de cor-el il y a 1 mois

Browser makes strange "sw.js" requests to servers, no plugin to blame

I'm developing a website and noticed while testing that firefox sends requests to "/sw.js" on my local webserver. When starting with a fresh profile folder, this does not… (lire la suite)

I'm developing a website and noticed while testing that firefox sends requests to "/sw.js" on my local webserver. When starting with a fresh profile folder, this does not happen (and also not with other browsers). So, I thought, this might be one of my extensions, but in Troubleshooting mode, the browser still sends these requests, everytime a site is refreshed. It does not affect performance or anything, I am just afraid that I was somehow hacked as I did not make many settings in firefox. Do you know, how I could further diagnose the problem?

Demandé par Dro il y a 1 mois

Dernière réponse par TyDraniu il y a 1 mois

My spellcheck languages keep disappearing

Every time I restart firefox, my spellchecker languages disappear, leaving me only with one - the addons are still installed, they're just not available to be selected. E… (lire la suite)

Every time I restart firefox, my spellchecker languages disappear, leaving me only with one - the addons are still installed, they're just not available to be selected. Even now I can't spellcheck in english. Please help.

Demandé par von Boomslang il y a 2 mois

Dernière réponse par von Boomslang il y a 1 mois

  • Résolu

youtube background screen all white

Hi friends. We have had some recent power outages when everything was back up running my youtube screen only shows the video but everything else is white. I will try to … (lire la suite)

Hi friends. We have had some recent power outages when everything was back up running my youtube screen only shows the video but everything else is white. I will try to attach a screenshot.

I am running an iMac with system Sonoma 14.4.1 installed.

I have used Firefox for over 10 years with no problems.

York Maine [removed phone# from public]

Demandé par larryadow il y a 2 mois

Réponse de zeroknight il y a 1 mois

Firefox suddenly goes slow, then speeds back up

So I'll be typing like normal (I type 100 WPM), and all of a sudden, I'll type a sentence, but each individual letter starts taking about 3 seconds to show up on the scre… (lire la suite)

So I'll be typing like normal (I type 100 WPM), and all of a sudden, I'll type a sentence, but each individual letter starts taking about 3 seconds to show up on the screen. I have to sit and wait a super long time for everything I typed to finally show up. Other times, I move my mouse over something I should be able to click on, and have to wait a long time for the arrow to turn into a hand, letting me click on it. These periods of slowness will last a few minutes, then disappear.

What's really interesting is that when the slowness starts, I can type just fine up in the URL bar. I might type my entire message there, then copy paste it down to where ever I was wanting to post it. However, when I do that, if I have another tab open and that tab is playing music, the music will start to break up and lag as I type. Again, after a while, the slowness disappears and we're back to normal.

Can anyone tell me what's going on?

Demandé par Trenton Knight il y a 1 mois

Dernière réponse par zeroknight il y a 1 mois

Kiosk mode and Firefox popups, cannot suppress them?

I'm running a UI deployment with a web-app and Firefox on an Ubuntu system. I'm running Firefox with the flag "--kiosk" to place it into kiosk mode (booted from the comm… (lire la suite)

I'm running a UI deployment with a web-app and Firefox on an Ubuntu system.

I'm running Firefox with the flag "--kiosk" to place it into kiosk mode (booted from the command line upon system boot). This works fine, and boots up Firefox to the page I want (my web-app) in kiosk mode (full-screen, etc.)

However, I get very annoying popups that are not acceptable for deployments in front of customers. I have tried, but CANNOT suppress all of them, or, when I thought I did, they came back a month later.

Popups:

1. "Keep pesky trackers off your tail. Open my links with Firefox" 2. "Welcome back" 3. Others like this...

These are Firefox browser popups, not related to popups that other websites can put up, and block the entire screen with an overlay until they are dismissed. My deployments are only going to a single web-page that I control (which has no popups) and there is no keyboard on the deployed system, so people cannot navigate elsewhere.

Things I've tried:

1. Firefox is installed via snap, which provides "snapshotting" configuration for the Firefox snap. I loaded Firefox, cleared the annoying dialogs, and then took a snapshot (theorying that I set Firefox configuration when doing this, and I capture that in the snapshot) and re-installed it onto a new system. Still go popups 2. Looked into user.js preferences. I can install this file onto the system, so I looked through https://searchfox.org/mozilla-release/source/remote/shared/RecommendedPreferences.sys.mjs and this is how I initially got all the popups to disable themselves. I looked through that list and tested most of the recommended settings until the popups disappeared. However, after a month or so, I'm beginning to see the popups again.


Any suggestions from Mozilla or others that run into this issue?

Demandé par Devin il y a 1 mois

Dernière réponse par zeroknight il y a 1 mois

Disabling Hotkeys on Mac (Browser)

Hi there, I need to be able to use Command-I (for italics) or Command-B (for bold) when using Firefox to write emails and enter information on other websites WITHOUT Fir… (lire la suite)

Hi there,

I need to be able to use Command-I (for italics) or Command-B (for bold) when using Firefox to write emails and enter information on other websites WITHOUT Firefox opening Page Information or Bookmarks.

This is basic browser functionality! People use browsers to write emails and other online documents, and the hotkey combo for things like Bold and Italics on Macs are Cmd-B and Cmd-I. All such websites I use recognize that as a standard, but Firefox insists on using those same commands for browser features I almost never use and certainly don't need hotkeys for.

All the information I'm finding online on how to fix this is deeply unhelpful and far more complicated than I can handle. Can you please tell me if there is a simple way to stop Firefox from pulling up Page Information and Bookmarks as a result of keyboard commands, or at least for me to change what those commands are so that they don't conflict with industry standard commands for text formatting on the vast majority of websites?

-Nic

Demandé par Nicolas Carrier il y a 1 mois

Dernière réponse par cor-el il y a 1 mois

firefox private mode language error

I use firefox on fedora 38 and after update firefox about a month ago . i got this error when use private mode ,for thai languge it just error but in normal mode it ok . … (lire la suite)

I use firefox on fedora 38 and after update firefox about a month ago . i got this error when use private mode ,for thai languge it just error but in normal mode it ok .

Demandé par SD SD il y a 1 mois

Dernière réponse par zeroknight il y a 1 mois

Unintended scroll to top of page

browsing website (reddit or amazon for example), the window scrolls to the top every time I move the mouse. doesn't happen all the time though, and only in Firefox. I've … (lire la suite)

browsing website (reddit or amazon for example), the window scrolls to the top every time I move the mouse. doesn't happen all the time though, and only in Firefox. I've serached the internet and can't find anything related. Please help

Demandé par myblackfrog il y a 1 mois

Dernière réponse par zeroknight il y a 1 mois