Page 1 of 1

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

Posted: Tue 05 Feb 2019 12:12 am
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,}$/))

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

Posted: Thu 14 Feb 2019 10:32 am
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

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

Posted: Mon 18 Feb 2019 9:48 am
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,}$/))

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

Posted: Mon 18 Feb 2019 10:11 am
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))


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

Posted: Sun 10 Mar 2019 11:22 pm
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)))

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

Posted: Wed 24 Apr 2019 7:07 pm
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)