Changed button mount point for yewtube

This commit is contained in:
Shiba 2021-12-19 01:58:45 +03:00
parent dd16ce1041
commit ba5beca60a
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@ export const SourcePlatfromSettings: Record<SourcePlatfromName, SourcePlatfromSe
"yewtu.be": {
hostnames: ['yewtu.be'],
htmlQueries: {
mountButtonBefore: '#embed-link',
mountButtonBefore: '#watch-on-youtube',
videoPlayer: '#player-container video'
}
},

View file

@ -85,6 +85,7 @@ async function findButtonMountPoint(): Promise<HTMLDivElement | void> {
const div = document.createElement('div');
div.style.display = 'flex';
div.style.paddingBottom = '.5em'
mountBefore.parentElement?.insertBefore(div, mountBefore)
mountPoint = div
}