Stop replacing YouTube hrefs for protocol links
This commit is contained in:
parent
f2330e4775
commit
f39579c6d2
|
@ -55,9 +55,8 @@ export default Vue.extend({
|
|||
descriptionText = descriptionText.replace(/&v.+?(?=")/g, '')
|
||||
descriptionText = descriptionText.replace(/&redirect-token.+?(?=")/g, '')
|
||||
descriptionText = descriptionText.replace(/&redir_token.+?(?=")/g, '')
|
||||
descriptionText = descriptionText.replace(/href="http(s)?:\/\/youtube\.com/g, 'href="freetube://https://youtube.com')
|
||||
descriptionText = descriptionText.replace(/href="\/watch/g, 'href="freetube://https://youtube.com')
|
||||
descriptionText = descriptionText.replace(/href="\/results\?search_query=/g, 'href="freetube://')
|
||||
descriptionText = descriptionText.replace(/href="\//g, 'href="https://www.youtube.com/')
|
||||
// TODO: Implement hashtag support
|
||||
descriptionText = descriptionText.replace(/href="\/hashtag\//g, 'href="freetube://')
|
||||
descriptionText = descriptionText.replace(/yt\.www\.watch\.player\.seekTo/g, 'changeDuration')
|
||||
|
||||
|
|
Loading…
Reference in New Issue