Viser spørgsmål med mærkatet: Vis alle spørgsmål

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… (læs mere)

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

Stillet af j.sobiech for 1 uge siden

Seneste svar af jscher2000 - Support Volunteer for 1 uge siden

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… (læs mere)

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,

Stillet af nikolai42 for 1 uge siden

Seneste svar af jscher2000 - Support Volunteer for 1 uge siden

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. … (læs mere)

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.

Stillet af rxs621 for 2 uger siden

Seneste svar af NoahSUMO for 1 uge siden

  • Løst

Can I keep Firefox DevEd and Firefox isolated?

Hello Ladies and Gentlemen! Please read my post completely before answering! Thank you! I'm using Firefox DevEd (manually installed) as my primary driver and the … (læs mere)

Hello Ladies and Gentlemen!

Please read my post completely before answering! Thank you!

I'm using

  • Firefox DevEd (manually installed) as my primary driver and
  • the standard Firefox (installed from the package manager) for leisure/hobby related browsing

each with its own Mozilla account and profile, on Manjaro KDE. Sadly, either Firefox sees all the profiles. They have usually different versions. If I mistakenly start one of the Foxes in the other Fox's profile, the newer version of Firefox (usually Firefox DevEd) autostarts migrating that profile. Which it renders the profile "corrupted" for its intended Firefox.

I'd like to have Firefox DevEd unable to see profiles (or anything else) intended for the standard Firefox and vice versa. Or at least unable to botch profiles. I do not want to disable migration or use no. Given that Firefox configuration location is hard-coded, I'm not having high hopes for my wish.

I'm wondering if there is a way to keep two Firefox installations completely isolated, other than running them in containers.

Thank you for your time!

Stillet af The G for 3 uger siden

Besvaret af zeroknight for 3 uger siden

  • Løst

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… (læs mere)

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.

Stillet af Aram for 1 uge siden

Besvaret af jscher2000 - Support Volunteer for 1 uge siden

Serious Problem: Firefox Only Opens In "Safe Mode"???

Greetings everyone, I've had this problem for a while and I don't know what to do. I had a problem where Firefox kept crashing before it had finished loading up all of… (læs mere)

Greetings everyone,

I've had this problem for a while and I don't know what to do.

I had a problem where Firefox kept crashing before it had finished loading up all of my former tabs and windows and so I was given the option of opening Firefox in "Safe mode" which I did, but now Firefox only starts in "Safe mode"...

I'm running the most up to date version of Firefox.

Thank you for any help!

Stillet af Helpless_Quest for for 1 måned siden

Seneste svar af Helpless_Quest for 1 uge siden

  • Løst

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… (læs mere)

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?

Stillet af Clinton Graham for 1 uge siden

Besvaret af jscher2000 - Support Volunteer for 1 uge siden

  • Løst

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… (læs mere)

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?

Stillet af Vilko for 3 uger siden

Besvaret af Vilko for 1 uge siden

  • Løst

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 … (læs mere)

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

Stillet af fioiu omotrl for 1 uge siden

Besvaret af cor-el for 1 uge siden

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… (læs mere)

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?

Stillet af Dro for 1 uge siden

Seneste svar af TyDraniu for 1 uge siden

Firefox color won't let me change white backgrounds?

As you can see here, despite me setting custom colors and checking every setting i could find, i can't seem to find what will turn this white color to grey or black, doe… (læs mere)

As you can see here, despite me setting custom colors and checking every setting i could find, i can't seem to find what will turn this white color to grey or black,

does anyone know how to fix this?

Stillet af Heather Peterson for 1 uge siden

Seneste svar af zeroknight for 1 uge siden

  • Løst

Prevent Firefox from closing - kiosk application

Hello! I would like to develop an application that runs continuously, say, at a panel found in a kiosk. I am considering designing it as a webpage that runs locally thro… (læs mere)

Hello!

I would like to develop an application that runs continuously, say, at a panel found in a kiosk. I am considering designing it as a webpage that runs locally through the browser but I would like to prevent the users from interacting with the OS or closing the tab and the browser. Is there a way to lock Firefox in full screen and hide the exit buttons? Alternatively, do you have another recommendation for development that is more appropriate, for instance a native app?

Thank you in advance for your help.

Stillet af serendipity for 1 uge siden

Besvaret af TyDraniu for 1 uge siden

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… (læs mere)

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.

Stillet af von Boomslang for 3 uger siden

Seneste svar af von Boomslang for 1 uge siden

  • Løst

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 … (læs mere)

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]

Stillet af larryadow for 3 uger siden

Besvaret af zeroknight for 1 uge siden