מוצגות שאלות עם התגיות: הצגת כל השאלות

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… (read more)

#!/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 לפני חודש

Last reply by jscher2000 - Support Volunteer לפני חודש

Firefox Browser

When I go into Privacy & Settings, then cookies & site data, I uncheck the box for cookies & site data. It doesn't save. Next time I go in it is checked again… (read more)

When I go into Privacy & Settings, then cookies & site data, I uncheck the box for cookies & site data. It doesn't save. Next time I go in it is checked again. How do I get this setting to save? I'm using Windows 10, Firefox 124.0.2.

Asked by Anita Adam לפני 2 חודשים

Last reply by zeroknight לפני 2 חודשים

Secure Connection Failed on a LAN IP address

I have a bunch of stuff on my LAN, all with static IPs (so I can find things). New Reolink security camera can't be accessed via a browser and it's static IP. Secure Con… (read more)

I have a bunch of stuff on my LAN, all with static IPs (so I can find things). New Reolink security camera can't be accessed via a browser and it's static IP.

Secure Connection Failed

An error occurred during a connection to 10.1.1.27. PR_END_OF_FILE_ERROR

Error code: PR_END_OF_FILE_ERROR

   The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
   Please contact the website owners to inform them of this problem.

Am I truly unable to have access to my own LAN? There has to be a way around this, doesn't there?

Asked by simon186 לפני 2 חודשים

Last reply by zeroknight לפני 2 חודשים

This connection is not secure. Logins entered here could be compromised

Hi all, I am currently getting a warning message as shown, this website is one only accessible from the local network here and so this error message can be ignored. Howev… (read more)

Hi all, I am currently getting a warning message as shown, this website is one only accessible from the local network here and so this error message can be ignored. However i was wondering if there is a way for me to disable the warning message as if clicked on will take us out of this window and we want to stay in this window.

Any help would be greatly appreciated.

Thanks

Asked by Clockin out Moduflex לפני 2 חודשים

Last reply by cor-el לפני 2 חודשים

Camera and microphone are blocked. Sessions by Psychology Today requires access to your camera and microphone. Click the camera blocked icon Camera and microphone are blocked. in your browser's address bar and refresh your browser.

HELP Please have tried numerous times by instructions given on support. Nothing is working. Can not correct with Dr. Thank you:) Camera and microphone are blocked. Sess… (read more)

HELP Please have tried numerous times by instructions given on support. Nothing is working. Can not correct with Dr. Thank you:)

Camera and microphone are blocked. Sessions by Psychology Today requires access to your camera and microphone. Click the camera blocked icon Camera and microphone are blocked. in your browser's address bar and refresh your browser.

Asked by STAMPS לפני 2 חודשים

Last reply by cor-el לפני 2 חודשים

easeus.com shows up as a session opened by Firefox in task manager (performance tab)

Hello support staff. Here are the specifics ... 1. I installed undelete software from easeus.com 2. Uninstalled the above software 3. In Win10 Task manager under th… (read more)

Hello support staff. Here are the specifics ...

1. I installed undelete software from easeus.com 2. Uninstalled the above software 3. In Win10 Task manager under the Performance--Resource Monitor--Network option, saw firefox had a session opened with easeus.com

4. Windows defender shows nothing abnormal. 5. Removed all entries for easeus in registry. 6. Unistalled firefox and reinstalled it. 7. Start firefox and go to some site. 8. Firefox again has a open session with easeus.com in the Task manager.

9. Installed Chrome. No such session with easeus.com on Chrome under Task manager.

10. Issue at 3. pops up whenever I start firefox AND start browsing a site.

Help.

Asked by Vinay Khandka לפני 2 חודשים

Last reply by cor-el לפני 2 חודשים