Created
June 25, 2021 18:42
-
-
Save hayleyxyz/3afac95ccc59dacf69d3c73e688dad8b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
getTitles = () => { | |
return $$('.info [itemprop="name"]').map((el) => el.title); | |
}; | |
season = document.querySelector('#bySeason').selectedOptions[0].textContent.trim(); | |
obj = {}; | |
if (localStorage.getItem('aci')) { | |
obj = JSON.parse(localStorage.getItem('aci')); | |
} | |
obj[season] = getTitles(); | |
localStorage.setItem('aci', JSON.stringify(obj)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment