mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +00:00 
			
		
		
		
	HTML: Add Missing Noreferrers (#5368)
This commit is contained in:
		| @@ -183,7 +183,7 @@ var shareOptions = { | ||||
| }; | ||||
|  | ||||
| if (location.pathname.startsWith('/embed/')) { | ||||
|     var overlay_content = '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>'; | ||||
|     var overlay_content = '<h1><a rel="noopener noreferrer" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>'; | ||||
|     player.overlay({ | ||||
|         overlays: [ | ||||
|             { start: 'loadstart', content: overlay_content, end: 'playing', align: 'top'}, | ||||
| @@ -453,7 +453,7 @@ if (!video_data.params.listen && video_data.params.annotations) { | ||||
|             if (target === 'current') { | ||||
|                 location.href = path; | ||||
|             } else if (target === 'new') { | ||||
|                 open(path, '_blank'); | ||||
|                 open(path, '_blank', 'noopener,noreferrer'); | ||||
|             } | ||||
|         }); | ||||
|  | ||||
|   | ||||
| @@ -141,7 +141,7 @@ function get_reddit_comments() { | ||||
|                     </b> \ | ||||
|                 </p> \ | ||||
|                 <b> \ | ||||
|                     <a rel="noopener" target="_blank" href="https://reddit.com{permalink}">{redditPermalinkText}</a> \ | ||||
|                     <a rel="noopener noreferrer" target="_blank" href="https://reddit.com{permalink}">{redditPermalinkText}</a> \ | ||||
|                 </b> \ | ||||
|             </div> \ | ||||
|             <div>{contentHtml}</div> \ | ||||
|   | ||||
| @@ -34,7 +34,7 @@ module Invidious::Frontend::WatchPage | ||||
|       str << " class=\"pure-form pure-form-stacked\"" | ||||
|       str << " action='#{url}'" | ||||
|       str << " method='post'" | ||||
|       str << " rel='noopener'" | ||||
|       str << " rel='noopener noreferrer'" | ||||
|       str << " target='_blank'>" | ||||
|       str << '\n' | ||||
|  | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|  | ||||
|             <div class="pure-control-group"> | ||||
|                 <label for="import_youtube"> | ||||
|                     <a rel="noopener" target="_blank" href="https://github.com/iv-org/documentation/blob/master/docs/export-youtube-subscriptions.md"> | ||||
|                     <a rel="noopener noreferrer" target="_blank" href="https://github.com/iv-org/documentation/blob/master/docs/export-youtube-subscriptions.md"> | ||||
|                         <%= translate(locale, "Import YouTube subscriptions") %> | ||||
|                     </a> | ||||
|                 </label> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syeopite
					syeopite