Skip to content

Commit e783b57

Browse files
committed
fix: support live url
Now active on url starting with https://www.youtube.com/live/
1 parent 4ef014d commit e783b57

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

user script/yt-playlist-filter.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name YouTube Save to Playlist filter
33
// @namespace fred.vatin.yt-playlists-filter
4-
// @version 1.1.1
4+
// @version 1.1.2
55
// @description Tap P key to open the “save to playlist” menu where your can type to filter
66
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
77
// @author Fred Vatin, Flemming Steffensen
@@ -310,7 +310,10 @@
310310
* isPlayer('https://youtu.be/dQw4w9WgXcQ');
311311
*/
312312
function isPlayer(url) {
313-
if (url.startsWith("https://www.youtube.com/watch?v=")) {
313+
if (
314+
url.startsWith("https://www.youtube.com/watch?v=") ||
315+
url.startsWith("https://www.youtube.com/live/")
316+
) {
314317
console.log("✅ Player detected !");
315318
return true;
316319
} else {

0 commit comments

Comments
 (0)