Diskussionen » Entwicklungsanfragen

Help create a script that will find a specific class in the current page of the browser

§
Veröffentlicht: 15.08.2021
Bearbeitet: 15.08.2021

Dear,

Good day. As per title im looking for or if you could help me create a very simple script that will help me find a specific html class in the current page im browsing. For sample if I will go to google.com home page and the script says find this class (class="XDyW0e") it will automatically focus on that particular class.

Best Regards.

§
Veröffentlicht: 19.08.2021

document.querySelector("#XDyW0e").focus()

Antwort schreiben

Anmelden um eine Antwort zu senden.

长期地址
遇到问题?请前往 GitHub 提 Issues。