Skip to content
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

Removed createElement; use HTMLVideoElement.prototype instead #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyfung1031
Copy link

@alextrv This script shall be maintained even in 2023. YouTube still wants my Macbook M1 Pro using WiFi plays 360p instead of 1080p.

According to Youtube's desktop_polymer.js, some coding shall be updated as the very old browsers are no longer supported.

For example,
document.createElement('video').__proto__ shall change to HTMLVideoElement.prototype

This avoid unnecessary element creation (although not attached to the document), and also avoid .bind() which create another instance of function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant