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

// ==UserScript== #387

Open
Bugto11 opened this issue Feb 26, 2024 · 0 comments
Open

// ==UserScript== #387

Bugto11 opened this issue Feb 26, 2024 · 0 comments

Comments

@Bugto11
Copy link

Bugto11 commented Feb 26, 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);
});

})();

Originally posted by @Fivel22 in #386 (comment)

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

1 participant