mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
Changed button mount point for yewtube
This commit is contained in:
parent
dd16ce1041
commit
ba5beca60a
2 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,7 @@ export const SourcePlatfromSettings: Record<SourcePlatfromName, SourcePlatfromSe
|
||||||
"yewtu.be": {
|
"yewtu.be": {
|
||||||
hostnames: ['yewtu.be'],
|
hostnames: ['yewtu.be'],
|
||||||
htmlQueries: {
|
htmlQueries: {
|
||||||
mountButtonBefore: '#embed-link',
|
mountButtonBefore: '#watch-on-youtube',
|
||||||
videoPlayer: '#player-container video'
|
videoPlayer: '#player-container video'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -85,6 +85,7 @@ async function findButtonMountPoint(): Promise<HTMLDivElement | void> {
|
||||||
|
|
||||||
const div = document.createElement('div');
|
const div = document.createElement('div');
|
||||||
div.style.display = 'flex';
|
div.style.display = 'flex';
|
||||||
|
div.style.paddingBottom = '.5em'
|
||||||
mountBefore.parentElement?.insertBefore(div, mountBefore)
|
mountBefore.parentElement?.insertBefore(div, mountBefore)
|
||||||
mountPoint = div
|
mountPoint = div
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue