Forked from markasoftware/A bookmarklet which makes scrolling great again!
Created
August 31, 2022 17:56
-
-
Save Shujaagideon/71cc5bdab09f08c0ec72207d844f8d50 to your computer and use it in GitHub Desktop.
Revisions
-
markasoftware created this gist
Apr 14, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ javascript:void((()=>{g=+prompt('Gravity Level:', '2.0');j=+prompt('Jumping force:', '2.0');k=0;v=0;u=0;function b(){scrollBy(0,v);if(k){v-=j}else{v+=g};requestAnimationFrame(b)};b();window.onkeydown=e=>e.keyCode===32?k=1:0;window.onkeyup=e=>e.keyCode===32?k=0:0})());