zbluebugz / facebook-clean-my-feeds

Clean up Facebook feeds by hiding sponsored, suggestions and other posts based on keywords.
GNU General Public License v3.0
118 stars 12 forks source link

New type of sponsored ads in Video feed #34

Closed thiendt2k1 closed 1 year ago

thiendt2k1 commented 1 year ago

Hi, it's been a long time of no problem for me, and today i found that FB just give me a new type of sponsor, in video sponsor image I havent managed to capture the HTML code of the ads, but i will try again and give them as soon as i could, right now, all i can do is give you a headup about the issue. Also can you block the sponsor segment below the video with this code, i hit them more and more these day Code: https://anotepad.com/notes/6b4jncne pw: tyvm Edit: Other video posts marked sponsored still get blocked fine

zbluebugz commented 1 year ago

Hello again :-)

I haven't seen any video ads ... so it'll be somewhat harder for me to test. I'll need some assistance from you .

Could you provide me some additional details?

I'm assuming these appear in the Watch/Videos Feed.

Any particular method/behaviour that would trigger these ads to show? - short videos? long videos? videos of a particular topic/subject?

Which browser are you using? Which script manager? Which language/region do you have set in FB?

thiendt2k1 commented 1 year ago

Hi,
"I'm assuming these appear in the Watch/Videos Feed." => They appear, for nows, in Both the news feed, videos feed, havent test the live or reels or anything else

"Any particular method/behaviour that would trigger these ads to show? - short videos? long videos? videos of a particular topic/subject?" => Too little info at the moment for me to conclude these, but the video that i got range from 3 - 10 mins(5 video so far, longer video i havent got one to test), after i watch for 1 min straight(with or without interaction to the site), some with one, some even with 2 consecutive ads "Which browser are you using? Which script manager? Which language/region do you have set in FB?" => Chrome 114 stable, tampermonkey, Eng(US) Edit 1: My feed is still the current one, not update to the new layout of Facebook Edit 2: just check a 4 min reel in Video feed, no sign of ad

zbluebugz commented 1 year ago

I'm still not able to trigger a video ad.

Having a quick look at the supplied HTML code (received via email - the link in the OP is pin protected), I noticed the one of the tag's text says "Sponsored". Out of curiosity, what happens if you have "Sponsored" as one of the Video's text-filter keywords?

thiendt2k1 commented 1 year ago

Actually, that the code for the box below the video, when video is previewing ads, that box appear below And do you know any way to capture html changes in time? i try to capture the HTML for you but the element disappear right after the ad is complete, i dont think copying that element will help in this case :/ P/s: I am testing the sponsored keyword as we speak P/s 1: No use in this case

zbluebugz commented 1 year ago

Thanks for testing the keyword method.

Re if there is a way to grab the HTML, can you pause the video ad?

NB: Still not seeing video ads in any of my FB accounts.

thiendt2k1 commented 1 year ago

Hi, sorry they dont allow pausing, just moving forward(in the first), clicking it results in redirect to the ad, not pausing. And then there are the second ad :) the one after the first show a skippable button after 5s of showing Here a zip file of the HTML i save while the ad playing (Removed)

zbluebugz commented 1 year ago

Thanks - I've downloaded those files. You can drop them.

hiiro74 commented 1 year ago

I just encountered the sponsored ads on videos and checked the reddit for uBlock origin, this seems to work for them after I enabled it on My filters> facebook.com##+js(set, Object.prototype.scrubber, undefined) Hope this can help you a bit.

zbluebugz commented 1 year ago

Thanks for the tip - will check it out in uBO - if it works there, then I'll try and decipher how it is done.

thiendt2k1 commented 1 year ago

I just encountered the sponsored ads on videos and checked the reddit for uBlock origin, this seems to work for them after I enabled it on My filters> facebook.com##+js(set, Object.prototype.scrubber, undefined) Hope this can help you a bit.

Thanks, but i decided i will not go with adblocker on Facebook, i have too many filters there that it will always interfere with Facebook. Thanks for the tips though

zbluebugz commented 1 year ago

@thiendt2k1

Could you try this version 4.24-beta-v2 - it'll try and hide the ads that popup at the end of the current video.

How to tell it is working: 1) You don't see any ads. 2) The video (in the video feed page) doesn't automatically scroll up to the previous video after the current one has finished playing. 3) Use DevTools to find the attributes cmfrvad and cmfrvadt

NB: Version 4.24 is still underdevelopment and not yet been released to production.

thiendt2k1 commented 1 year ago

@thiendt2k1

Could you try this version 4.24-beta-v2 - it'll try and hide the ads that popup at the end of the current video.

How to tell it is working:

  1. You don't see any ads.
  2. The video (in the video feed page) doesn't automatically scroll up to the previous video after the current one has finished playing.
  3. Use DevTools to find the attributes cmfrvad and cmfrvadt

NB: Version 4.24 is still underdevelopment and not yet been released to production.

Ofc, will try it when i got home later today, my laptop don't have chrome which have ads to test your solution

thiendt2k1 commented 1 year ago

3. cmfrvadt

Update: Well, tested from yesterday on 3 to 5 different times, 1 No ads -> checked 2 no scroll up -> checked 3 dev tools -> i found none(of both) ?? Is this a issue, or just that fb temporary disable showing ads on my video feed :/ Update 2: Just after i write this, problem come :) no ads, but it stuck on the moment the ad show, no resume, no skip no nothing, like a thumbnail there, i can watch other video just fine, but cant continue on the blocked one

zbluebugz commented 1 year ago

At the moment, fb is starting to become more aggressive in showing me ads at the end of videos (in the Watch Videos Feed).

I have made a minor change to 4.24-beta-v2's code - fixing up a minor bug and also setting the [cmfrvad] attribute on the video's post's container - you might want to update your copy.

Yes, there's some issues videos having sponsored ads at the end of them. Currently, the 424bv2's code simply hides the sponsored video and associated text blocks. It requires more work to make things work better when the normal video has ended.

If you're watching the video in the Video stream and it won't show the replay button at the end of the video, right mouse click on the video and select Play/Show controls/Full screen/etc from the browser's pop-up menu (this only works if there was a sponsored video at the end but is hidden).

If you're watching the video in fb's "Enlarge" mode, then it goes bad at the end of the video. It tries to play the sponsored ad, but it borks badly ... This is something I'll be working on as well. You'll have to revert back to the Watch Videos Feed stream to rewatch it again.

Below is a screen-shot from DevTools showing an example of where the [cmfrvad] and [cmfrvadt] attributes will appear.

image

thiendt2k1 commented 1 year ago

i mean i cant find them, i tried ctrl F but none to be found, both cmfrvad and cmfrvadt image

Currently i have no ads, maybe they are giving me another patch at the moment :/ But last week, most of the ad come in between videos, like youtube, i play for 1 or 2 minutes, then they show me an ads, skip, continue to play, not after the video has ended :/ No idea what to do next, maybe when they are back, i will ping you again

zbluebugz commented 1 year ago

Ok, so there's two types of video ads ... mid-roll and end-roll. You're seeing mostly mid-rolls and I'm seeing end-rolls and no mid-rolls.

4.24-beta-v2 is coded to deal with end-roll video ads (still need further work in that area).

I'll continue working on the end-roll ads component and figure out how to trigger mid-roll ads and see if it is possible to do something about them.

hiiro74 commented 1 year ago

Sadly I tried to update to the current release version 4.24 and I am still seeing sponsored ads at the end of the video I play. I tried using uBlock filter I mentioned earlier and it works at making the sponsored ads disappear perhaps their code can help you figure out how they did it. here is a link to the resource. https://github.com/uBlockorigin/ublock-issues/wiki/Resources-Library#set-constantjs-

zbluebugz commented 1 year ago

Version 4.24 doesn't have any video-ad blocking code. v4.24 was released to fix up issues with the Stories component on the news feed.

I converted the uBO filter rule you've mentioned into JS code, and it borked the FB videos page. Will try and figure out how uBO is executing that piece of code.

Will keep looking at other ways to knock out those video-ads.

zbluebugz commented 1 year ago

Not able to figure out how uBO does it.

However, using fb-cmf with uBO works if the following rule is added to uBO: facebook.com##+js(set, Object.prototype.scrubber, undefined)

Version 4.25 has been released. It is now a bit more compatible with uBO (i.e. less conflicts/hiccups)

thiendt2k1 commented 1 year ago

Dont know if they be any help, but when i use Microsoft Edge, i find no video ad at all, how about you give it a try ? @zbluebugz