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

Youtube started block the script! Fix pls #386

Open
Polydick opened this issue Feb 20, 2024 · 5 comments
Open

Youtube started block the script! Fix pls #386

Polydick opened this issue Feb 20, 2024 · 5 comments

Comments

@Polydick
Copy link

Script version
What version is the script on eg 2.9 , 3.1 ect

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots or a video to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Fivel22
Copy link

Fivel22 commented Feb 24, 2024

// ==UserScript==
// @name Refresh YouTube Page After Loading
// @namespace http://tampermonkey.net/
// @Version 0.1
// @description Refreshes the YouTube page 2 seconds after it's fully loaded
// @author Your Name
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Function to refresh the page
function refreshPage() {
    location.reload();
}

// Wait for the page to fully load
window.addEventListener('load', function() {
    // Refresh the page 2 seconds after it's fully loaded
    setTimeout(refreshPage, 2000);
});

})();

@Fivel22
Copy link

Fivel22 commented Feb 24, 2024

This script solved the problem, just install it manually in Tapermonkey

@Fivel22
Copy link

Fivel22 commented Feb 24, 2024

Install the Tampermonkey extension for your browser.
Click on the Tampermonkey icon and choose "Create a new script."
Delete any existing code in the editor and paste the above script.
Save the script by pressing Ctrl + S or Cmd + S.
Refresh the YouTube page, and the script will automatically refresh the page 2 seconds after the video starts playing.

@Polydick
Copy link
Author

==UserScript== // Обновить страницу YouTube после загрузки // http://tampermonkey.net/ // 0.1 // Обновляет страницу YouTube через 2 секунды после ее полной загрузки // Ваше имя // https://www.youtube.com/* // нет // ==/ UserScript==

(function() { 'использовать строгий';

// Function to refresh the page
function refreshPage() {
    location.reload();
}

// Wait for the page to fully load
window.addEventListener('load', function() {
    // Refresh the page 2 seconds after it's fully loaded
    setTimeout(refreshPage, 2000);
});

})();

version 4.0
youtube shows the same warning if i use ublock
notebook pc
windows 10
microsoft edge

@Polydick
Copy link
Author

Install the Tampermonkey extension for your browser.
Click on the Tampermonkey icon and choose "Create a new script."
Delete any existing code in the editor and paste the above script.
Save the script by pressing Ctrl + S or Cmd + S.
Refresh the YouTube page, and the script will automatically refresh the page 2 seconds after the video starts playing.

I deleted previous script and put yours. Youtube padge just constantly refreshing and paying new video

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

No branches or pull requests

2 participants