mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 06:41:42 +00:00
no filtrar información a direcciones externas
ni permitirles modificar la ventana de origen
This commit is contained in:
parent
bc5ac322f7
commit
6d3b2dac16
2 changed files with 7 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
|||
$(document).on('turbolinks:load', function() {
|
||||
$("a[href^='http://']").attr('target', '_blank');
|
||||
$("a[href^='https://']").attr('target', '_blank');
|
||||
$("a[href^='//']").attr('target', '_blank');
|
||||
});
|
||||
document.addEventListener('turbolinks:load', () => {
|
||||
document.querySelectorAll("a[href^='http://'],a[href^='https://'],a[href^='//']").forEach(a => {
|
||||
a.rel = "noopener"
|
||||
a.target = "_blank"
|
||||
})
|
||||
})
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
%meta{ name: 'color-scheme', content: 'light dark' }/
|
||||
%meta{ name: 'viewport',
|
||||
content: 'width=device-width, initial-scale=1.0' }/
|
||||
%meta{ name: 'referrer', content: 'origin' }/
|
||||
%meta{ name: 'referrer', content: 'same-origin' }/
|
||||
|
||||
%title Sutty
|
||||
|
||||
|
|
Loading…
Reference in a new issue