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

JS not working #49

Open
mescwb opened this issue Aug 28, 2024 · 3 comments
Open

JS not working #49

mescwb opened this issue Aug 28, 2024 · 3 comments

Comments

@mescwb
Copy link

mescwb commented Aug 28, 2024

please check this, I tried to remove the element @ 1st row, 1st column to no avail :/
(tried the url with & without 'https://')

Capturar

@Ruud14
Copy link
Owner

Ruud14 commented Aug 28, 2024

I don't have access to that specific url, however from your screenshot it seems to be a page that shows search results. Usually, when performing a search, the results will not load immediately, instead some loading animation will show and then the results will show up. This means that, right after opening the page, the element that you are searching for with document.querySelector probably is not loaded in yet. Hence, when your javascript is run, it finds no elements with that query selector.

To solve this, please try adding a delay before running your code. You could use setTimeout for this for example.

@mescwb
Copy link
Author

mescwb commented Sep 2, 2024

hi again just before your response I had remove it from Edge and now I've added it again but it does not work anymore in any page :/ hence I cannot try your suggestion

Capturar 2
Capturar

@Ruud14
Copy link
Owner

Ruud14 commented Sep 2, 2024

Please restart chrome completely, afterwards it should work.

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