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

Stats: All time (only complete months) #771

Open
jesus2099 opened this issue Jul 17, 2023 · 1 comment
Open

Stats: All time (only complete months) #771

jesus2099 opened this issue Jul 17, 2023 · 1 comment

Comments

@jesus2099
Copy link
Owner

Blocked by:

Shadow DOM manipulation is currently not possible:
violentmonkey/violentmonkey#1852

@jesus2099
Copy link
Owner Author

Wow, @tophf was right!
It is possible to manipulate shadow DOM, it's just that this website has some additional funny stuff going on!

I found a random page with #shadow-root (open): https://apearce.github.io/react-shadow-root/

And both those two following lines of code, read and write, did work in console (F12) and in a userscript!

alert('document.querySelector("basic-demo").shadowRoot.querySelector("span").innerText: ' + document.querySelector("basic-demo").shadowRoot.querySelector("span").innerText);
document.querySelector("basic-demo").shadowRoot.querySelector("span").appendChild(document.createTextNode(" toto"));

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

No branches or pull requests

1 participant