Skip to content

Commit

Permalink
Merge pull request #26 from alexanderadam/rules/add_scribd
Browse files Browse the repository at this point in the history
add scribd.com
  • Loading branch information
alexanderadam authored Oct 26, 2024
2 parents d877774 + 869856e commit 9f3b1d4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
16 changes: 12 additions & 4 deletions alexanderadam.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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="])
Expand All @@ -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="])
Expand Down
7 changes: 4 additions & 3 deletions scripts/update_hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "- <img src=\"${favicon_url}\" width=\"16\" />&nbsp;${domain} (${rule_count})" >> "$HOSTS_FILE"
echo "- <img src=\"${favicon_url}\" width=\"16\" />&nbsp;${unicode_domain} (${rule_count})" >> "$HOSTS_FILE"
else
echo "- 🌐&nbsp;${domain} (${rule_count})" >> "$HOSTS_FILE"
echo "- 🌐&nbsp;${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
Expand Down

0 comments on commit 9f3b1d4

Please sign in to comment.