Created
October 1, 2022 11:45
-
-
Save vimfn/00f1c18d783ef91215463e57ab608b97 to your computer and use it in GitHub Desktop.
Console logs all texts of same classes of a website :)
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
// Use inspect element to get classes of a particular element (Dont remove that "." before className you noob 🤡 ) | |
const className = document.querySelectorAll('.<CHANGE WITH THE CLASS NAME>'); | |
for (i = 0; i < className.length; i++) { | |
console.log(className[i].innerText); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment