Skip to content

youtube mainpage wont load problem solved #2842 #2860

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Gurukalyanakki
Copy link

I have modified the functions to improve their functionality and ensure proper usage, successfully resolving errors and enabling the main page to load correctly
background.js (5 additions, 0 deletions)
Added a safeguard to skip handling redundant tab connections for YouTube’s main page (https://www.youtube.com/) if it is already initialized.
Prevents unnecessary re-initialization, reducing potential resource usage and conflicts.

functions.js (8 additions, 1 deletion)
    Enhanced homepage detection: Added a safeguard to prevent infinite reloads on YouTube’s home page by checking if ImprovedTube.initializedHomePage is already set.
    Fixed a redundant function call: Ensured that ImprovedTube.playerOnPlay properly overrides HTMLMediaElement.prototype.play while avoiding unnecessary event listeners.

closes #2842

@ImprovedTube
Copy link
Member

hi and thanks! @Gurukalyanakki
did the bug happen to you too and did you test the fix?

Fixed

adding "t" ? please check again

@ImprovedTube ImprovedTube marked this pull request as draft May 12, 2025 09:46
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.

🐞youtube main page wont load successfully
2 participants