change Youtube alternative

This commit is contained in:
Filipe Medeiros 2024-08-14 11:34:35 +02:00
parent dba34c9162
commit 9b7a02424f
Signed by: filipe
GPG key ID: 9533BD5467CC1E78
2 changed files with 2 additions and 3 deletions

1
htmx.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -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` }
)
}
}, {