顯示下列標籤的問題: 顯示所有問題

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 於 6 天前 詢問

jscher2000 - Support Volunteer 最近回覆於 6 天前

Popups still appear despite blocking

Hi, Some websites still managed to smuggle in popups despite all the blockings. I use as add-ons: privacy badger, no-script, ublock origin and recently tried popup block… (閱讀更多)

Hi,

Some websites still managed to smuggle in popups despite all the blockings. I use as add-ons: privacy badger, no-script, ublock origin and recently tried popup blocker (strict) and even have the 'block pop-up windows' enabled. I also tried to fiddle around in ´about:config´ but nothing helps. I think it's a recent occurrence as I don't remember having this problem, let's say, a couple of months ago.

The funny thing is that this problem doesn't occur in opera-browser (in which I hardly use extensions).

The websites that this occurs are: arabicpost.net (a pop-up will occur about 10 sec after right-clicking a new tab). focus.de (a video pop-up will occur if there's a video in it). Again opera-browser blocks all of this. I expect there will be other websites to add in the future.

Please help. S.O.S. -> g.o.i.n.g..i.n.s.a.n.e!

b.hawassa 於 2 週前 詢問

zeroknight 最近回覆於 2 週前

drag and drop keeps breaking.

i am using firefox developer edition version 126.0b3 (64-bit) on linux mint with an x11 desktop and for some reason the drag and drop breaks frequently. i think i have f… (閱讀更多)

i am using firefox developer edition version 126.0b3 (64-bit) on linux mint with an x11 desktop and for some reason the drag and drop breaks frequently.

i think i have figured out how i can consistently recreate the bug as well as sort of fix it temporarily.

i start with a newly launched browser. everything works fine. but then if i attempt to drag and drop something shortly after i drag and dropped something else and it did the little animation where it returns to its original position, i find that i cant drag and drop anything FROM firefox to anywhere else. and i also cannot rearrage tabs.

it seems to fix itself whenever I drag something from another program TO firefox successfully such as text into a textbox, or a .html file into the window to view it.

goombabomber11 於 1 週前 詢問

Change Firefox filename pattern for Take Screenshots

Firefox can take screenshots of pages or screenshots of custom areas of pages. According to the documentation, when we download the image, the filename should follow the… (閱讀更多)

Firefox can take screenshots of pages or screenshots of custom areas of pages.

According to the documentation, when we download the image, the filename should follow the pattern: Screen Shot yyy-mm-dd at hh.mm.ss.png. If I use the :screenshot at the console, the pattern works as documented.

But Firefox is using a different pattern when I choose Take Screenshot from the context menu. The pattern includes the page's title. Example: Screenshot 2024-04-14 at 18-35-16 General ‹ Settings ‹ Geomaster Lda — WordPress.png.

Since the page title can have non common filename characters, I have problems with such filenames. My uploads to MediaWiki fails with such filenames. I know I can report or improve MediaWiki, but my question here is quite simple.

Can I change the Firefox's default pattern for Take Screenshot's downloads?

Jorge Gustavo Rocha 於 1 週前 詢問

jonzn4SUSE 最近回覆於 1 週前

when can we have firefox with the translator switches OFF?

hi, When can we have firefox with translation set OFF by default? I mean, it's pretty unfair that intelligent people have to keep turning off the dumb translator... al… (閱讀更多)

hi,

When can we have firefox with translation set OFF by default?

I mean, it's pretty unfair that intelligent people have to keep turning off the dumb translator... all the time... We need a setting, openly available, in the Edit/Settings menu, where it belongs, an option to switch it off. In fact, when it first asks if we want a page translated, we need an option: never ask this again...

All we can see is "go under the hood of firefox, config:option, go into the about:config section where 10 of 10 million people will ever get... and there find your way to disable this horrible translator". When can we expect an option in the pop-up: "never ask me this question again"?

The translator in this offensive form has been around since 2023... I seems high time we didn't have to bother with this anymore...

Peter

- - - Thank you for developing firefox and keeping it intelligent - - -

jepe69 於 2 週前 詢問

cor-el 最近回覆於 2 週前

Tabs not completely shifted over to the left.

Hello Good People, I installed Firefox a few days ago and it was looking good. I don't like that icon in the top-left hand so I right clicked it and removed it. All was … (閱讀更多)

Hello Good People,

I installed Firefox a few days ago and it was looking good. I don't like that icon in the top-left hand so I right clicked it and removed it. All was good. However, today there is a blank black space in the corner as if the icon was back (but without an actual icon). It's only a small thing but it bugs me. I want the tabs to be shifted all the way over to the left like they have been up to today. It's triggering my OCD. Anyway, any advice appreciated.

Best Wishes

Matt Hammond

m.p.hammond 於 2 週前 詢問

jscher2000 - Support Volunteer 最近回覆於 2 週前

firefox private mode language error

I use firefox on fedora 38 and after update firefox about a month ago . i got this error when use private mode ,for thai languge it just error but in normal mode it ok . … (閱讀更多)

I use firefox on fedora 38 and after update firefox about a month ago . i got this error when use private mode ,for thai languge it just error but in normal mode it ok .

SD SD 於 1 週前 詢問

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?

ADGB 於 2 週前 詢問

Cloudflare not working on DNS over HTTPS

I'm new to firefox and would like to set cloudflare for DNS over HTTPS but there seems to be an issue. If I set it to NextDNS the connection stays active. But if I set it… (閱讀更多)

I'm new to firefox and would like to set cloudflare for DNS over HTTPS but there seems to be an issue. If I set it to NextDNS the connection stays active. But if I set it to cloudflare it goes inactive with the error (NS_ERROR_NET_TIMEOUT_EXTERNAL). I tried setting a custom DNS to OpenDNS and got the same error.

I'm running Manjaro Linux if that make a difference.

frehseaccount 於 1 天前 詢問

  • 封存

Disabling Control +w keybind

Could you add a option of closing tab with <kbd>Ctrl</kbd>+<kbd>w</kbd> to the advanced preference? Also, I realized that: ```browser.tabs.warnO… (閱讀更多)

Could you add a option of closing tab with <kbd>Ctrl</kbd>+<kbd>w</kbd> to the advanced preference?

Also, I realized that:

```browser.tabs.warnOnClose False``` Does this option activates warn when closing the tab? If your answer is yes, it is not working at all.

maxemilian 於 1 年前 詢問

wtfiwinomgs 最近回覆於 1 年前

  • 封存

Enable pop-ups on a case-by-case basis

I have run into an annoyance where I am trying to click on a link in my email to open a new page. Clicking on the link makes a bar show up telling me that Firefox has pre… (閱讀更多)

I have run into an annoyance where I am trying to click on a link in my email to open a new page. Clicking on the link makes a bar show up telling me that Firefox has prevented a popup from being opened (see attached image). I am given the option of managing my preferences / Firefox settings, where I can either go through multiple steps to permanently allow all pop-ups from that website until I restore my original settings, or uncheck a box to permanently allow all pop-ups from all sites until I check that box again. This is annoying because I have no interest in either allowing or disallowing all pop-ups from all websites, or all pop-ups from this specific website, every time I want to open a single pop-up from a specific site. I would rather that the warning bar which tells me that Firefox has blocked a pop-up also display a button allowing me to allow ONLY THIS SPECIFIC POP-UP IN THIS SPECIFIC CASE.

Is this a setting that exists in Firefox? Alternatively, is there a version of Firefox which does have a setting which would allow this? Or is this simply not a functionality that exists for this browser?

Tiggy Chen 於 7 個月前 詢問

zeroknight 最近回覆於 7 個月前

  • 封存

foxy proxy

Hello! I want to work with burp suit application but for work with it the foxy proxy need. when I turned on the foxy proxy it always gives me different kind of error mess… (閱讀更多)

Hello! I want to work with burp suit application but for work with it the foxy proxy need. when I turned on the foxy proxy it always gives me different kind of error messages such ass "The proxy server is refusing connections". I tried everything I could but to no avail.

g10821.chamila 於 1 年前 詢問

FredMcD 最近回覆於 1 年前

Live video reproduction isssues.

Hello, I've got a reproduction issue on France TV live programs which I watch through nordvpn. The picture keeps "jumping" fast up and down in a very bothering way. This … (閱讀更多)

Hello, I've got a reproduction issue on France TV live programs which I watch through nordvpn. The picture keeps "jumping" fast up and down in a very bothering way. This doesn't happen when the video is NOT live. I run the latest version of LINUX MINT. What can I do to fix it? The only way I found to stop the issue is to take down the resolution of the live video to its minimum which gives me a disastrous picture but stops the "jumping". I guess you might say there is something wrong with my GPU. The point is that my PC is brand new with an AMD 5600G, new MB, 16Gb of RAM and 500w of PSU. BUT more than anything I have to say that everything WORKS FINE with CHROME. I like FIREFOX I have been using it literally for decades now. (I'm 75). Is there a solution? Looking forward to hearing from you. Thanks in advance. François.

Frank Rassiga 於 5 個月前 詢問

zeroknight 最近回覆於 5 個月前

  • 封存

Choose URL for enabling pop-ups

I suspect that my bank tried to show a verification pop-up while I was on a third-party site, and because pop-ups were disabled the third party rejected my request. My qu… (閱讀更多)

I suspect that my bank tried to show a verification pop-up while I was on a third-party site, and because pop-ups were disabled the third party rejected my request. My question is:

How much of my bank's website address do I need to put in the "Allowed Web Sites - Pop-ups" edit box, seeing as I wasn't on that website at the time. Would "https://name-of-bank.com" be sufficient? Or, are wildcards allowed in the URL?

john.beatty 於 1 年前 詢問

cor-el 最近回覆於 1 年前

  • 封存

How do I enable JavaScript on Firefox browser?

I'm trying to migrate from Chrome to Firefox browser. I cant load Twitter and some other links. I get error message. JavaScript not enabled. I can't find a setting anywhe… (閱讀更多)

I'm trying to migrate from Chrome to Firefox browser. I cant load Twitter and some other links. I get error message. JavaScript not enabled. I can't find a setting anywhere to enable it. Help!!

ispwllheli 於 11 個月前 詢問

cor-el 最近回覆於 11 個月前

  • 封存

Can't Download Any File from Mozilla Firefox (Ubuntu 22.04.1)

Hi! I have encountered this really annoying problem on my Firefox app. I give details below. I installed Mozilla Firefox on my freshly installed Ubuntu 22.04.1 LTS. I tr… (閱讀更多)

Hi!

I have encountered this really annoying problem on my Firefox app. I give details below. I installed Mozilla Firefox on my freshly installed Ubuntu 22.04.1 LTS. I tried installing it from Snap Store. However, when I tried saving an image from the web (or, truthfully, any other file chosen by the "Save As..." selection), nothing happened, again and again. I tried many things, including following relevant guides from the internet, but nothing changed. The Firefox version is the 107.0.1 (64-bit), a Mozilla Firefox Snap for Ubuntu canonical-002- 1.0. I, also, have to report some other things, as well. When tried installing the browser from the internet (I downloaded a compressed file, containing the executable), the same function seemed to work. I, now, use the executable to access Firefox. However, firstly, because other difficulties (not problems, but difficulties) arise and, secondly, because I'd really like ti use, mostly, snaps, I report this bug here requesting for help, as well.

Any helpful answer will be appreciated!

Thank you!

Elias Myserlis 於 1 年前 詢問

cor-el 最近回覆於 1 年前