Android-Web-Inspector icon indicating copy to clipboard operation
Android-Web-Inspector copied to clipboard

Does not work for sites that redefine `$$`

Open Nixinova opened this issue 5 years ago • 1 comments

This app defines a JavaScript object $$ which it then uses to perform actions. However, on a site I have defined $$ to be an alias of document.querySelectorAll, making the app unusable. Errors are of the form Uncaught TypeError: $$.print is not a function.

Nixinova avatar Apr 09 '21 03:04 Nixinova

Hi! 👋

I've opened a PR to fix this conflict: https://github.com/agusibrahim/Android-Web-Inspector/pull/13

The fix renames the internal $$ object to a unique variable name so it doesn't override your custom alias for document.querySelectorAll. This should resolve the TypeError and allow the app to work alongside your custom definitions.

Thanks for the report!

webbrain-one avatar Aug 03 '26 05:08 webbrain-one