1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-01 02:02:29 +02:00

Updated How to whitelist a web site (markdown)

SW1FT 2015-03-26 18:00:54 +00:00
parent 44b36e88c0
commit 71c4afdd57

@ -1,8 +1,8 @@
I've seen a couple of feedbacks in the store of people who wish it was possible to whitelist a web site, i.e. to disable µBlock on a specific web site.
I've seen a couple of feedbacks in the store of people who wish it was possible to whitelist a web site, i.e. to disable uBlock on a specific web site.
The feature is already available, it is the big power button: it serves to whitelist the current web site, its state will be remembered next time you visit the web site.
![µBlock's popup](https://raw.githubusercontent.com/gorhill/uBlock/master/doc/img/popup-1.png)
![uBlock's popup](https://raw.githubusercontent.com/gorhill/uBlock/master/doc/img/popup-1.png)
### Detailed syntax
@ -17,9 +17,9 @@ Plain syntax is when using only hostname label(s), which means only the hostname
Complex syntax occurs if and only if at least one `/` appears in a whitelist directive. Optionally, wildcard `*` can be used with complex directives for more flexibility.
A comment is a line prefixed with `#`. Comments are ignored by µBlock.
A comment is a line prefixed with `#`. Comments are ignored by uBlock.
If no `/` appears in a whitelist directive, and if the directive contains characters which are not allowed for plain hostname, then the whitelist directive will be commented out and ignored by µBlock. This allows you to fix your directive.
If no `/` appears in a whitelist directive, and if the directive contains characters which are not allowed for plain hostname, then the whitelist directive will be commented out and ignored by uBlock. This allows you to fix your directive.
#### Plain hostname
@ -46,7 +46,7 @@ Wildcards can be used at any position. However, when a wildcard is used within t
- Follow step 1 to 4 in ["YouTube - whitelist channels in Adblock Plus"](https://greasyfork.org/en/scripts/4168-youtube-whitelist-channels-in-adblock-plus)
- Extract the author's name as directed
- Once you have the author's name:
- Go to the _Whitelist_ tab in µBlock's dashboard
- Go to the _Whitelist_ tab in uBlock's dashboard
- Add the line `*youtube.com/*&user=[AUTHOR NAME]*`
- Replace `[AUTHOR NAME]` with the author name you extracted earlier
- Example: `*youtube.com/*&user=jacksfilms*`
@ -55,4 +55,4 @@ That's all.
### Other details
If you re-enable µBlock by clicking the whitelist button in the popup while a whitelist directive you handcrafted is in effect, your handcrafted whitelist directive will simply be commented out. This way you can bring it back to life if ever you un-whitelisted by mistake.
If you re-enable uBlock by clicking the whitelist button in the popup while a whitelist directive you handcrafted is in effect, your handcrafted whitelist directive will simply be commented out. This way you can bring it back to life if ever you un-whitelisted by mistake.