Skip to content

Instantly share code, notes, and snippets.

View bzmw's full-sized avatar

Brett Willemsen bzmw

  • Who Gives a Crap
  • Melbourne
  • 13:02 (UTC +11:00)
View GitHub Profile
@bzmw
bzmw / gist:f2e8e4aaad743de14fc6c3af187e5a9b
Last active November 26, 2020 00:38
Scrape and Horse
const script = document.currentScript;
setTimeout(() => {
const activityItem = document.querySelector('#__next > div > div > div > div > div > div.pusher > div.chimpLayout > div.GivingGroupProfileWapper > div > div.row > div > div.eleven.wide.computer.sixteen.wide.mobile.ten.wide.tablet.column > div:nth-child(5) > div > div > div > div.ui.pointing.secondary.menu > a.active.item');
console.log(activityItem);
const scrollToMe = activityItem.getBoundingClientRect().top;
console.log(scrollToMe);
window.scrollTo(0, scrollToMe);
activityItem.click();