Συζητήσεις » Αιτήματα Δημιουργίας

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

§
Δημοσιεύτηκε: 15/08/2021
Επεξεργάστηκε: 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.

§
Δημοσιεύτηκε: 19/08/2021

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

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.

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