Created
April 5, 2021 09:25
-
-
Save sysnucleus/f18b18b9af04a2f908b0e504e46e22bd to your computer and use it in GitHub Desktop.
Expand Tripadvisor reviews 'Read More' link..
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
els = document.getElementsByTagName('span'); | |
for (var i = els.length - 1; i >= 0; i--) { | |
if(els[i].innerText === 'Read more') { | |
els[i].click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment