Showing questions tagged: Show all questions

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 19 hours ago

Last reply by jscher2000 - Support Volunteer 18 hours ago

FireFox - User does not have privileges to save a file.

I have two end users that are having a different issues but they are of similar nature. First user can not upload anything to Microsoft Share point. She gets a message th… (read more)

I have two end users that are having a different issues but they are of similar nature. First user can not upload anything to Microsoft Share point. She gets a message that says she does not have proper permissions to upload. She does not have the same issue on Chrome or Edge. The second user is trying to download and or save a file from a couple of different websites but regardless on where she tries to save it on her computer it says she does not have proper permissions to save to "x" file location. She also does not have this issue when she is on Chrome or Edge.

For both users I have tried clearing cache and cookies, Rebooting their computers, uninstalling and reinstalling Firefox, deleting registry keys/user data from the computer itself. I have had no luck with resolving this issue and I can not find anything online that remotely resembles this issue.

Thank you and please advise

Asked by amassey1 23 hours ago

Last reply by cor-el 17 hours ago

How to disable immediate search when you type in the Find Bar?

It is annoying that search executes immediately instead of triggering on enter keypress, especially when a web page is big. Is there any way to disable auto-search and tr… (read more)

It is annoying that search executes immediately instead of triggering on enter keypress, especially when a web page is big. Is there any way to disable auto-search and trigger it only when you press enter?

If you want to understand better it's pretty similar to this VS Code issue.

Asked by wpmgprostotema 1 day ago

Last reply by cor-el 18 hours ago

Microsoft Windows 11 user - font size for display resolution 3456 x 2160

I have to put my face within inches of the screen and strain to see the text in Firefox browser menus, tabs, and search bars. How do I adjust the font size? I'm not a p… (read more)

I have to put my face within inches of the screen and strain to see the text in Firefox browser menus, tabs, and search bars. How do I adjust the font size?

I'm not a programmer. If I need to enter code please be pedantic about descriptions of how to do that.

Asked by maxjen 22 hours ago

Last reply by cor-el 18 hours ago

Why I can't take screenshot?

I am writing to report an issue I have encountered while using the Firefox browser. Specifically, I am unable to take screenshots on the website https://hescoebill.pk/hes… (read more)

I am writing to report an issue I have encountered while using the Firefox browser. Specifically, I am unable to take screenshots on the website https://hescoebill.pk/hesco-mis/. This issue persists despite numerous attempts, and it seems to be unique to this particular website. Is there any other way to take screenshot of site? I really want to take a screenshot for personal reason. Is it not allowed from the site owner side or what?

Asked by Hamza Shareef 19 hours ago

Last reply by jscher2000 - Support Volunteer 18 hours ago

'Bad' Current Session of Firefox (Windows)!

I currently have a 'bad/rouge' session of Windows 7 Firefox (don't really know how that happened) open (7 'Windows', each with one empty Tab plus 1 'Window', with only 1 … (read more)

I currently have a 'bad/rouge' session of Windows 7 Firefox (don't really know how that happened) open (7 'Windows', each with one empty Tab plus 1 'Window', with only 1 populated tab (Yahoo Mail)! I need to close Firefox in order to restart my laptop (strange things have been happening, including not being able to access the internet)!! On restarting, I want to be able to open Firefox with the previous session I had with my 8 'Windows', each with dozens and dozens of Tabs! Please help, I sorely need those many 'Windows' and Tabs!!!

Asked by balls69bc 19 hours ago

Last reply by jscher2000 - Support Volunteer 18 hours ago

Firefox closing at random with no crash report

Yesterday Firefox started closing at random, sometimes instantly as soon as I open it. The crash dialog doesn't open, and if I go to about:crashes my most recent unreport… (read more)

Yesterday Firefox started closing at random, sometimes instantly as soon as I open it. The crash dialog doesn't open, and if I go to about:crashes my most recent unreported crash is from 2019. Tried refreshing, reinstalling, completely wiping all profiles and starting fresh. If I use troubleshooting mode it won't open properly at all. I am at a bit of a loss, any ideas?

Asked by nathanbee354 5 months ago

Last reply by the_logic_master 19 hours ago

Firefox freezes after VPN status change

Whenever I change my VPN (not Mozilla VPN) status, Firefox will refuse to connect for something like 30 seconds then times out, leaving me with a blank screen. I have wai… (read more)

Whenever I change my VPN (not Mozilla VPN) status, Firefox will refuse to connect for something like 30 seconds then times out, leaving me with a blank screen. I have wait until that interval has passed before I can retry, otherwise it will repeat the freeze. This happens whenever I turn my VPN on/off or switch to a different VPN server. It happens only with Firefox. Chrome and my email client have no problems whatsoever. I think it's some kind of DNS caching problem within Firefox as the problem doesn't happen if I visit a site that I hadn't visited very recently. There's immediate response if I do that. I have DNS over HTTPS and secure DNS turned off in the settings, so it can't be those.

Anyone else have this problem? I wish there was some way to clear Firefox's DNS cache other than having to go into about:networking

Asked by Parallax 4 months ago

Last reply by namnoops 20 hours ago

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

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 21 hours ago

Last reply by jscher2000 - Support Volunteer 20 hours ago

whenever i close the window i get signed out of my youtube account

Whenever i sign into youtube and then close the window when i come back ive been signed out and have to sign in again. i have "delete cookies and site data when firefox i… (read more)

Whenever i sign into youtube and then close the window when i come back ive been signed out and have to sign in again. i have "delete cookies and site data when firefox is closed" off and dont know what else to do

Asked by Starry Hankins 21 hours ago

Last reply by zeroknight 21 hours ago

Youtube shows old Channel Name

Hello everyone, a long time ago i changed my youtube name to something else and to this day it never updated on firefox. Yesterday i finally asked youtube support about i… (read more)

Hello everyone, a long time ago i changed my youtube name to something else and to this day it never updated on firefox. Yesterday i finally asked youtube support about it and they told me to check with mobile or other browsers and there it works fine, so only firefox is borking out on that one. Do you have an idea how i can solve that?

sincerly, Cammy

Asked by CammyVanny 21 hours ago

Last reply by zeroknight 21 hours ago

having to clear my cookies every day or pages wont load properly

I have attached images of what slowly occurs when I don't clear my cookies, websites start to slowly and slowly load less and less until they eventually completely break … (read more)

I have attached images of what slowly occurs when I don't clear my cookies, websites start to slowly and slowly load less and less until they eventually completely break and wont load and I have to clear my cookies, resign into everything. and rinse and repeat every few days or a week, I also attached an image of what the purchase screen is supposed to look like. Looking at this via Microsoft edge

Asked by superkitty914 1 day ago

Last reply by zeroknight 21 hours ago

Problems with the Firefox browser

Dear Sir or Madam, I have been having problems with Firefox on my Desktop-PC for about a week now: I am almost always shown another tab with an error message (an new tab… (read more)

Dear Sir or Madam,

I have been having problems with Firefox on my Desktop-PC for about a week now: I am almost always shown another tab with an error message (an new tab with allways the same content) in addition to the website that is regularly called up and also works:

Tab-Headline: Seiten-Ladefehler Fehler: Verbindung fehlgeschlagen

Beim Verbinden mit 0.0.0.1 trat ein Fehler auf.


   Die Website könnte vorübergehend nicht erreichbar sein, versuchen Sie es bitte später nochmals.
   Wenn Sie auch keine andere Website aufrufen können, überprüfen Sie bitte die Netzwerk-/Internetverbindung.
   Wenn Ihr Computer oder Netzwerk von einer Firewall oder einem Proxy geschützt wird, stellen Sie bitte sicher, dass Firefox auf das Internet zugreifen darf.


It doesn't matter which regular website I call up - it also happens when I call up the Mozilla Firefox page.

It is as if my website call is executed twice: once normally and everything is displayed correctly. And once as an extra tab with an alleged page loading error where the connection has failed.

How can I prevent these additional tabs with the error message from constantly popping up and being displayed? I have not made any other settings and Firefox has always worked perfectly so far. It doesn't happen with Google Chrome, for example - so it's not my PC.

Can you help me?

Kind regards Daniela Bohle

Asked by Dan Bo 23 hours ago

Last reply by TyDraniu 22 hours ago

Do you have the IBM Trusteer Rapport add on

I use the Rapport Add-on to protect my personal info especially when doing on-line banking at the moment I have to use Chrome but I would rather stay with Firefox but you… (read more)

I use the Rapport Add-on to protect my personal info especially when doing on-line banking at the moment I have to use Chrome but I would rather stay with Firefox but you dont have this extension why?

Asked by Chipeto 1 day ago

Last reply by TyDraniu 23 hours ago

How to use Advanced Preferences (about:config) to select 'Manual proxy configuration' setting

I want to use the Advanced Preferences (about:config) to select 'Manual proxy configuration' setting. I have been able to set the HTTP Proxy and associated port but I am… (read more)

I want to use the Advanced Preferences (about:config) to select 'Manual proxy configuration' setting. I have been able to set the HTTP Proxy and associated port but I am unable to find the setting in Advanced Preferences that will select Manual proxy configuration. Could someone please help. Thanks

Asked by jon.christian 1 day ago

Last reply by zeroknight 1 day ago

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

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.

Asked by rxs621 1 week ago

Last reply by NoahSUMO 1 day ago