Lint
This commit is contained in:
parent
cb2359f8b5
commit
6615b5a964
|
@ -65,20 +65,20 @@ const actions = {
|
||||||
const extractors = [
|
const extractors = [
|
||||||
// anything with /watch?v=
|
// anything with /watch?v=
|
||||||
function() {
|
function() {
|
||||||
if (urlObject.pathname === "/watch" && urlObject.searchParams.has("v")) {
|
if (urlObject.pathname === '/watch' && urlObject.searchParams.has('v')) {
|
||||||
return urlObject.searchParams.get("v")
|
return urlObject.searchParams.get('v')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// youtu.be
|
// youtu.be
|
||||||
function() {
|
function() {
|
||||||
if (urlObject.host === "youtu.be" && urlObject.pathname.match(/^\/[A-Za-z0-9_-]+$/)) {
|
if (urlObject.host === 'youtu.be' && urlObject.pathname.match(/^\/[A-Za-z0-9_-]+$/)) {
|
||||||
return urlObject.pathname.slice(1)
|
return urlObject.pathname.slice(1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// cloudtube
|
// cloudtube
|
||||||
function() {
|
function() {
|
||||||
if (urlObject.host.match(/^cadence\.(gq|moe)$/) && urlObject.pathname.match(/^\/cloudtube\/video\/[A-Za-z0-9_-]+$/)) {
|
if (urlObject.host.match(/^cadence\.(gq|moe)$/) && urlObject.pathname.match(/^\/cloudtube\/video\/[A-Za-z0-9_-]+$/)) {
|
||||||
return urlObject.pathname.slice("/cloudtube/video/".length)
|
return urlObject.pathname.slice('/cloudtube/video/'.length)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue