proginosko / LeechBlockNG

LeechBlock NG (Next Generation) for Firefox is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
721 stars 66 forks source link

[Feature Request] Support file URLs containing drive specifiers (e.g., "file:///C:/path") #303

Closed gepz closed 1 year ago

gepz commented 1 year ago

I'm trying to block some local webapps.

But currently "file:///C:/path" when saved becomes "C:/path" which works at first, but when saved again becomes "path" which stops working.

updates: */C:/path does work however.

proginosko commented 1 year ago

Yes, I can see why that is happening. LB treats anything before a colon as a protocol and removes it, but in this case, it's not a protocol but a drive specification. The workaround would be to use a wildcard instead of a colon:

C*/path

gepz commented 1 year ago

I see, that's a good workaround.