build links for shorts videos

This commit is contained in:
simon 2023-01-12 22:54:18 +07:00
parent 8b71d15036
commit 55ef05cc2a

View File

@ -214,7 +214,7 @@ function getThubnailContainers() {
function buildVideoButton(thumbContainer) { function buildVideoButton(thumbContainer) {
let thumbLink = thumbContainer?.href; let thumbLink = thumbContainer?.href;
if (!thumbLink) return; if (!thumbLink) return;
if (thumbLink.includes('list=') || thumbLink.includes('/shorts/')) return; if (thumbLink.includes('list=')) return;
let ggp = thumbContainer?.parentElement?.parentElement; let ggp = thumbContainer?.parentElement?.parentElement;
if (ggp?.id !== 'dismissible') return; if (ggp?.id !== 'dismissible') return;