CategoryGist

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 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 = '<div id="snackbar" class="snackbar bobx...

Webpage Auto Scroll From Browser Console

Automate scroll through huge web pages with a small JavaScript snipper 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...