mirror of
https://github.com/SinTan1729/userscripts.git
synced 2025-02-05 14:12:32 -06:00
fix: Remove share ID
This commit is contained in:
parent
56776d7e7c
commit
8500554a2d
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name YouTube2Piped
|
||||
// @namespace YouTube
|
||||
// @version 1.4.0
|
||||
// @version 1.4.1
|
||||
// @description Redirect YouTube to chosen Piped instance
|
||||
// @author SinTan
|
||||
// @match *://*.youtube.com/*
|
||||
|
@ -22,7 +22,7 @@
|
|||
// Edit instance url here to go to any instance of choice
|
||||
const instance = "https://piped.video";
|
||||
|
||||
const url = new URL(window.location.href.replace('/shorts/', '/watch?v='));
|
||||
const url = new URL(window.location.href.replace('/shorts/','/watch?v=').replace('?si=','&si='));
|
||||
let url_new = null;
|
||||
|
||||
let id = url.searchParams.get('v');
|
||||
|
@ -59,4 +59,4 @@
|
|||
window.location.replace(url_new);
|
||||
}
|
||||
}
|
||||
)();
|
||||
)();
|
||||
|
|
Loading…
Reference in a new issue