diff --git a/.github/workflows/update_metadata.yml b/.github/workflows/update_metadata.yml index 66da946..fac55de 100644 --- a/.github/workflows/update_metadata.yml +++ b/.github/workflows/update_metadata.yml @@ -41,6 +41,9 @@ jobs: run: | awk 'BEGIN { header = 1 } /^[[:space:]]*$/ { header = 0 } header { print; next } /^[\[!]/ { print; next } { lines[NR] = $0 } END { n = asort(lines); for (i = 1; i <= n; i++) print lines[i] }' ${{ env.FILENAME }} > temp && mv temp ${{ env.FILENAME }} + - name: Install idn + run: sudo apt-get install -y idn + - name: Extract affected hosts run: | scripts/update_hosts.sh ${{ env.FILENAME }} diff --git a/alexanderadam.txt b/alexanderadam.txt index 05e2863..8190e26 100644 --- a/alexanderadam.txt +++ b/alexanderadam.txt @@ -6,7 +6,6 @@ ! Homepage: https://alexanderadam.github.io/adblock_list/ ! Last modified: 2024-10-26 ! Remove the bottom-sheet promoting the "See Reddit on mobile" -[Adblock Plus 2.0] ##.adsbygoogle *##.adthrive @@ -47,6 +46,7 @@ 9gag.com##[style="position: relative; z-index: 3; width: 640px; min-height: 202px; margin: 0px auto;"] 9monate.de##native-player 9to5mac.com##.post-social-mobile +[Adblock Plus 2.0] aargauerzeitung.ch##.regwall__wrapper::before aargauerzeitung.ch##.regwall__wrapper:style(margin-top: 0 !important) abbreviations.com##.ad-slot @@ -94,7 +94,6 @@ allaboutvision.com##.article__aside allaboutvision.com##.article__bottom allegro.pl##[data-analytics-tags*=advertising] analyticsinsight.net##.head-banner -andreagoulet.substack.com##.subscription-widget-wrap android-hilfe.de##[class^=billboard-ad] android-hilfe.de##[class^=content-ad-] androidauthority.com##aside:has-text(Deals) @@ -2641,6 +2640,16 @@ screenrant.com##.next-single screenrant.com##.related-single screenrant.com##.sentinel-article-nextArticle screenrant.com##main.w-content ~ div.w-content +scribd.com###sidebar > div:has([data-e2e="dismissible-ad-header-scribd_rightrail_adhesion"]) +scribd.com##.between_page_portal_root:has(span:has-text(Download to read ad-free)) +scribd.com##.blurred_page .image_layer .absimg:style(opacity: 1 !important) +scribd.com##.blurred_page .promo_div +scribd.com##.blurred_page .text_layer[style*="color: transparent"] [unselectable][style*="color: transparent"]:style(color: inherit !important; text-shadow: none !important) +scribd.com##.blurred_page .text_layer[style*="color: transparent"]:style(color: inherit !important) +scribd.com##.promo_div > div:style(backdrop-filter: none !important) +scribd.com##[data-testid="bottom-right-mrec"] +scribd.com##[data-testid="sticky-wrapper"]:has(span:has-text(Download to read ad-free)) +scribd.com##section:has(> .share_document_title) sdtimes.com##.col-md-4.dmbs-right sdtimes.com##.col-md-8.dmbs-main:style(width: 100% !important) sdtimes.com##.postsubscribe @@ -2810,6 +2819,7 @@ stuttgarter-zeitung.de##[data-layout="desktop"] [data-layout-desktop*="w8-"]:sty stuttgarter-zeitung.de##[data-lt="Abonnieren_pos_header"] stuttgarter-zeitung.de##p:has-text(Lesen Sie auch: ) stuttgarter-zeitung.de##p:has-text(Lesen Sie jetzt weiter: ) +substack.com##.subscription-widget-wrap sueddeutsche.de##.ad sueddeutsche.de##.ad-container sueddeutsche.de##.ad_iqadtile1 @@ -3010,7 +3020,6 @@ tgx.rs##[position="relative"][align="center"][style="margin-bottom:10px;"] tgx.rs##[position="relative"][style="margin-top:10px;"][align="center"] tgx.rs##[style="margin-bottom:10px;"]:has(> center > a) tgx.rs##[style="margin:5px;"]:has([href^="/hub.php"]) -tgx.rs##[style="margin:5px;"]:has([href^="/hub.php?"]) tgx.rs##[style="padding-left:7px;padding-right:7px;max-width:445px;"] > center tgx.rs##a[href^="/hub.php?a=h0tdeal"] tgx.rs##center:has(> div > a[href^="/hub.php?a="]) @@ -3029,7 +3038,6 @@ tgx.sb##[position="relative"][align="center"][style="margin-bottom:10px;"] tgx.sb##[position="relative"][style="margin-top:10px;"][align="center"] tgx.sb##[style="margin-bottom:10px;"]:has(> center > a) tgx.sb##[style="margin:5px;"]:has([href^="/hub.php"]) -tgx.sb##[style="margin:5px;"]:has([href^="/hub.php?"]) tgx.sb##[style="padding-left:7px;padding-right:7px;max-width:445px;"] > center tgx.sb##a[href^="/hub.php?a=h0tdeal"] tgx.sb##center:has(> div > a[href^="/hub.php?a="]) diff --git a/scripts/update_hosts.sh b/scripts/update_hosts.sh index 5c42e74..18b6977 100755 --- a/scripts/update_hosts.sh +++ b/scripts/update_hosts.sh @@ -33,13 +33,14 @@ save_domain_entry() { local rule_count=$2 local count=$3 local total_domains=$4 + local unicode_domain=$(idn --idna-to-unicode "$domain") local favicon_url="https://icons.duckduckgo.com/ip3/${domain}.ico" if wget -q --spider "$favicon_url"; then - echo "-  ${domain} (${rule_count})" >> "$HOSTS_FILE" + echo "-  ${unicode_domain} (${rule_count})" >> "$HOSTS_FILE" else - echo "- 🌐 ${domain} (${rule_count})" >> "$HOSTS_FILE" + echo "- 🌐 ${unicode_domain} (${rule_count})" >> "$HOSTS_FILE" fi - echo -e "🔍 \e[35m[\e[90m$(current_time)\e[35m] $count / $total_domains - \e[34m\e[4m${domain}\e[0m\e[0m" + echo -e "🔍 \e[35m[\e[90m$(current_time)\e[35m] $count / $total_domains - \e[34m\e[4m${unicode_domain}\e[0m\e[0m" } # Extract affected hosts and filter against blocklist