News for hackers. Stuff that matters.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by amsilprotag on Saturday August 15, 2015 @12:36AM (#10064331)
Free Obfuscated Source Satire (FOSS)

The JS from https://github.com/benzweig/jankyscroll:

<script>var jankyscroll=function(){"use strict";function n(){var n=Math.round(Math.random());return 1==n?-1:1}function o(){return(5Math.random()+8)/10}return function(r,t){function i(){a&&clearTimeout(a),a=setTimeout(function(){window.scrollBy(0,to()n())},400)}r=r||400,t=t||20;var e,a,c=function(){var i=Math.floor(window.scrollY/r);e!==i&&(window.scrollBy(0,to()*n()),e=i)};window.addEventListener("scroll",c,!1),window.addEventListener("resize",i,!1)}}();jankyscroll(170,100);</script>

Re:Jankyscroll – a JavaScript library that doesn't need to e... by chncdcksn on Saturday August 15, 2015 @01:10AM (#10064397)
Switch to the master branch. :) it confused me too.