mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-22 22:33:01 +01:00
WormChickenWizard found typo: clip not clips for video id retrieval
This commit is contained in:
1 parent
1959c8ba23
commit
a303356d8c
3 files changed
+3
-3
No files matched your search
@@ -327,7 +327,7 @@ function setInitialState() {
|
||||
function getVideoId() {
|
||||
const urlObject = new URL(window.location.href);
|
||||
const pathname = urlObject.pathname;
|
||||
if (pathname.startsWith("/clips")) {
|
||||
if (pathname.startsWith("/clip")) {
|
||||
return document.querySelector("meta[itemprop='videoId']").content;
|
||||
} else {
|
||||
return urlObject.searchParams.get("v");
|
||||
|
||||
Reference in new issue
Block a user