Facebook sponsored posts are back (22-APR-2019)

Post Reply
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Facebook sponsored posts are back (22-APR-2019)

Post by tong »

2 วันมานี้ facebook แก้ไขโดยการแยกตัวอักษร S p o n s o r e d
ถ้าใครใช้ uBlock Origin สามารถใช้โค้ดนี้ได้

Code: Select all

facebook.com##div[id^="hyperfeed_story_id_"]:has(span:has-text(/^S$/)):has(span:has-text(/^p$/)):has(span:has-text(/^o$/)):has(span:has-text(/^n$/)):has(span:has-text(/^s$/)):has(span:has-text(/^o$/)):has(span:has-text(/^r$/)):has(span:has-text(/^e$/)):has(span:has-text(/^d$/))
I had to make this a little more aggressive. Now they put several spans and divs containing various substrings of "Sponsored" as children of 1 div. Some of them are reordered, overlapping, or invisible.

Code: Select all

facebook.com##div[id^="hyperfeed_story_id_"]:has(div:has-text(/^[Sponsored]{9,}$/))
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Re: Facebook sponsored posts are back (1-FEB-2019)

Post by tong »

I also using Social Fixer.

Code: Select all

Page Stories You May Like
Top Stories in Your Groups
Top Posts in Your Groups
Active This Week
Featured For You
Suggested Post
Share Videos from Related Pages
Buy and Sell Groups Near You
Only you can see this preview until you run this ad
Your Memories on Facebook
Friend Requests
People You May Know
Shared Memories
Similar to Posts You've Interacted With
You can convert to use with uBlock Origin as the following codes:

Code: Select all

facebook.com##div[id^="hyperfeed_story_id_"]:has(div:has-text(/^Similar to Posts You've Interacted With$/))
facebook.com##div[id^="hyperfeed_story_id_"]:has(span:has-text(/^People You May Know$/))
snap3480.png
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Re: Facebook sponsored posts are back (17-FEB-2019)

Post by tong »

17 FEB 2019 Facebook "sponsored" changed to <s> tag.

Code: Select all

facebook.com##div[id^="hyperfeed_story_id_"]:has(s:has-text(/^[Sponsored]{9,}$/))
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Re: Facebook sponsored posts are back (17-FEB-2019)

Post by tong »

My personal examples to learn codes

Code: Select all

!-- https://adblockplus.org/filter-cheatsheet
!-- https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters
!-- ###advert matches the element with the unique id "advert".
!-- ##.advert matches elements with the class "advert".
!-- ##div[title*="adv"] will hide all div elements with title attribute containing the string "adv". 
!-- ##div[title^="adv"] will hide all div elements with title attribute starting with "adv".
!-- ##div[title$="ert"] will hide all div elements with title attribute ending with "ert". 
!-- ##div[width="80%"][bgcolor="white"] multiple conditions.
!-- > enclosed within elements.
!-- + immediately preceded by elements.

Code: Select all


facebook.com##[id^="hyperfeed_story_id_"]:has([data-testid="story-subtitle"] [role="link"])

facebook.com##div[id^="hyperfeed_story_id_"]:if(div > span:matches-css(display:none):has(abbr .timestampContent))

facebook.com##div[id^="hyperfeed_story_id_"]:if(div[id*="feed_subtitle_"] > span:if-not(span>div a[role="link"]:matches-css(display: none))

facebook.com,facebookcorewwwi.onion##div[id^="hyperfeed_story_id_"]:if(div[id*="subtitle"] > span:matches-css(display:none):has(abbr .timestampContent))

facebook.com##div[id^="hyperfeed_story_id_"]:if(div[id*="feed"] > span:if-not(span>div a[role="link"]:matches-css(display: none)) 

facebook.com##[id^="hyperfeed_story_"]:if(.userContentWrapper div[id^="feed_subtitle_"] a:if(span:has-text(Sp):has-text(on):has-text(so):has-text(red)):matches-css(display: inline))

tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Re: Facebook sponsored posts are back (17-FEB-2019)

Post by tong »

6 MAR 2019

Code: Select all

facebook.com##div[id^="hyperfeed_story_id_"]:has(div[data-testid="story-subtitle"]:has(span[data-ft]:has(span > span)))
tong
Site Admin
Posts: 2386
Joined: Fri 01 May 2009 8:55 pm

Re: Facebook sponsored posts are back (17-FEB-2019)

Post by tong »

22-APR-2019

Code: Select all

facebook.com##div[id^="hyperfeed_story_id_"]:has(div[data-testid$="story-subtilte"] > span[data-ft] > span > span)
Post Reply