perf: Add rel="noopener" on external links

See https://developers.google.com/web/tools/lighthouse/audits/noopener
This commit is contained in:
Pierre Rudloff 2018-01-16 13:10:51 +01:00
parent 488cdcd780
commit bd00fd76ec
2 changed files with 4 additions and 4 deletions

View File

@ -7,11 +7,11 @@
<a rel="author" target="blank"
href="http://olivierhaquette.fr">Olivier Haquette</a>
&middot;
<a target="_blank"
<a rel="noopener" target="_blank"
href="https://www.facebook.com/pages/AllTube-Download/571380966249415"
title="{t}AllTube Download on Facebook{/t}">{t}Like us on Facebook{/t}</a>
&middot;
<a href="https://github.com/Rudloff/alltube">{t}Get the code{/t}</a>
<a rel="noopener" target="_blank" href="https://github.com/Rudloff/alltube">{t}Get the code{/t}</a>
&middot;
{t}Based on{/t} <a href="http://rg3.github.io/youtube-dl/">youtube-dl</a>
</div>

View File

@ -18,9 +18,9 @@
</div>
{/if}
<div class="social">
<a class="twitter" href="http://twitter.com/home?status={base_url|urlencode}" title="{t}Share on Twitter{/t}" target="_blank">
<a class="twitter" rel="noopener" href="http://twitter.com/home?status={base_url|urlencode}" title="{t}Share on Twitter{/t}" target="_blank">
<div class="twittermask"></div></a>
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u={base_url|urlencode}" title="{t}Share on Facebook{/t}" target="_blank"><div class="facebookmask"></div></a>
<a class="facebook" rel="noopener" href="https://www.facebook.com/sharer/sharer.php?u={base_url|urlencode}" title="{t}Share on Facebook{/t}" target="_blank"><div class="facebookmask"></div></a>
</div>
</header>
<div class="wrapper">