Decrypt: confirm opening links

pull/209/head
M66B 2 years ago
parent 6d7f36f2c8
commit 11c2b50977

@ -128,6 +128,17 @@
form.password.value = '';
message.innerHTML = clean;
var a = message.getElementsByTagName('a');
for (let i = 0; i < a.length; i++)
if (a[i].href) {
a[i].rel = 'noopener noreferrer';
a[i].setAttribute('target', '_blank');
a[i].onclick = function() {
return confirm('Go to ' + a[i].href + ' ?');
};
}
form.style.display = 'none';
content.style.display = 'block';
} catch (e) {

Loading…
Cancel
Save