mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Add target="_blank" to embed titles
This commit is contained in:
parent
2e1f9d5fa9
commit
1477f99c2c
1 changed files with 2 additions and 2 deletions
|
@ -106,12 +106,12 @@ if (location.pathname.startsWith('/embed/')) {
|
||||||
player.overlay({
|
player.overlay({
|
||||||
overlays: [{
|
overlays: [{
|
||||||
start: 'loadstart',
|
start: 'loadstart',
|
||||||
content: '<h1><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
|
content: '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
|
||||||
end: 'playing',
|
end: 'playing',
|
||||||
align: 'top'
|
align: 'top'
|
||||||
}, {
|
}, {
|
||||||
start: 'pause',
|
start: 'pause',
|
||||||
content: '<h1><a href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
|
content: '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>',
|
||||||
end: 'playing',
|
end: 'playing',
|
||||||
align: 'top'
|
align: 'top'
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in a new issue