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
58784a0446
commit
21f7554c85
21
README.md
21
README.md
|
@ -8,6 +8,7 @@ There are multiple formats available, refer to the appropriate section according
|
|||
- 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)
|
||||
- Vivaldi -> [URL-based (Vivaldi)](#url-based-vivaldi)
|
||||
- [Hosts](#hosts-based)
|
||||
- [Dnsmasq](#dnsmasq)
|
||||
- [BIND](#bind)
|
||||
|
@ -53,6 +54,26 @@ Import the following URL into AdGuard browser extension to subscribe:
|
|||
|
||||
</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:
|
||||
|
||||
- https://gitlab.com/curben/phishing-filter/raw/master/dist/phishing-filter-vivaldi.txt
|
||||
|
||||
<details>
|
||||
<summary>Mirrors</summary>
|
||||
|
||||
- https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-vivaldi.txt
|
||||
- https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-vivaldi.txt
|
||||
- https://raw.githubusercontent.com/curbengh/phishing-filter/master/dist/phishing-filter-vivaldi.txt
|
||||
- https://cdn.statically.io/gh/curbengh/phishing-filter/master/dist/phishing-filter-vivaldi.txt
|
||||
- https://gitcdn.xyz/repo/curbengh/phishing-filter/master/dist/phishing-filter-vivaldi.txt
|
||||
- https://cdn.jsdelivr.net/gh/curbengh/phishing-filter/dist/phishing-filter-vivaldi.txt
|
||||
|
||||
</details>
|
||||
|
||||
## Domain-based
|
||||
|
||||
This blocklist includes domains and IP addresses.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -110,13 +110,11 @@ FIFTH_LINE="! License: https://creativecommons.org/licenses/by-sa/4.0/"
|
|||
SIXTH_LINE="! Source: https://www.phishtank.com/ & https://openphish.com/"
|
||||
COMMENT_UBO="$FIRST_LINE\n$SECOND_LINE\n$THIRD_LINE\n$FOURTH_LINE\n$FIFTH_LINE\n$SIXTH_LINE"
|
||||
|
||||
# Compatibility with Adguard Home
|
||||
# curben/urlhaus-filter#19
|
||||
# Adguard Home
|
||||
cat "phishing-notop-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/^/g" > "phishing-domains-adguard-home.txt"
|
||||
|
||||
# curben/urlhaus-filter#22
|
||||
cat "phishing-domains-adguard-home.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_UBO"'' | \
|
||||
|
@ -127,7 +125,7 @@ sort | \
|
|||
sed '1 i\'"$COMMENT_UBO"'' > "../dist/phishing-filter.txt"
|
||||
|
||||
|
||||
# Adguard browser extension compatibility
|
||||
# Adguard browser extension
|
||||
cat "phishing-notop-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/\$all/g" > "phishing-domains-adguard.txt"
|
||||
|
@ -138,6 +136,19 @@ sed '1 i\'"$COMMENT_UBO"'' | \
|
|||
sed "1s/Blocklist/Blocklist (AdGuard)/" > "../dist/phishing-filter-ag.txt"
|
||||
|
||||
|
||||
# Vivaldi
|
||||
cat "phishing-notop-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/\$document/g" > "phishing-domains-vivaldi.txt"
|
||||
|
||||
cat "phishing-domains-vivaldi.txt" "phishing-url-top-domains.txt" | \
|
||||
## to be removed
|
||||
sed "s/\$all$/\$document/g" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_UBO"'' | \
|
||||
sed "1s/Blocklist/Blocklist (Vivaldi)/" > "../dist/phishing-filter-vivaldi.txt"
|
||||
|
||||
|
||||
## Domains-only blocklist
|
||||
# awk + head is a workaround for sed prepend
|
||||
COMMENT=$(printf "$COMMENT_UBO" | sed "s/^!/#/g" | sed "1s/URL/Domains/" | awk '{printf "%s\\n", $0}' | head -c -2)
|
||||
|
|
Loading…
Reference in New Issue