Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Rules for LinkedIn #194075

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion AnnoyancesFilter/Other/sections/self-promo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,34 @@ habr.com##ul.tm-article-list-block__list > li.tm-article-list-block__item:has(>
habr.com##.tm-article-card-list > li.tm-article-card-list__item:has(> div.tm-promo-post-link)
habr.com#?#section.tm-block_spacing-around:has(> header > div > h2:contains(Ближайшие события))
!
!
! linkedin.com
www.linkedin.com##span:has-text(Promoted):upward(8)
www.linkedin.com##span:has-text(Promoted)
www.linkedin.com##li:has-text(Promoted)
www.linkedin.com##span:has-text(Suggested):upward(8)
www.linkedin.com##span:has-text(Suggested)
www.linkedin.com##li:has-text(Suggested)
www.linkedin.com##span:has-text(Recommended):upward(8)
www.linkedin.com##span:has-text(Recommended)
www.linkedin.com##li:has-text(Recommended)
www.linkedin.com##span:has-text(orgeschlagen):upward(8)
www.linkedin.com##span:has-text(orgeschlagen)
www.linkedin.com##li:has-text(orgeschlagen)
www.linkedin.com##span:has-text(obs recommende):upward(8)
www.linkedin.com##span:has-text(obs recommende)
www.linkedin.com##span:has-text(esponsert):upward(8)
www.linkedin.com##span:has-text(esponsert)
www.linkedin.com##li:has-text(esponsert)
www.linkedin.com##li:has-text(obs recommende)
www.linkedin.com##.premium-upsell-link
www.linkedin.com##div.artdeco-card.overflow-hidden:has(a[class*="premium-upsell"])
www.linkedin.com##section.ad-banner-container
www.linkedin.com##div.mn-sales-navigator-upsell.artdeco-card
www.linkedin.com##section.artdeco-card:has(div[class^="jobs-home-upsell-"])
www.linkedin.com##div:has(a[class^="premium-upsell-link"])
www.linkedin.com##span.global-nav__secondary-premium-cta-text:upward(1)
Comment on lines +181 to +205
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use regexp, and :has instead of :upward. These rules has low performance.
Anlso need examples of ads - I can't reproduce.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the examples, just create a LinkedIn account (wait for 7 days or so)
Tested languages:
German
English

Feel free to apply the changes, I personally am not a professional AdGuard rules writer.

I use the aforementioned rules and I have no ads on LinkedIn anymore whatsoever

! END OF LinkedIn
!
! https://github.com/AdguardTeam/AdguardFilters/issues/193003
news.tennis365.net##.newsdetailcontent_body > b:has(> a[href^="https://bit.ly/"])
Expand Down Expand Up @@ -4388,4 +4416,4 @@ eiga.com##.header-pure-banner
! NOTE: Regular rules end ⬆️
! !SECTION: Self-promo - Regular rules
!
||healthy-vape.shop/user_data/packages/*/img/banner/bnr_debut_gray.png
||healthy-vape.shop/user_data/packages/*/img/banner/bnr_debut_gray.png
6 changes: 6 additions & 0 deletions GermanFilter/sections/specific.txt
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,12 @@ tuhlteim.de#?#div[id^="custom_html"]:has(> div > center .adsbygoogle)
tuhlteim.de#?#center:has(> .adsbygoogle)
jetzt.de##div[data-apos-widget="ads"]
jetzt.de##.adspirit_container
www.linkedin.com##span:has-text(orgeschlagen):upward(8)
www.linkedin.com##span:has-text(orgeschlagen)
www.linkedin.com##li:has-text(orgeschlagen)
www.linkedin.com##span:has-text(esponsert):upward(8)
www.linkedin.com##span:has-text(esponsert)
www.linkedin.com##li:has-text(esponsert)
Comment on lines +496 to +501
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

myboerse.bz##article[data-author="PowerUploader"]
myboerse.bz##.p-body-inner > center
golem.de#?#li:has(> a[href*="golem.de/news/anzeige"])
Expand Down
8 changes: 8 additions & 0 deletions TrackParamFilter/sections/specific.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1778,11 +1778,19 @@ $removeparam=igshid,domain=instagram.com|threads.net
||linkedin.com^$removeparam=original_referer
||linkedin.com^$removeparam=refId
||linkedin.com^$removeparam=trackingId
! Remove user survey back to LinkedIn button tracking parameter
||linkedin.com^removeparam=trk
Comment on lines +1781 to +1782
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need steps to reproduce.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is happening when you click on an ad that asks you how you'd like to use premium.

There are tracking parameters there and also upon quitting the survey prematurely

! https://github.com/AdguardTeam/AdguardFilters/issues/88502
||linkedin.com/authwall?$removeparam=trkInfo
||linkedin.com/authwall?$removeparam=originalReferer
! https://github.com/AdguardTeam/AdguardFilters/issues/110477
||linkedin.com^$removeparam=/^trk/
! Premium upsell survey tracking
||linkedin.com/premium/survey^$removeparam=isSS
||linkedin.com/premium/survey^$removeparam=referenceId
||linkedin.com/premium/survey^$removeparam=upsellOrderOrigin
||linkedin.com/premium/survey^$removeparam=destRedirectURL
Comment on lines +1788 to +1792
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need steps to reproduce.


! https://github.com/AdguardTeam/AdguardFilters/issues/69722
||digikey.com^$removeparam=/^utm_cid/
!
Expand Down
Loading