LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2023, 01:59 AM   #1
aristosv
Member
 
Registered: Dec 2014
Posts: 263

Rep: Reputation: 3
bypass youtube cookie screen


I am using the following command to show a full screen YouTube video on a remote screen.

Code:
xinit /usr/bin/chromium \
                    --aggressive-cache-discard \
                    -no-sandbox \
                    --enable-features=OverlayScrollbar \
                    --window-size=1920,1080 \
                    --start-fullscreen \
                    --kiosk \
                    --incognito \
                    --noerrdialogs \
                    --no-first-run \
                    --fast \
                    --fast-start \
                    --disable-infobars \
                    'https://www.youtube.com/live/amzSyx8Alzk?si=vhlD1RqKGBvSQ7XH' -- -nocursor"
The problem is that YouTube wants consent for cookies (see attached)

How can I bypass this screen? Keep in mind this is a headless remote computer.
Attached Thumbnails
Click image for larger version

Name:	yt.png
Views:	6
Size:	76.4 KB
ID:	42219  
 
Old 12-12-2023, 02:57 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 932

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Install a good adblocker, they usually can block not just ads but all sorts of junk including consent pages. ublock origin definitely does - no consent page on youtube with freshly cleared cookies. No ads either :)
 
Old 12-12-2023, 06:55 AM   #3
aristosv
Member
 
Registered: Dec 2014
Posts: 263

Original Poster
Rep: Reputation: 3
eventually, this did it. No ad blocker needed

Code:
xinit /usr/bin/chromium \
          -no-sandbox \
          --enable-features=OverlayScrollbar \
          --window-size=1440,900 \
          --start-fullscreen \
          --kiosk \
          --noerrdialogs \
          --no-first-run \
          --fast \
          --fast-start \
          --disable-infobars \
          'https://www.youtube.com/embed/vF2C7kANUXY?&autoplay=1&mute=1&loop=1&playlist=vF2C7kANUXY' -- -nocursor
 
Old 12-12-2023, 04:05 PM   #4
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by aristosv View Post
Keep in mind this is a headless remote computer.
Even using the tab and enter buttons to select 'reject' won't work on remote computer?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Cast YouTube Videos From Your Phone To Raspberry Pi Using YouTube On TV (youtube.com/tv) LXer Syndicated Linux News 0 04-16-2021 01:30 AM
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 when trying x11 forwarding Sean1988 Linux - Newbie 2 05-12-2014 05:35 AM
LXer: Youtube Downloader (youtube-dl) Helper Script LXer Syndicated Linux News 0 09-28-2013 01:50 PM
LXer: Search YouTube videos on Ubuntu with the YouTube Lens LXer Syndicated Linux News 0 12-30-2011 08:40 PM
LXer: Youtube-dl - Download videos from Youtube in openSUSE LXer Syndicated Linux News 1 08-14-2008 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration