Create test.html

This commit is contained in:
Anthony Wang 2020-11-23 13:08:26 -06:00 committed by GitHub
parent 29f53cc16a
commit 930cf2f7cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
posts/test.html Normal file
View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<body>
Copy the text below and run it in your terminal for totally not evil things to happen.
</br>
<p>echo "not evil"</p>
<script>
document.addEventListener('copy', function(e){
console.log(e);
e.clipboardData.setData('text/plain', 'echo "evil"\r\n');
e.preventDefault(); // We want our data, not data from any selection, to be written to the clipboard
});
</script>
</body>
</html>