From 4590c736c79d634f46f78b735aa96ef7e8107228 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 1 May 2023 15:09:19 +0200 Subject: [PATCH] Add channels and sites --- build.sh | 24 ++++++++++++++++++++++++ build/SITES-LIST | 4 ++++ build/YT-LIST | 24 ++++++++++++++++++++++++ sites | 1 + yt-channels | 6 ++++++ 5 files changed, 59 insertions(+) create mode 100755 build.sh create mode 100644 build/SITES-LIST create mode 100644 build/YT-LIST create mode 100644 sites create mode 100644 yt-channels diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f14e29c --- /dev/null +++ b/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -euo pipefail + +truncate -s 0 build/YT-LIST + +while read -r channel; do + cat <<-EOF >> build/YT-LIST +# Blocking youtube channel: ${channel} +www.youtube.com##a[href*="/${channel}"]:upward(5) +www.youtube.com##.yt-formatted-string.style-scope.yt-simple-endpoint[href="/${channel}"]:upward(8) + +EOF +done < yt-channels + +truncate -s 0 build/SITES-LIST + +while read -r hostname; do + cat <<-EOF >> build/SITES-LIST +# Blocking site ${hostname} from google search +www.google.*##.g:has(a[href*="${hostname}"]) +www.google.*##a[href*="${hostname}"]:upward(1) + +EOF +done < sites diff --git a/build/SITES-LIST b/build/SITES-LIST new file mode 100644 index 0000000..7688cb4 --- /dev/null +++ b/build/SITES-LIST @@ -0,0 +1,4 @@ +# Blocking site itslinuxfoss.com from google search +www.google.*##.g:has(a[href*="itslinuxfoss.com"]) +www.google.*##a[href*="itslinuxfoss.com"]:upward(1) + diff --git a/build/YT-LIST b/build/YT-LIST new file mode 100644 index 0000000..fe0e116 --- /dev/null +++ b/build/YT-LIST @@ -0,0 +1,24 @@ +# Blocking youtube channel: @F1vision +www.youtube.com##a[href*="/@F1vision"]:upward(5) +www.youtube.com##.yt-formatted-string.style-scope.yt-simple-endpoint[href="/@F1vision"]:upward(8) + +# Blocking youtube channel: @SunnyV2 +www.youtube.com##a[href*="/@SunnyV2"]:upward(5) +www.youtube.com##.yt-formatted-string.style-scope.yt-simple-endpoint[href="/@SunnyV2"]:upward(8) + +# Blocking youtube channel: @coreygiant +www.youtube.com##a[href*="/@coreygiant"]:upward(5) +www.youtube.com##.yt-formatted-string.style-scope.yt-simple-endpoint[href="/@coreygiant"]:upward(8) + +# Blocking youtube channel: @XList +www.youtube.com##a[href*="/@XList"]:upward(5) +www.youtube.com##.yt-formatted-string.style-scope.yt-simple-endpoint[href="/@XList"]:upward(8) + +# Blocking youtube channel: @BanijayDocumentaries +www.youtube.com##a[href*="/@BanijayDocumentaries"]:upward(5) +www.youtube.com##.yt-formatted-string.style-scope.yt-simple-endpoint[href="/@BanijayDocumentaries"]:upward(8) + +# Blocking youtube channel: @thefilmy2986 +www.youtube.com##a[href*="/@thefilmy2986"]:upward(5) +www.youtube.com##.yt-formatted-string.style-scope.yt-simple-endpoint[href="/@thefilmy2986"]:upward(8) + diff --git a/sites b/sites new file mode 100644 index 0000000..29222a0 --- /dev/null +++ b/sites @@ -0,0 +1 @@ +itslinuxfoss.com diff --git a/yt-channels b/yt-channels new file mode 100644 index 0000000..1e9f7e4 --- /dev/null +++ b/yt-channels @@ -0,0 +1,6 @@ +@F1vision +@SunnyV2 +@coreygiant +@XList +@BanijayDocumentaries +@thefilmy2986