Skip to content

Instantly share code, notes, and snippets.

@David-Lor
Last active April 15, 2020 16:26
Show Gist options
  • Save David-Lor/a62ed8e70fd4e71e954b47dbd0c16711 to your computer and use it in GitHub Desktop.
Save David-Lor/a62ed8e70fd4e71e954b47dbd0c16711 to your computer and use it in GitHub Desktop.
Redirect to Youtube Studio Classic
<!DOCTYPE html>
<!--
YOUTUBE STUDIO CLASSIC REDIRECTOR
Open this file on your web browser and it will redirect to the Classic Youtube Studio webpage.
Created by https://github.com/David-Lor
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Youtube Studio Classic Redirector</title>
</head>
<body>
<p>Redirecting to <a href="#" class="yt_url">Youtube Studio Classic</a>, click <a href="#" class="yt_url">here</a> if you are not redirected...</p>
<script>
const timestamp = new Date().getTime();
const url = "https://www.youtube.com/my_videos?o=U&ar=" + timestamp;
const hrefs = document.getElementsByClassName("yt_url");
Array.from(hrefs).forEach(element => {
element.setAttribute("href", url);
});
window.location.href = url;
</script>
</body>
</html>
<!DOCTYPE html>
<!--
YOUTUBE STUDIO CLASSIC UPLOAD REDIRECTOR
Open this file on your web browser and it will redirect to the Classic Youtube Studio Uploader webpage.
Created by https://github.com/David-Lor
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Youtube Studio Classic Uploader Redirector</title>
</head>
<body>
<p>Redirecting to <a href="#" class="yt_url">Youtube Studio Classic Uploader</a>, click <a href="#" class="yt_url">here</a> if you are not redirected...</p>
<script>
const timestamp = new Date().getTime();
const url = "https://www.youtube.com/upload?redirect_to_creator=true&fr=4&nv=1&ar=" + timestamp;
const hrefs = document.getElementsByClassName("yt_url");
Array.from(hrefs).forEach(element => {
element.setAttribute("href", url);
});
window.location.href = url;
</script>
</body>
</html>