White list doesn't work properly
Describe your issue here.
Your environment
- Distract me not 2.8.1
- mozilla firefox 128.0.3
Steps to reproduce
Tell us how to reproduce this issue. Please provide a working demo.
Impossible to white list pages like MDN web docs, for example this link:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed If you were to white list mozilla.org or developer.mozilla.org, it still wont let me go into the page, unless i white list the whole link, to the specific MDN doc, but if i were to open another doc, than i would need to white list it again, even tho it's from the same page.
Tell us what should happen
When you add https://mozilla.org/ into whitelist or at least https://developer.mozilla.org/ into whitelist, you should be able to access all of the MDN web docs.
Tell us what happens instead It either does not work, or works only if i write the specific subdirectory, but than it doesn't work with other subdirectories.
Hello @MeGlax,
Can you please share your full configuration?
PS: you can use the export functionality to do so.
{ "isEnabled": true, "mode": "blacklist", "action": "blockTab", "framesType": [ "main_frame", "sub_frame" ], "message": "", "displayBlankPage": false, "displayBlockedLink": false, "redirectUrl": "", "enableLogs": false, "logsLength": 100, "hideReportIssueButton": false, "showAddWebsitePrompt": false, "enableOnBrowserStartup": false, "schedule": { "isEnabled": false, "days": { "monday": [], "tuesday": [], "wednesday": [], "thursday": [], "friday": [], "saturday": [], "sunday": [] } }, "password": { "isEnabled": true, "allowActivationWithoutPassword": false, "allowAddingWebsitesWithoutPassword": false, "blockAccessToExtensionsPage": false, "hash": "$2a$10$EOFmF6GG5/YR5dPW9kqJvuXFWwe9Ts527kwU400Z3ET/ZsQ7I0lhi" }, "unblock": { "isEnabled": true, "requirePassword": true, "unblockOnceTimeout": 10, "displayNotificationOnTimeout": true, "autoReblockOnTimeout": false }, "timer": { "isEnabled": true, "defaultValue": "00:30", "allowStoppingTimer": true, "displayNotificationOnComplete": true, "allowUsingTimerWithoutPassword": false, "runtime": { "duration": 0, "endDate": 0 } }, "blacklist": [ "https://discord.com/", "www.tiktok.com", "www.instagram.com", "www.discord.com", "www.messenger.com", "www.facebook.com" ], "whitelist": [ "*.wikipedia.org" ], "blacklistKeywords": [], "whitelistKeywords": [], "blacklistLastModifiedDate": 1722931288882, "whitelistLastModifiedDate": null, "blacklistKeywordsLastModifiedDate": null, "whitelistKeywordsLastModifiedDate": null} From: AXeLSent: Tuesday, August 6, 2024 11:12To: AXeL-dev/distract-me-notCc: Valentinas; MentionSubject: Re: [AXeL-dev/distract-me-not] White list doesn't work properly (Issue #102) Hello @MeGlax,Can you please share your full configuration?PS: you can use the export functionality to do so.image.png (view on web)—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
@MeGlax After investigating, it seems like your issue is linked to the slash character added at the end of the url: https://developer.mozilla.org/.
This said, i agree that this is a bug (to be fixed in the next release), for now you can use one of the following workarounds:
- Remove the slash at the end of the url, like so:
https://developer.mozilla.org - Add an asterix at the end of the url:
https://developer.mozilla.org/*
Should be fixed in v2.8.3, will close the issue.