3 ms·
Show HN: Block URLs in Chrome on Windows Without an Extension
1. Open RegEdit from the Start menu and create the following Key
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome*URLBlocklist*
(You can also use HKEY_CURRENT_USER)
2. For each URL you want to block create a new String value, named by a number.
E.g
Name: 1
Value: https://*.ycombinator.com
3. Set the command line flag --install-url-blocklist-handlers (right click Chrome's shortcut, go to Properties, then to the Shortcut tab, and append the switch to the end of the Target value)
4. Restart Chrome. All ycombinator.com subdomains will now be blocked.
For more patterns info: https://www.chromium.org/administrators/url-blocklist-filter-format
For more command line switches: https://peter.sh/experiments/chromium-command-line-switches/
- graderjs 5y agoOops, didn't check it correctly. Wildcards don't work, so should be ycombinator.com as value to block all subdomains. Read https://www.chromium.org/administrators/url-blocklist-filter-format https://www.chromium.org/administrators/url-blocklist-filter... for more :p ;) xx;p