Kukhonjiswa imibuzo ethegiwe: Veza yonke imibuzo

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… (funda kabanzi)

#!/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."

Asked by j.sobiech 1 isonto elidlule

Last reply by jscher2000 - Support Volunteer 1 isonto elidlule

  • Kusonjululiwe

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… (funda kabanzi)

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.

Asked by Aram 1 isonto elidlule

Answered by jscher2000 - Support Volunteer 1 isonto elidlule

  • Kusonjululiwe

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… (funda kabanzi)

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?

Asked by Clinton Graham 1 isonto elidlule

Answered by jscher2000 - Support Volunteer 1 isonto elidlule

  • Kusonjululiwe

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… (funda kabanzi)

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?

Asked by Vilko 1 inyanga edlule

Answered by Vilko 2 emasontweni adlule

  • Kusonjululiwe

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 … (funda kabanzi)

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"]

Asked by fioiu omotrl 2 emasontweni adlule

Answered by cor-el 2 emasontweni adlule

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… (funda kabanzi)

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?

Asked by Dro 2 emasontweni adlule

Last reply by TyDraniu 2 emasontweni adlule

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… (funda kabanzi)

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.

Asked by von Boomslang 3 emasontweni adlule

Last reply by von Boomslang 2 emasontweni adlule

  • Kusonjululiwe

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 … (funda kabanzi)

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]

Asked by larryadow 3 emasontweni adlule

Answered by zeroknight 2 emasontweni adlule

Unable to update Firefox browser

I have Firefox 124.0.2 running on Windows 11. For some reason, I can't update Firefox. When I manually download the update file, it appears to run Ok, but the version do… (funda kabanzi)

I have Firefox 124.0.2 running on Windows 11. For some reason, I can't update Firefox. When I manually download the update file, it appears to run Ok, but the version doesn't change. If I go to settings and click on "Check for Updates" is comes back and says Failed to Check for Updates. How do I fix this?

Originally reported on April 11th /questions/1444593: I have Windows 11 and the Firefox 124.0.2 browser. I cannot update to the latest version of Firefox. I receive an error message "Failed to update". I've uninstalled and reinstalled the browser, ran the install utility selecting update, nothing seems to work. Please help

Asked by rpm3110 2 emasontweni adlule

Last reply by NoahSUMO 2 emasontweni adlule

  • Kusonjululiwe

Corrupted PDF Downloads from Intranet sites after 125.0.1 Update

Prior to update 125.0.1 corporate intranet users could download PDF files from our Line of Business applications / Webpages. Today after the latest update the PDF files … (funda kabanzi)

Prior to update 125.0.1 corporate intranet users could download PDF files from our Line of Business applications / Webpages. Today after the latest update the PDF files download but are corrupted. The site was added to the trusted webpage without improvement.

Adobe Acrobat Reader could not open ********.pdf because it is either not a supported file or because the file has been damaged

Asked by Jeff@work 2 emasontweni adlule

Answered by NoahSUMO 2 emasontweni adlule

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… (funda kabanzi)

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?

Asked by Trenton Knight 2 emasontweni adlule

Last reply by zeroknight 2 emasontweni adlule

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… (funda kabanzi)

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?

Asked by Devin 2 emasontweni adlule

Last reply by zeroknight 2 emasontweni adlule