mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 14:16:22 +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() {
|
document.addEventListener('turbolinks:load', () => {
|
||||||
$("a[href^='http://']").attr('target', '_blank');
|
document.querySelectorAll("a[href^='http://'],a[href^='https://'],a[href^='//']").forEach(a => {
|
||||||
$("a[href^='https://']").attr('target', '_blank');
|
a.rel = "noopener"
|
||||||
$("a[href^='//']").attr('target', '_blank');
|
a.target = "_blank"
|
||||||
});
|
})
|
||||||
|
})
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
%meta{ name: 'color-scheme', content: 'light dark' }/
|
%meta{ name: 'color-scheme', content: 'light dark' }/
|
||||||
%meta{ name: 'viewport',
|
%meta{ name: 'viewport',
|
||||||
content: 'width=device-width, initial-scale=1.0' }/
|
content: 'width=device-width, initial-scale=1.0' }/
|
||||||
%meta{ name: 'referrer', content: 'origin' }/
|
%meta{ name: 'referrer', content: 'same-origin' }/
|
||||||
|
|
||||||
%title Sutty
|
%title Sutty
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue