What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 21:30:19
cookie clicker hack
// change number of cookies (you can still click on things that look unselectable) Game.cookies = 100000000 // and auto clicker: function myFunction() {document.getElementById("bigCookie").click();document.getElementById("bigCookie").... Add solution -
Other 2022-01-30 01:25:48
session timeout minutes for in 1*60 *1000
var IDLE_TIMEOUT = 2700; //seconds 45min var _idleSecondsCounter = 0; document.onclick = function() { _idleSecondsCounter = 0; }; document.onmousemove = function() { _idleSecondsCounter = 0; }; document.onkeypress = function() { _idleSecondsCounte... Add solution -
Javascript 2022-01-27 22:41:23
javascript scroll auto
// If you don't know when data comes, you can set an interval: window.setInterval(function() { var elem = document.getElementById('yourDivWithScrollbar'); elem.scrollTop = elem.scrollHeight; }, 5000); // If you do know when data comes, you can do it ... Add solution -
Javascript 2021-11-17 11:01:14
scroll to top in javascript duration
scrollToPageTopWithSlowAniemation(){ var scrollToTop = window.setInterval(function() { var pos = window.pageYOffset; if ( pos > 0 ) { window.scrollTo( 0, pos - 20 ); // how far to scroll on each step } else { window.clearInte... Add solution -
Javascript 2021-11-11 02:06:17
javascript css autoscroll
// If you don't know when data comes, you can set an interval: window.setInterval(function() { var elem = document.getElementById('yourDivWithScrollbar'); elem.scrollTop = elem.scrollHeight; }, 5000); // If you do know when data comes, you can do it ... Add solution
Best helpers
Ranking is empty