You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-22Lines changed: 23 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,46 +11,47 @@
11
11
12
12
## Usage
13
13
14
-
Click on the icon. Enter sites to block. See [Examples](#examples).
14
+
Click on the icon. Enter sites to block. See [Special characters](#special-characters) and [Examples](#examples).
15
15
16
16
Choose how to resolve blocked: **Close Tab**, or **Show Blocked info page**.
17
17
18
18
**Blocked info page** shows what _url_ was blocked, based on which _rule_ it was blocked, and optionally a blocked count over a chosen period of time:
19
19
_All Time_, _This Month_, _This Week_, or _Today_.
20
20
21
-
### Examples
21
+
### Special characters
22
22
23
-
Block `example.com`**only** (`example.com/apple/` and `orange.example.com` should work):
24
23
```
25
-
example.com # or example.com/
24
+
! ⇒ prepend to exclude from blocking
25
+
* ⇒ match any zero or more characters
26
+
? ⇒ match any one character
26
27
```
27
28
28
-
<br>
29
+
### Examples
29
30
30
-
Block any page on `example.com` (including `example.com`):
31
-
```
32
-
example.com/*
33
31
```
32
+
example.com/ # Blocks example.com/ ONLY
33
+
example.com/* # Blocks example.com/ and any page on it
34
34
35
-
<br>
36
35
37
-
Block any subdomain of `example.com`**only** (`example.com` should work):
38
-
```
39
-
*.example.com
40
-
```
36
+
example.com/* # Blocks any page on example.com/
37
+
!example.com/orange/ # except example.com/orange/
41
38
42
-
<br>
43
39
44
-
Block any page on `example.com` where first directory starts with any 4 characters (should block `example.com/pear/` or `example.com/plum/`, but not `example.com/orange/`):
45
-
```
46
-
example.com/????/*
47
-
```
40
+
*.example.com/ # Blocks any subdomain of example.com/
41
+
!apple.example.com/ # except apple.example.com/
48
42
49
-
<br>
50
43
51
-
Block any page on `example.com` where first directory starts with any characters but ends with `rry` (should block `example.com/cherry/` or `example.com/strawberry/`, but not `example.com/kiwi/`):
0 commit comments