Last active
August 30, 2025 17:24
-
-
Save Sebastian-105/b8774bc1179b5acc5b4d67b4d66e044d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// execute_script.js | |
| window.addEventListener("keyup", event => { | |
| if (event.ctrlKey && event.which === 192) { | |
| let js = prompt("js to execute:", "(function(){'use strict';const div=document.createElement('div'),styles=[{property:'backgroundColor',value:'#262626'},{property:'width',value:'80%'},{property:'height',value:'80%'},{property:'top',value:'-15%'},{property:'left',value:'50%'},{property:'transform',value:'translate(-50%, 0)'},{property:'position',value:'absolute'},{property:'padding',value:'15px'},{property:'color',value:'#fff'},{property:'display',value:'none'},{property:'borderRadius',value:'15px'},{property:'fontSize',value:'25px'},{property:'fontFamily',value:'Arial, Helvetica, sans-serif'},{property:'textAlign',value:'center'}];for(let i=0;i<styles.length;i++)div.style[styles[i].property]=styles[i].value;div.innerHTML=`<h3>Hello</h3><hr />`,document.body.appendChild(div),window.addEventListener('keyup',e=>{if(e.ctrlKey&&e.shiftKey&&e.which===80){div.style.display== 'none' ? div.style.display='block' : div.style.display='none';}});})();"); | |
| eval(js) | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment