-
Notifications
You must be signed in to change notification settings - Fork 0
Add YouTube cookies support for bot detection bypass #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: maple-underscore <102273486+maple-underscore@users.noreply.github.com>
Co-authored-by: maple-underscore <102273486+maple-underscore@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for providing YouTube cookies to bypass bot detection when downloading videos. Users can paste cookies in Netscape format via a new textarea field, with a convenient button linking to the recommended cookie extraction extension.
Key Changes:
- Added UI textarea for cookie input with extension link and usage instructions
- Implemented server-side temporary file handling for cookies passed from the frontend
- Modified payload structure to support
cookies_contentfield
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot apply changes based on the comments in this thread |
Co-authored-by: maple-underscore <102273486+maple-underscore@users.noreply.github.com>
Applied all review feedback in commit 9735f3e:
|
|
@copilot If there is a way to do this, can you implement a button that directly grabs cookies from the website page? |
Unfortunately, this isn't possible due to browser security restrictions. JavaScript running on a webpage cannot access cookies from other domains (like youtube.com) - this is enforced by the Same-Origin Policy to prevent cross-site scripting attacks. The options for grabbing YouTube cookies are:
The server-side already supports |
|
@copilot Yes, then add a checkbox to use cookies from the chrome browser on the server machine. |
Co-authored-by: maple-underscore <102273486+maple-underscore@users.noreply.github.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |


Adds options to provide YouTube cookies when downloading to bypass bot detection, with multiple methods for obtaining cookies.
Changes Summary
<ol>list markup for accessibility with screen readers--cookies-from-browserfeatureos.path.exists()check and error loggingScreenshot
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.