Отображение вопросов с тегом: Показать все вопросы

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

Задан j.sobiech 1 неделю назад

Последний ответ от 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,

Задан nikolai42 1 неделю назад

Последний ответ от jscher2000 - Support Volunteer 1 неделю назад

Repetitive update request

I keep getting this message that pops up in a private window to restart to keep using firefox. Everytime I click restart Firefox, it closes my tabs and opens them again. … (читать ещё)

I keep getting this message that pops up in a private window to restart to keep using firefox. Everytime I click restart Firefox, it closes my tabs and opens them again. However, 5 minutes later the window pops up again. Even after repeated attempts of updating, even doing a full restart on the computer, Firefox continues to send this window to me. The private window in the bar says about:restartrequired.

I've tried uninstalling Firefox with a fresh install as well as doing a Refresh of Firefox. Neither seem to solve this problem.

Задан rxs621 2 недели назад

Последний ответ от NoahSUMO 1 неделю назад

Disable "Entering Full Screen Mode" Message in Firefox Android

Hi, In Firefox Android, Could you add an option to disable the display of the message "Entering Full Screen Mode" when entering a full screen mode for a web app such as … (читать ещё)

Hi,

In Firefox Android, Could you add an option to disable the display of the message "Entering Full Screen Mode" when entering a full screen mode for a web app such as an online video player? I find it annoying because I can clearly see that the video player is in full screen mode and the message just blocks whatever I'm trying to view in the video player like the subtitles of a video.

Задан imninja007 1 неделю назад

Последний ответ от Paul 1 неделю назад

Firefox for Android does not follow system theme changes

Firefox for Android does not follow system theme changes i.e. dark to light. Discovered on Samsung Galaxy A22, Android 14 and Firefox 124.2.0 Steps to reproduce: Co… (читать ещё)

Firefox for Android does not follow system theme changes i.e. dark to light.

Discovered on Samsung Galaxy A22, Android 14 and Firefox 124.2.0

Steps to reproduce:

  1. Configure Android to automatically switch themes. For Samsung Galaxy this is Settings - Dark Mode Settings - Turn on as scheduled
  2. Wait until Android toggles theme from dark to light.
  3. Notice Firefox has a black border.
  4. Go into Application info for Firefox and force stop, then reopen
  5. Now notice it doesn't.

This is a reopen of this archived issue: 1421453

Задан Chris Vitalos 1 неделю назад

ALL bookmarks wiped out by April 2024 Firefox update to Android phone 😡

Why were my bookmarks wiped out by April 2024 forced Firefox update to my Android Samsung S21 Ultra? 😡 Since I don't synch, can't find a way to restore my many bookmarks.… (читать ещё)

Why were my bookmarks wiped out by April 2024 forced Firefox update to my Android Samsung S21 Ultra? 😡 Since I don't synch, can't find a way to restore my many bookmarks.

Задан Ki Ki 1 неделю назад

many issues with YouTube on Firefox on pixel 8

On YouTube the video will start playing but the rectangle it should be in will still be black, refreshing usually works. Sometimes a video will simply stop playing. Somet… (читать ещё)

On YouTube the video will start playing but the rectangle it should be in will still be black, refreshing usually works. Sometimes a video will simply stop playing. Sometimes i have to close all apps and restart the browser twice to get it to work. Sometimes trying to go to full screen will crash the app. Sometimes popping the app out of full screen into a floating window crashes it. This one is new, it's the uploaded screenshot, it crashed mid video and made the video look funny.

Задан David Vanderheide 1 неделю назад

Pinning an app

Am I able to pin a podcast app player that is no longer available in the Google play store nor has an email or website? I would like to put it on my homepage as I use it … (читать ещё)

Am I able to pin a podcast app player that is no longer available in the Google play store nor has an email or website? I would like to put it on my homepage as I use it all the time.

Задан grayfloyd21 1 неделю назад

Full-screen video problem

I have read the thread for this similar problems, tried all the suggestions but I'm Still experiencing videos not staying full-screen. Is there any other solution to it? … (читать ещё)

I have read the thread for this similar problems, tried all the suggestions but I'm Still experiencing videos not staying full-screen. Is there any other solution to it? This has started since yesterday but everything was fine before then.

Задан ple4551 2 недели назад

Последний ответ от Kiki 1 неделю назад

how to stop mobile app refreshing in background?

My firefox version: 124.2.0 My phone: Xiaomi redmi note 13 The problem: This problem is most prominent when I want to listen to music on youtube while having another app… (читать ещё)

My firefox version: 124.2.0 My phone: Xiaomi redmi note 13

The problem: This problem is most prominent when I want to listen to music on youtube while having another app open. I have "video background play fix" add-on. Interestingly, just going to the home screen keeps the song playing, but once I go to any other app (tested with discord, whatsapp and veryfitpro) the song stops playing. Then I go back to the app and it reloads the entire website and the song is at the beginning waiting for me to press play. I've tried different battery optimization strategies in the app's settings and none of them worked. Tried clearing the cache.

Задан yes.dude 1 неделю назад

Private tabs

Private tabs disconnects the second I switch to another app or turn off screen. And when I switch back tabs basically opens again. So if I try to listen to a podcast from… (читать ещё)

Private tabs disconnects the second I switch to another app or turn off screen. And when I switch back tabs basically opens again. So if I try to listen to a podcast from a private tab, it will stop, if there was any data typed, it will be lost. I disabled all power saving settings on the phone, it didn't help. And I didn't find anything in Firefox settings I'm using redmi note 10 with miui 14 global. Firefox from Google play. And UBlock and Privacy Badger are installed

Задан iosifsecret 1 неделю назад

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… (читать ещё)

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?

Задан Dro 1 неделю назад

Последний ответ от TyDraniu 1 неделю назад