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… (மேலும் படிக்க)

#!/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 நாள் முன்பு

Last reply by jscher2000 - Support Volunteer 1 நாள் முன்பு

Username data field

While this is a Privacy and Security setting issue - at least tangentially - my question isn't about security so much as how this data is being stored/retrieved. I navig… (மேலும் படிக்க)

While this is a Privacy and Security setting issue - at least tangentially - my question isn't about security so much as how this data is being stored/retrieved.

I navigated to an entirely new site the other day and it requested a username and password. When the cursor was in the Username field, a set of proposed entries showed up. These were all (recognizable) first names - not emails. When I checked the Privacy and Security settings, I couldn't find any of the names in stored data. While this may be just cached entries for similar fields ("username" or "name" etc...), the list I saw was heavily curated. One of the names I don't ever recall even entering in any name field (and wouldn't have been used for any login) - but even if I had, the list that I saw was far from exhaustive and would only have been a very specific subset of any data I would have entered into any "name" or "username" field.

Is there somewhere I can find how that list was generated?

Thank you,

Asked by nikolai42 1 நாள் முன்பு

Last reply by jscher2000 - Support Volunteer 1 நாள் முன்பு

recover passwords file

Hi, i locked my pc few days ago due to smart windows not recognizing my ( correct password ) repeatedly. anyway, im still trying to find a way to solve this issue. now, … (மேலும் படிக்க)

Hi, i locked my pc few days ago due to smart windows not recognizing my ( correct password ) repeatedly. anyway, im still trying to find a way to solve this issue.

now, i created an admin windows account get access to my old user files, found the bookmarks file. the only thing left for me now is the passwords file.i did not a Firefox online account before today

the only way currently if i did not solve the wind10 login issue is the find the passwords file physically just like i did with the bookmarks file.


can anyone help with this ??


thanks

Asked by OMVW 1 நாள் முன்பு

Last reply by cor-el 1 நாள் முன்பு

whatsapp privacy

So Mozilla supports privacy rights- and I've supported Mozilla for that reason- but they want Whatsapp to be censored for "misinformation" ? How does that go togeth… (மேலும் படிக்க)

So Mozilla supports privacy rights- and I've supported Mozilla for that reason- but they want Whatsapp to be censored for "misinformation" ? How does that go together? Whatsapp was supposed to be encrypted and not even Whatsapp was supposed to know the content of messages. How would they know about misinformation? And how do they get to decide what's misinformation now?

Asked by Elke's Firefox 5 நாட்கள் முன்பு

Last reply by TyDraniu 5 நாட்கள் முன்பு

Why is my ATT Mail account deleting emails from my inbox without my permission?

My ATT Mail account is deleting some of my messages from my inbox without my permission. They are emails at the end of the list of the eamails in the inbox.

Asked by Mark R. Welch 6 நாட்கள் முன்பு

You've compromised the passwords yourself

Hi Every single one of my passwords is compromised according to you. Therefore I think the data breach is with Firefox . I have set up several unique passwords recently -… (மேலும் படிக்க)

Hi Every single one of my passwords is compromised according to you. Therefore I think the data breach is with Firefox . I have set up several unique passwords recently - how are they breached so soon? And why every single one. It is very suspicious. Regards Caroline

Asked by cazzyguy 6 நாட்கள் முன்பு

Last reply by jscher2000 - Support Volunteer 6 நாட்கள் முன்பு

Primary pass work

I tried to delete my primary password online, but system would not allow me to do so. I have exhausted all avenues to seek help, but to no avail. Any assistance would … (மேலும் படிக்க)

I tried to delete my primary password online, but system would not allow me to do so. I have exhausted all avenues to seek help, but to no avail. Any assistance would be greatly appreciated. Tmg3842@yahoo.com

Asked by tmg3842 1 வாரத்திற்கு முன்பு

Last reply by cor-el 1 வாரத்திற்கு முன்பு

Firefox messages breaking automation

How can the Firefox message popups be permantly turned off they are modal breaking my automation. Most recent: Welcome back Here's a quick reminder that you can keep y… (மேலும் படிக்க)

How can the Firefox message popups be permantly turned off they are modal breaking my automation.

Most recent:

Welcome back

Here's a quick reminder that you can keep you favorite indie browser just one click away.

Open my links with Firefox

Not now

Asked by JSAutomate Inc 1 வாரத்திற்கு முன்பு

Wyłączenie blokady reklam

Dzień dobry, W mojej przeglądarce chciałabym skorzystać z czatu GPT, ale pojawia się komunikat, że żeby skorzystać muszę wyłączyć blokadę reklam. Szukałam takiego czegoś … (மேலும் படிக்க)

Dzień dobry, W mojej przeglądarce chciałabym skorzystać z czatu GPT, ale pojawia się komunikat, że żeby skorzystać muszę wyłączyć blokadę reklam. Szukałam takiego czegoś w ustawieniach i firefox support, ale nie znalazłam nic co by pomogło w wyłączeniu blokady reklam. Czy mógłby mi ktoś pomóc i pokierować jak mogłabym wyłączyć blokadę reklam? Jeśli tak, byłabym wdzięczna.

Proszę o szybką odpowiedź

Pozdrawiam Lena Cieślak

Asked by Lena Cieślak 1 வாரத்திற்கு முன்பு

Last reply by cor-el 1 வாரத்திற்கு முன்பு

DNS LÄCKOR FIREFOX

Jag använder ovpn satt 10 timmar igår med att lösa ett dns läckage men det fungerar inte ovpn säger att det är ni på firefox som kan lösa detta och inte de. Jag vill gärn… (மேலும் படிக்க)

Jag använder ovpn satt 10 timmar igår med att lösa ett dns läckage men det fungerar inte ovpn säger att det är ni på firefox som kan lösa detta och inte de. Jag vill gärna få hjälp via teamviewer. Mvh Carl Sverige

Asked by carl_thorvald 1 வாரத்திற்கு முன்பு

Recent issue viewing my Shopify site

Hello. In the last few days when I visit my Shopify website, the pricing on my products is not visible. This is only for me, nobody else has this issue. I do not have thi… (மேலும் படிக்க)

Hello. In the last few days when I visit my Shopify website, the pricing on my products is not visible. This is only for me, nobody else has this issue. I do not have this issue on Safari, or on Firefox when I open a private browsing window. It is something to do with Firefox, but I don't want to have to open a private window every time I go to my store. Is there a solution? This has only been happening for the last few days. Thanks

Asked by leslie.day 1 வாரத்திற்கு முன்பு

Last reply by zeroknight 1 வாரத்திற்கு முன்பு

downloading a file from an insecure source

We have an electronic document management system in our company. The system is an internal system without access to the LAN. Firefox detects files downloaded from it as p… (மேலும் படிக்க)

We have an electronic document management system in our company. The system is an internal system without access to the LAN. Firefox detects files downloaded from it as potentially dangerous after the last update. Is there a way to prevent files from this website from being detected as potentially dangerous?

Asked by Konrad Dymczuk 1 வாரத்திற்கு முன்பு

Last reply by zeroknight 1 வாரத்திற்கு முன்பு

Firefox no longer warns about vulnerable passwords?

On the page listing passwords, it was possible to sort them by "Alerts". In settings, there is an option to enable checking the vulnerable passwords: https://support.moz… (மேலும் படிக்க)

On the page listing passwords, it was possible to sort them by "Alerts".

In settings, there is an option to enable checking the vulnerable passwords: https://support.mozilla.org/en-US/kb/firefox-password-manager-alerts-breached-websites

On my other laptop using Firefox v121, the alerts are properly displayed. But on my second laptop using Firefox v124, the alerts are gone. I can't sort password by "Alerts", the option isn't there. Both laptops share the same Firefox account and have password synchronized between each other.

Obviously, I ticked the "Show alerts about passwords for breached websites" box in the settings but it looks like it does not nothing. I also checked in "about:config" and everything seems good.

Is this feature gone?

Asked by ADGB 1 வாரத்திற்கு முன்பு

What and where is my Security Key and how do I touch it?

Please see the attached image. Firefox believes I have a security key. What is a security key? Where do I find it? Why does Firefox think I have one? And why is the… (மேலும் படிக்க)

Please see the attached image.

Firefox believes I have a security key.

What is a security key? Where do I find it? Why does Firefox think I have one?

And why is there no helpful information to explain this confusing UX?

Asked by kurrent93 1 வாரத்திற்கு முன்பு

Last reply by zeroknight 1 வாரத்திற்கு முன்பு

Where are these settings cached

Certain websites show user names that I have not saved and are wrong. I have disabled form and password settings. Where do these come from?

Asked by johannes 1 வாரத்திற்கு முன்பு

Last reply by cor-el 1 வாரத்திற்கு முன்பு