Open Mr-Python-in-China opened 4 months ago
browser-extension-url-match works good on version 1.0.0
You may need to update the dependence?
Did browser-extension-url-match 1.0.0 really work for you? I tried upgrading it to 1.0.0 and even 1.2.0, and it still threw that error.
The matching algorithm it simulates also does not support port matching, so it seems to work as intended.
https://developer.chrome.com/docs/extensions/mv3/match_patterns/ https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns
I means, the url "http://localhost/" didn't match "http://localhost:9000/". It's not same as tampermonkey. New version seems work well
Ah, I see, you are right. I'll update the version later, thanks for reporting!
I tried:
And got an error in console:
In
utils.js
matcher.error
isError: Host "localhost:54220" cannot include a port number. All ports are matched by default.
.Then I tried
"match": ["*://localhost/"]
and visitedlocalhost:54220
, but matcher.match(url) returnfalse
, so my script didn't work.