change Youtube alternative
This commit is contained in:
parent
dba34c9162
commit
9b7a02424f
1
htmx.min.js
vendored
1
htmx.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -6,12 +6,12 @@ chrome.webNavigation.onBeforeNavigate.addListener(({ url, tabId, frameType }) =>
|
|||
const videoId = match[4] ?? match[6]
|
||||
chrome.tabs.update(
|
||||
tabId,
|
||||
{ url: `https://piped.video/watch?v=${videoId}` }
|
||||
{ url: `https://yewtu.be/watch?v=${videoId}` }
|
||||
)
|
||||
} else {
|
||||
chrome.tabs.update(
|
||||
tabId,
|
||||
{ url: `https://piped.video` }
|
||||
{ url: `https://yewtu.be` }
|
||||
)
|
||||
}
|
||||
}, {
|
||||
|
|
Loading…
Reference in a new issue