From 5b90c0d5a48ae7ae3e44d06299bd35090842758d Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 13 Sep 2023 19:06:20 +0000 Subject: [PATCH] add channelurlfixer --- src/libpoketube/init/pages-video.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 1419b0be..60f513c1 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -26,8 +26,7 @@ function linkify(text) { return text.replace(urlRegex, (url) => { // wrap the URL in an tag with the URL as the href attribute - return ` tags with href containing "/channel/" +const regex = / tags with the modified href attribute +const updatedDescription = text.replace(regex, '