Category Archives: Gist

Website Alert Toast with JavaScript/jQuery

There’s a really simple method to show toasts in Android and other mobile apps but you can do the same for your website beautifully. From the below codes, you can either go with JavaScript or jQuery, as convenient. JavaScript function toast(msg,status){ var body = document.body, snack = document.createElement('div'); snack.innerHTML =...

Webpage Auto Scroll from Browser Console

Automate scroll through huge web pages with a small JavaScript snippet from your browser console. I hope it’s helpful for someone.Right click > Inspect > Console Tab > Paste the code (function() { var intervalObj = null; var retry = 0; var clickHandler = function() { console.log("Clicked; stopping autoscroll"); clearInterval(intervalObj); document.body.removeEventListener("click",...