Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query selectors outdated #1

Closed
mmoraiz opened this issue Nov 14, 2023 · 2 comments
Closed

Query selectors outdated #1

mmoraiz opened this issue Nov 14, 2023 · 2 comments

Comments

@mmoraiz
Copy link

mmoraiz commented Nov 14, 2023

First of all thanks for the script!

However the query selectors are outdated, I changed them to the following ones and it continues to work, in case you want to update them :).

var searchBox = document.querySelector("#b_sydConvCont > cib-serp").shadowRoot.querySelector("#cib-action-bar-main").shadowRoot.querySelector("div > div.main-container > div > div.input-row > cib-text-input").shadowRoot.querySelector("#searchbox");

var letterCounter = document.querySelector("#b_sydConvCont > cib-serp").shadowRoot.querySelector("#cib-action-bar-main").shadowRoot.querySelector("div > div.main-container > div > div.bottom-controls > div.bottom-right-controls > div.letter-counter").childNodes[3];

@0ssamaak0
Copy link
Owner

Thank you! Can you make a pull request with this new query?

@0ssamaak0
Copy link
Owner

it worked, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants