AXeL-dev / distract-me-not

:no_entry: A lightweight website blocker with a user friendly interface
https://addons.mozilla.org/addon/distract-me-not/
MIT License
122 stars 14 forks source link

White list doesn't work properly #102

Open MeGlax opened 3 months ago

MeGlax commented 3 months ago

Describe your issue here.

Your environment

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.

AXeL-dev commented 3 months ago

Hello @MeGlax,

Can you please share your full configuration?

PS: you can use the export functionality to do so.

image

MeGlax commented 3 months ago
{  "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: ***@***.***>