mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 10:52:20 +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() {
|
function getVideoId() {
|
||||||
const urlObject = new URL(window.location.href);
|
const urlObject = new URL(window.location.href);
|
||||||
const pathname = urlObject.pathname;
|
const pathname = urlObject.pathname;
|
||||||
if (pathname.startsWith("/clips")) {
|
if (pathname.startsWith("/clip")) {
|
||||||
return document.querySelector("meta[itemprop='videoId']").content;
|
return document.querySelector("meta[itemprop='videoId']").content;
|
||||||
} else {
|
} else {
|
||||||
return urlObject.searchParams.get("v");
|
return urlObject.searchParams.get("v");
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ const NEUTRAL_STATE = "NEUTRAL_STATE";
|
|||||||
function getVideoId(url) {
|
function getVideoId(url) {
|
||||||
const urlObject = new URL(url);
|
const urlObject = new URL(url);
|
||||||
const pathname = urlObject.pathname;
|
const pathname = urlObject.pathname;
|
||||||
if (pathname.startsWith("/clips")) {
|
if (pathname.startsWith("/clip")) {
|
||||||
return document.querySelector("meta[itemprop='videoId']").content;
|
return document.querySelector("meta[itemprop='videoId']").content;
|
||||||
} else {
|
} else {
|
||||||
return urlObject.searchParams.get("v");
|
return urlObject.searchParams.get("v");
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ function setInitialState() {
|
|||||||
function getVideoId(url) {
|
function getVideoId(url) {
|
||||||
const urlObject = new URL(url);
|
const urlObject = new URL(url);
|
||||||
const pathname = urlObject.pathname;
|
const pathname = urlObject.pathname;
|
||||||
if (pathname.startsWith("/clips")) {
|
if (pathname.startsWith("/clip")) {
|
||||||
return document.querySelector("meta[itemprop='videoId']").content;
|
return document.querySelector("meta[itemprop='videoId']").content;
|
||||||
} else {
|
} else {
|
||||||
return urlObject.searchParams.get("v");
|
return urlObject.searchParams.get("v");
|
||||||
|
|||||||
Reference in new issue
Block a user