Skip to content

Instantly share code, notes, and snippets.

@AndrewStanton94
Last active January 9, 2021 03:24
Show Gist options
  • Save AndrewStanton94/1140be2c47b84ed0e6e102a392709080 to your computer and use it in GitHub Desktop.
Save AndrewStanton94/1140be2c47b84ed0e6e102a392709080 to your computer and use it in GitHub Desktop.
Go to your EventBrite favourite events page. Scroll to the bottom and load more events until you have a full list. Then paste this code into the developer console. This puts the events in ascending chronological order.
document.querySelector('.eds-g-group').append(
...[...document.querySelectorAll('.eds-g-cell.eds-g-cell--has-overflow.eds-g-cell-1-1.eds-g-cell-mn-9-12')]
.map((elem) => ({
date: new Date(elem.querySelector('.eds-text-bs--fixed.eds-text-color--ui-600.eds-l-mar-top-1').innerText),
elem
}))
.sort((a,b) => -(b.date - a.date))
.map(({elem}) => elem)
)
@AndrewStanton94
Copy link
Author

Code works on the .co.uk domain as of 09/01/21.

If you have issues with this code. Please check:

  • the class selectors are still accurate
  • the required results are still the first match on lines 1 and 4 (querySelector first match vs querySelectorAll)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment