Skip to content

Instantly share code, notes, and snippets.

@malaya-zemlya
Last active May 3, 2019 19:15
Show Gist options
  • Save malaya-zemlya/79c24048dd401ba9eed2c83d82067345 to your computer and use it in GitHub Desktop.
Save malaya-zemlya/79c24048dd401ba9eed2c83d82067345 to your computer and use it in GitHub Desktop.
DEFAULT_DELAY 300
REM Allow time for device to be recognized and cancel whatever was going on
DELAY 500
ESC
REM open spotlight
GUI SPACE
STRING terminal
ENTER
REM Allow time for terminal to open
DELAY 200
REM Open new Terminal Tab
GUI t
REM open the browser and lock the computer after 15 seconds
STRING open https://lockyourcomputer.squarespace.com/ & (sleep 15; pmset displaysleepnow)
ENTER
DELAY 1500
REM go to the nav bar
GUI l
REM full screen with javascript api
STRING data:text/html,<style>*{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;padding:0;border:0;width:100%;height:100%}</style><body onkeydown=this.requestFullScreen?this.requestFullScreen():this.mozRequestFullScreen?this.mozRequestFullScreen():this.webkitRequestFullScreen()><iframe width=100% height=100% src=http://lockyourcomputer.squarespace.com></iframe></body>
ENTER
DELAY 200
REM popup blocker bypass
ENTER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment