Comments (16)
There is actually a bug in the pattern conversion. I am going to fix it.
from browser-extension.
and wrote it to the disk
https://github.com/foxyproxy/firefox-extension/blob/master/src/scripts/background.js#L14
There is no reason to write to disk unless the background page can be unloaded? It can be kept in a 500 element in-memory array.
there were never any complaints about performance of 7.x. You are sacrificing excellent functionality β why people choose FoxyProxyβ to maximize performance of an edge case. Logging is an edge case that is rarely used. But when it is used, users should be able to correlate a URL with a proxy that loads it. If I have 15 or more proxies, and multiple URLs to track down which proxy loaded it, the current log is useless because I will spend an inordinate amount of time and have to take notes on which proxy loads which url.
from browser-extension.
Thank you. Do you have any wildcard patterns? Did they import successfully?
from browser-extension.
Not sure if related or not, but with extension upgrade to 8.0. my configured proxies are gone. Where can I find them and import them?
from browser-extension.
Not sure if related or not, but with extension upgrade to 8.0. my configured proxies are gone. Where can I find them and import them?
Was the upgrade for FoxyProxy Basic on Firefox?
If so, it would be a different issue.
from browser-extension.
Not sure if related or not, but with extension upgrade to 8.0. my configured proxies are gone. Where can I find them and import them?
Was the upgrade for FoxyProxy Basic on Firefox? If so, it would be a different issue.
Yes it was on Firefox (latest 117.0.1), it just updated FoxyProxy Basic automatically but configurations were gone.
from browser-extension.
Do you have a backup?
from browser-extension.
@ericjung
Thank you. Do you have any wildcard patterns? Did they import successfully?
Yes i have many, and no they didn't import successfully as i mentioned in the OP...
The error says it all. The regular expression has errors. Please fix the error and try again.
[0-9]
requires a repeat value.
FoxyProxy v8.0 checks the patterns for errors before saving them (previous versions didn't but failed later when matching).
The regExp in the backup has NO-ERRORS, it is the translation while importing that has error...
FoxyProxy originally supported full URL matching patterns. Due to some API limitations, it was later changed to host matching patterns in the Firefox version. FoxyProxy v8.0 supports full URL patterns matching in v8.0 again.
I understand that's why i suggested you to split into parts for the user and your code.
That way you can both import backups from the current old version AND allow users to explicitly enter regExp for the page parts.
-
[!Important]
I think you need to separate your patterns intoprotocol
,hostname
, and eventualpath
patterns in your new version, and import into the hostname patterns only. The protocol part could be made a select-list, while the other two definitely need separate input boxes and code to check only those parts of the URL...
Your code NEEDS 3 separate values to correctly check the URL: https://some.web.site:80/page1/index.html
- Protocol part =
https
in example above.
This can be astring
orenum
in your code.
TheString
is in case you will allow users to enter freestyle text fe.ws
instead of the standardhttp
orhttps
, otherwise you can make it anenum
only that the user can select from a drop-down listing. - Host part =
some.web.site:80
in example above.
This can be astring
orregExp
.
This is to be able to properly import previous backups which only supported hostnames. - Path part =
page1/index.html
in example above.
This can be astring
,regExp
ornull
.
This will be the page address after the hostname.
This is to be able to properly import previous backups which only supported hostnames.
Without the above you won't be able tobe "backward-compatible"...
from browser-extension.
Please keep in mind the old-rules, in backup, i gave in OP because people WILL have used that kind...
I'll be waiting to pull the changes and test on my side π
from browser-extension.
Repo updated with a fix (fingers crossed).
from browser-extension.
Oops.. there was a typo... repo updated
from browser-extension.
π Seems it's fixed now, no errors while importing from older version backup...
Will need to check all rules later when i have time, but looks good so far π
Just one note though, unrelated to this issue:
Can the LOG screen please show the name of the proxy used instead of it's address?
Name of the proxy the user has set is much more useful, maybe also color the lines using the color of that proxy...
π
from browser-extension.
The log is generated from a separate independent process which doesn't have access to the saved data. It prints direct from the data provided by Firefox.
It would also be easier to correlate the log with external network monitors.
from browser-extension.
The 7.x and earlier versions display the name of the proxy and itβs colors in the log, as I remember.
from browser-extension.
Updated: (correction)
v7.* logged every connection at the time of matching, and kept it in RAM in the background script. In MV3 background script gets unloaded.
v8.0 has a live log. It starts when the Options page opens and stops when the page is closed.
Please also note ...
Proposal: Provide documentation and reporting for browser's slow extension warnings
https://github.com/w3c/webextensions/issues/456
https://searchfox.org/mozilla-central/source/dom/ipc/ProcessHangMonitor.cpp#63-86
"EXTENSION NAME" is slowing down Firefox. To speed up your browser, stop that extension. Learn more
https://source.chromium.org/chromium/chromium/src/+/main:extensions/browser/warning_set.cc;l=71-80;bpv=1;bpt=1
This extension is slowing down Google Chrome. You should disable it to restore Google Chrome's performance.
from browser-extension.
In MV3 background page will be unloaded.
runtime.getBackgroundPage()
Retrieves the Window object for the background page running inside the current extension. If the background page is non-persistent (an event page) and it is not running, the background page is started.
from browser-extension.
Related Issues (20)
- The tab bar is stuck on progress bar HOT 2
- didn't forward all traffic HOT 1
- QUIC (HTTP/3) connections do not work when using socks5 proxies HOT 8
- socks5 proxy (ssh -D) Firefox MAC not working anymore HOT 5
- Proxy by patterns does not work for https://www.tiktok.com/favicon.ico HOT 2
- [QUESTION] Combining proxies and their whitelist/blacklsit settings from two FoxyProxy generations HOT 15
- [Question] Restoring all foxyproxy settings after reinstall - Firefox HOT 1
- Proxy patterns ignored on tabs HOT 2
- feature request: easily move pattern from one proxy to the other HOT 3
- Allow (temporary) changing of managed settings HOT 3
- HTTPS proxies don't work HOT 19
- localhost bypass not working HOT 7
- Extension does not work any longer - message "Settings are controlled by other extensions" HOT 8
- HTTPS proxy on Chrome keeps prompting sign in HOT 12
- Feature Request: bulk delete HOT 3
- Cannot enable proxy when using firefox enterprise policies.json on NixOS HOT 9
- Doesn't work with LibreWolf HOT 4
- Localhost Inaccessible When Using FoxyProxy (SOCKS5) HOT 13
- Foxy Proxy on Mullvad Browser doesnt proxy at all HOT 21
- Leaks DNS server on Mull Browser (android) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-extension.