feat: support Vivaldi
- Requires Vivaldi 3.3+ - Supported in both desktop and Android. - https://vivaldi.com/blog/vivaldi-introduces-break-mode/ - https://vivaldi.com/blog/vivaldi-on-android-configurable-address-bar-tab-bar/
This commit is contained in:
parent
c19f82d28c
commit
88f61b0fd9
41
README.md
41
README.md
|
@ -7,7 +7,8 @@ There are multiple formats available, refer to the appropriate section according
|
|||
- uBlock Origin (uBO) -> [URL-based](#url-based) section (recommended)
|
||||
- Pi-hole -> [Domain-based](#domain-based) or [Hosts-based](#hosts-based) section
|
||||
- AdGuard Home -> [Domain-based (AdGuard Home)](#domain-based-adguard-home) or [Hosts-based](#hosts-based) section
|
||||
- AdGuard browser extension -> [URL-based (AdGuard)](#url-based-adguard)
|
||||
- AdGuard (browser extension) -> [URL-based (AdGuard)](#url-based-adguard)
|
||||
- Vivaldi -> [URL-based (Vivaldi)](#url-based-vivaldi)
|
||||
- [Hosts](#hosts-based)
|
||||
- [Dnsmasq](#dnsmasq)
|
||||
- [BIND](#bind)
|
||||
|
@ -97,6 +98,44 @@ Lite version (**online** links only):
|
|||
|
||||
</details>
|
||||
|
||||
## URL-based (Vivaldi)
|
||||
|
||||
_Requires Vivaldi Desktop/Android 3.3+, blocking level must be at least "Block Trackers"_
|
||||
|
||||
Import the following URL into Vivaldi's **Tracker Blocking Sources** to subscribe (includes online and **offline** malicious websites):
|
||||
|
||||
- https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-vivaldi.txt
|
||||
|
||||
<details>
|
||||
<summary>Mirrors</summary>
|
||||
|
||||
- https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-vivaldi.txt
|
||||
- https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-vivaldi.txt
|
||||
- https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-vivaldi.txt
|
||||
- https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-vivaldi.txt
|
||||
- https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-vivaldi.txt
|
||||
- https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-vivaldi.txt
|
||||
|
||||
</details>
|
||||
|
||||
<br />
|
||||
|
||||
Lite version (**online** links only):
|
||||
|
||||
- https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-vivaldi-online.txt
|
||||
|
||||
<details>
|
||||
<summary>Mirrors</summary>
|
||||
|
||||
- https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-vivaldi-online.txt
|
||||
- https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-vivaldi-online.txt
|
||||
- https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-vivaldi-online.txt
|
||||
- https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-vivaldi-online.txt
|
||||
- https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-vivaldi-online.txt
|
||||
- https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-vivaldi-online.txt
|
||||
|
||||
</details>
|
||||
|
||||
## Domain-based
|
||||
|
||||
This blocklist includes domains and IP addresses.
|
||||
|
|
29
script.sh
29
script.sh
|
@ -116,7 +116,7 @@ FIFTH_LINE="! License: https://creativecommons.org/publicdomain/zero/1.0/"
|
|||
SIXTH_LINE="! Source: https://urlhaus.abuse.ch/api/"
|
||||
COMMENT_ABP="$FIRST_LINE\n$SECOND_LINE\n$THIRD_LINE\n$FOURTH_LINE\n$FIFTH_LINE\n$SIXTH_LINE"
|
||||
|
||||
# Compatibility with Adguard Home (#19, #22)
|
||||
# Adguard Home (#19, #22)
|
||||
cat "malware-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/^/g" > "malware-domains-adguard-home.txt"
|
||||
|
@ -146,7 +146,7 @@ sed '1 i\'"$COMMENT_ABP"'' | \
|
|||
sed "1s/Malicious/Online Malicious/" > "../urlhaus-filter-online.txt"
|
||||
|
||||
|
||||
# Adguard browser extension compatibility
|
||||
# Adguard browser extension
|
||||
cat "malware-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/\$all/g" > "malware-domains-adguard.txt"
|
||||
|
@ -167,6 +167,31 @@ sed "1s/Malicious/Online Malicious/" | \
|
|||
sed "1s/Blocklist/Blocklist (AdGuard)/" > "../urlhaus-filter-ag-online.txt"
|
||||
|
||||
|
||||
# Vivaldi
|
||||
cat "malware-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/\$document/g" > "malware-domains-vivaldi.txt"
|
||||
|
||||
cat "malware-domains-online.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/\$document/g" > "malware-domains-online-vivaldi.txt"
|
||||
|
||||
cat "malware-domains-vivaldi.txt" "malware-url-top-domains.txt" | \
|
||||
## to be removed
|
||||
sed "s/\$all$/\$document/g" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' | \
|
||||
sed "1s/Blocklist/Blocklist (Vivaldi)/" > "../urlhaus-filter-vivaldi.txt"
|
||||
|
||||
cat "malware-domains-online-vivaldi.txt" "malware-url-top-domains-online.txt" | \
|
||||
## to be removed
|
||||
sed "s/\$all$/\$document/g" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' | \
|
||||
sed "1s/Malicious/Online Malicious/" | \
|
||||
sed "1s/Blocklist/Blocklist (Vivaldi)/" > "../urlhaus-filter-vivaldi-online.txt"
|
||||
|
||||
|
||||
## Domains-only blocklist
|
||||
# awk + head is a workaround for sed prepend
|
||||
COMMENT=$(printf "$COMMENT_ABP" | sed "s/^!/#/g" | sed "1s/URL/Domains/" | awk '{printf "%s\\n", $0}' | head -c -2)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue