Alex313031 / thorium

Chromium fork named after radioactive element No. 90. Windows and MacOS/Raspi/Android/Special builds are in different repositories, links are towards the top of the README.md.
https://thorium.rocks/
BSD 3-Clause "New" or "Revised" License
4.66k stars 143 forks source link

The only way to block youtube ads following the probable decision to ban ad blockers on youtube : Compile special version from source code to disable MSE media source extension #190

Closed trimechee closed 3 days ago

trimechee commented 1 year ago

Hello, I could not full buffer to the end video streaming in firefox browser and many people were in my case despite putting the values:

media.cache_readahead_limit 9999 media.cache_readahead_limit.cellular 9999

media.cache_resume_threshold 9999 media.cache_resume_threshold.cellular 9999

and alhamdoulilAllah, after many attempts and trials, I was able to find the solution by putting the values previously mentioned and at the same time putting this value that disables MSE media source extension :

media.mediasource.enabled FALSE

and so I was able to full buffer to the end several streaming videos and have a smooth and jerk-free playback on several streaming platforms although my internet connection can become weak when many members of my family connect to it and I have no no longer need to have an expensive internet subscription with a higher speed alhadoulilAllah to watch the videos in high HD and 1080p and 4K and I think my discovery is one of the greatest discoveries of the century lol!

for example I can watch videos from the "uqload" platform, ok.ru/video and many other sites with full buffer to the end like on this site!

https://french-anime.com/exclue/1061-bleach-sennen-kessen-hen-vostfrrrr.html

and so in sha Allah, I would also like full buffer in our beloved Thorium browser but chromium has removed the flag which allows to disable the MSE media source extension since version 52 if my memory is good....

so my idea for the magnificent Mr @Alex313031 is that it compiles at source a special version of our beloved Thorium browser with media source extension disabled at source by checking if there are parameters in the source code like in firefox media.cache_readahead_limit and media.cache_resume_threshold that 'we can change their values....and check if it works on this site by exp with the uqload platform by checking the network activity in the task manager:

https://french-anime.com/animes-vf/1218-dead-mount-death-play.html

and so we can remedy the problem of the absence of the flag in chrome allowing to deactivate MSE media source extension and therefore please Mr @Alex313031 , we hope there would be a second special or experimental version of Thorium browserr named "Thorium without MSE with media source plugin disabled"

we know that compiling a new version of a web browser takes hours and it's very complicated and complex and we will be very grateful to Mr @Alex313031 if he gives us this rare exceptional gift unique in the world because I think it's worth it and it saves a lot of money, because it becomes difficult to download videos from streaming sites because the videos are well protected, and above all we can, for example, using the amison's wifi full buffer several episodes of our tv series favorite in our smartphone or laptop then we can watch our tv series episodes without internet when we go outside the house and without needing an expensive 4G or 5G plan....and perhaps it will be good idea to integrate into this special version of our beloved Thorium browser the ad blocking method at the source of Uazo:

(Beta WIP) Integrated Adblock Plus (ABP) - Privacy enhanced, telemetry removed - Uazo :

https://gitlab.com/eyeo/adblockplus/chromium-sdk/-/tree/fd9f48a3a69798017abf68b61852957b16f3afb1/

Thank you so much !

EDIT : I find some documentation about MSE where it seems we can specify the size of the network cache :

https://source.chromium.org/chromium/chromium/src/+/main:media/base/media_switches.cc?q=kMSEAudioBufferSizeLimitMb&ss=chromium

https://source.chromium.org/chromium/chromium/src/+/main:media/base/media_switches.cc?q=kMSEVideoBufferSizeLimitMb&ss=chromium

and here is some technical documentation about MSE Media Source API :

https://www.w3.org/TR/media-source-2/

https://web.dev/media-mse-basics/

https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API

EDIT : press article said google would apparently think about deleting the google account of those who use ad blockers on youtube

YouTube tests new ways to stop ad blockers: what to know and expect

https://adguard.com/en/blog/youtube-ad-blocking-ban.html

so disable MSE seems to be the only solution to block youtube ads....i test in firefox with MSE disabled and i don't see youtube ads even without ad blocker

gz83 commented 1 year ago

Thank you for your suggestions, we will bring more useful functions to Thorium browser within our ability

@trimechee

trimechee commented 1 year ago

Great ! Thank you @gz83 :)

trimechee commented 1 year ago

@gz83 I have tried with mse enbaled and disbaled in pale moon and basilisk browser, with mse enable and disabled, i can full buffer the video from uqload, ok.ru, sibnet....but other site only load 30 seconds. ...so we hope that the great Thorium Browser team will do its own internal test, a rare test unique in the world that no chromium browser can do for example on this streamig site:

https://french-anime.com/animes-vf/

if some platforms like uqload full buffer, then it might be worth doing this special version if you have the ability and generosity and we know it's very complex difficult, and if no platform full buffer , then it's logical there is no longer any point in making a special version with MSE disabled, thank you in advance :)

trimechee commented 1 year ago

@gz83 Please I have a question: how can these options may help to have smooth playback even on a weak connection compared to another web browsers that does not have these options enabled? and are these options enabled by default in our beloved Thorium Browser ?

Experimental [MPEG-DASH]

HEVC/H.265 support on Linux and Windows.

trimechee commented 1 year ago

Hello: i tested by my self in firefox, disable MSE make possible to block youutbe ads :

the press said google would apparently think about deleting the google account of those who use ad blockers on youtube .....so re -enable MSE flag like in chrome 50 and disable MSE flag seems to be the ultimate solution to watch youtube video without ads, youtube is the global platform for watching documentaries, replays, entertainment, podcasts, radio, pranks, news .... so youtube is one of the most important site in the earth is youtube which is becoming an important site in our lives hence my request to deactivate MSE, we can for example full buffer a 3 hour video in our smartphone and watch it on the bus, metro .... without the need for expensive mobile internet or video downloader often paying or unable to download video on streaming sites:

YouTube tests new ways to stop ad blockers: what to know and expect

https://adguard.com/en/blog/youtube-ad-blocking-ban.html

so in chromium, we would like to test but the flag has been deleted so i can't test, i added these command lines :

--mse-audio-buffer-size-limit-mb

--mse-video-buffer-size-limit-mb

https://peter.sh/experiments/chromium-command-line-switches/

my request saves expensive 5G/4G plans, because we can by manipulating MSE full buffer videos streaming in smartphone on many streaming paltforms and we can watch them offline without 4G and 5G mobile plan, thank you !