Skip to content

Instantly share code, notes, and snippets.

@BatuhanK
Created November 6, 2015 10:39
Show Gist options
  • Save BatuhanK/8e40ea895e2289ce892a to your computer and use it in GitHub Desktop.
Save BatuhanK/8e40ea895e2289ce892a to your computer and use it in GitHub Desktop.
!function(){function t(){var t=document.createEvent("Events");t.initEvent("click",!0,!1),document.body.dispatchEvent(t)}function e(){return Math.abs(getLockPosition()-getKeyPosition())%360<=15}var n=getLevel();setInterval(function(){e()&&t(),n!=getLevel()&&(n=getLevel(),setTimeout(function(){t()},1e3))},10),t()}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment