Skip to content

Instantly share code, notes, and snippets.

View savandriy's full-sized avatar

Andriy Stolyar savandriy

View GitHub Profile
@savandriy
savandriy / scrollPreventer.js
Last active December 13, 2019 14:12
A hack to prevent scroll chaining in Vanilla JS (re-wrote the code from here https://stackoverflow.com/a/39307075/5952509); btw, you should just use overscroll-behavior: none;
var element = document.getElementsByClassName("your-class-here")[0];
var scrollHandler = function (e) {
e.preventDefault();
document.documentElement.scrollTop = window.currentScrollTop;
document.documentElement.scrollLeft = window.currentScrollLeft;
};
element.addEventListener('mouseenter', function () {
var scrollTop = document.documentElement.scrollTop;
@savandriy
savandriy / google-dorks
Created April 12, 2019 18:15 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!