Last active
January 9, 2021 03:24
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code works on the
.co.uk
domain as of 09/01/21.If you have issues with this code. Please check:
querySelector
first match vsquerySelectorAll
)