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

Websites suddenly not getting blocked anymore since 1/9/22 on firefox ubuntu and unable to download exported options #262

Open HiddenMachine3 opened 2 years ago

HiddenMachine3 commented 2 years ago

Hey, The websites included in my blocklist are not being blocked anymore on firefox(104.0.1 (64-bit)) ubuntu(22.04.1). When I try to export options to file it says "Unable to download exported options" Screenshot from 2022-09-01 16-32-21

Please tell me if you need anymore information. Any help would be appreciated.

proginosko commented 2 years ago

Open the browser console (Ctrl+Shift+I) and you should see a more specific error message in the warnings feed. Please copy that message here.

HiddenMachine3 commented 2 years ago

For trying to download options file I get :

[LBNG] Cannot download options: Error: Download canceled by the user

Although I don't know what to do about the blocking not working situation.

proginosko commented 2 years ago

When you click "Export Options to File" do you get the usual "Save As" dialog box? Or do you immediately get the error message?

HiddenMachine3 commented 2 years ago

Immediately get the error message

proginosko commented 2 years ago

Strange. I wonder if it's a permissions issue. Try this: open the LeechBlock Options page, open the browser console (Ctrl+Shift+I), and enter this line of code:

browser.permissions.getAll().then((result) => { console.log(result.permissions); });

You should see something like this:

Array(6) [ "downloads", "menus", "storage", "tabs", "unlimitedStorage", "webNavigation" ]

HiddenMachine3 commented 2 years ago

This is what i got: image

proginosko commented 2 years ago

Okay, so it looks like the permissions are okay.

Can you export/import to/from sync storage without errors? If that works, you might export to sync storage, uninstall and reinstall the extension, then import back from sync storage. I'm wondering if that might fix the issue with the blocking not working as well.

But before you do that, try enabling diagnostic mode (under General options) and see what comes up in the browser console when you try to access a site that should be blocked.

HiddenMachine3 commented 2 years ago

It said that it exported options to sync storage successfully. couldn't find anything in console, however removing and adding the plugin did the trick. Although sync storage options didn't get imported. For now the problem is gone. Thanks

HiddenMachine3 commented 2 years ago

Different problem this time:

image

it seems that if i open slither.io even though i blocked it in my blockset, it doesn't get blocked. Although agar.io in the same block set gets blocked(after 5 s of opening)

This is my current blockset that blocks agar.io correctly, but doesn't block slither.io:

image

Also problem of exporting options to file is still not resolved :

image

All this was done after removing and downloading the extension again

HiddenMachine3 commented 2 years ago

The following errors were seen when i opened browser console and started slither.io: image

HiddenMachine3 commented 2 years ago

above problem is observed with other sites too

proginosko commented 2 years ago

Those errors in the console are from other extensions. Errors from LeechBlock will start with:

moz-extension://18782b4e-c6fd-4f66-909b-e4d051c0de01/

proginosko commented 2 years ago

Let's try and figure out why slither.io isn't getting blocked. Go to LeechBlock Options > About and open the diagnostics page. Enter http:\\slither.io into the field, click Test URL, and see what the output is (post it here).

HiddenMachine3 commented 2 years ago

image

proginosko commented 2 years ago

Okay, that shows that LB is correctly determining that the site should be blocked. The question is why it isn't actually blocked. What URL are you using for the blocking page?

HiddenMachine3 commented 2 years ago

actually it was http://slither.io , but even that is showing the same result.

HiddenMachine3 commented 2 years ago

I was using " *.io "to block it. What url are you talking about specifically

proginosko commented 2 years ago

I'm asking what URL you have in the field "Enter the fully specified URL of the page to show instead of these blocked sites".

HiddenMachine3 commented 2 years ago

blocked.html?$S&$U

proginosko commented 2 years ago

Okay, try this:

Make sure "Errors" and "Logs" are selected for the browser console output.

HiddenMachine3 commented 2 years ago

No errors were displayed: image

proginosko commented 2 years ago

Can you post a screenshot of your "When to Block" settings?

HiddenMachine3 commented 2 years ago

image

HiddenMachine3 commented 2 years ago

image image

HiddenMachine3 commented 2 years ago

issue similar to : https://github.com/proginosko/LeechBlockNG/issues/179

noncomplete commented 9 months ago

Having similar issues on Firefox 122.0 on Arch Linux.

proginosko commented 9 months ago

Try this:

Go to the Add-ons Manager (about:addons), click on LeechBlock NG in the list of extensions, then select the Permissions tab. Is the option "Access your data for all websites" selected at the bottom?

anmolbyte commented 5 months ago

Try this:

Go to the Add-ons Manager (about:addons), click on LeechBlock NG in the list of extensions, then select the Permissions tab. Is the option "Access your data for all websites" selected at the bottom?

This fixed my problem. Thank you so much! Maybe add a notification at install warning if the permission isn't enabled it may not work?