Skip to content

Instantly share code, notes, and snippets.

View alexander-danilenko's full-sized avatar

Alexander Danilenko alexander-danilenko

View GitHub Profile
@alexander-danilenko
alexander-danilenko / nnm-club-liker.js
Last active November 1, 2020 13:34
nnm-club.me liker
var timeout = 3000;
var nodes = document.querySelectorAll('input[type="image"]');
var len = nodes.length;
nodes.forEach(function(el, index) {
setTimeout(function(){
window.scrollTo({
top: el.getBoundingClientRect().top + window.scrollY,
left: 0,
behavior: 'smooth',
});