proginosko / LeechBlockNG-chrome

LeechBlock NG (Next Generation) for Chrome 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
72 stars 14 forks source link

Not working for new tab groups in Google Chrome #67

Open BadacasGM opened 6 months ago

BadacasGM commented 6 months ago

New feature of tab grouping in chrome messes up leechblock. If I put a tab in any group I can access any site regardless of block filters. image

proginosko commented 6 months ago

I haven't been able to reproduce this. When I open several tabs with YouTube, put them in a group, and then tell LB to block youtube.com, they are blocked immediately.

Can you post a step-by-step scenario to reproduce the error?

Do you have the option "Immediately block pages on these sites once blocking conditions are met" selected?

BadacasGM commented 6 months ago

Can you post a step-by-step scenario to reproduce the error?

After some trial and error I've found that you need to "Save" group. After that every tab in it ignores blocker. image

proginosko commented 6 months ago

Ha! You can bank on Google to screw things up. 🙂

Thanks for the follow-up. I was able to reproduce the issue. From initial testing, it seems that Chrome won't allow an extension to redirect a tab that's in a saved group. (Why not? I have no idea.) If you select applying a filter or closing the tab instead, LB works fine. But replacing the page with another URL is a big no-no, apparently.

For now, a workaround would be to disable saved groups. Go to chrome://flags/#tab-groups-save and set it to "Disabled" (you'll need to relaunch Chrome for it to take effect).

Sorry I don't have a better solution at this time.

BadacasGM commented 6 months ago

For now, a workaround would be to disable saved groups. Go to chrome://flags/#tab-groups-save and set it to "Disabled" (you'll need to relaunch Chrome for it to take effect).

Gonna use it, thanks.

And thanks for your work on LeechBlock, the best extension to ever exist ;)