Block-Site icon indicating copy to clipboard operation
Block-Site copied to clipboard

Feature request: Allow specifying more than one period per week day

Open nigredo-tori opened this issue 3 years ago • 1 comments

I'd like to block some sites during my work hours, but allow them on my lunch break. So I'd like them to be blocked, say, 10:00 - 13:00 and 14:00 - 19:00, but available 13:00 - 14:00. Note that this is different from FAQ item 16, since I only want the specific sites blocked, so switching to reverse mode is not an option.

nigredo-tori avatar Feb 18 '22 10:02 nigredo-tori

It is possible by manually configuring options. Go to the options page and export options to JSON. Open the JSON with a text editor and add new schedules. Import the modified JSON to the extension. Example:

{
  "blocked": [
    "twitter.com",
    "example.com"
  ],
  "close": 0,
  "contextmenu-frame": true,
  "contextmenu-pause": true,
  "contextmenu-resume": true,
  "contextmenu-top": true,
  "css": "",
  "initialBlock": true,
  "map": {},
  "message": "",
  "no-password-on-add": false,
  "redirect": "",
  "reverse": false,
  "schedule": {
    "times": {
      "Mon": [
        {
          "end": "02:00",
          "start": "01:00"
        },
        {
          "end": "05:00",
          "start": "04:00"
        }
      ]
    }
  },
  "schedule-offset": 0,
  "schedules": {},
  "sha256": "",
  "timeout": 60,
  "title": true,
  "wrong": 1,
  "managed.storage.overwrite.on.start": false,
  "guid": "ea44e67c-da3a-4e43-b30f-4e1a06e39083"
}

ray-lothian avatar Mar 14 '22 08:03 ray-lothian