Complete remake & Added redirect
This commit is contained in:
parent
ad69d761ad
commit
e0a1d57ad9
3 changed files with 44 additions and 36 deletions
7
Redirect.js
Normal file
7
Redirect.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
if (location.pathname.startsWith("/shorts/")) {
|
||||
const videoID = location.pathname.split("/")[2];
|
||||
if (videoID) {
|
||||
location.replace("https://www.youtube.com/watch?v=${videoID}");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue