Hacker News new | ask | show | jobs
by andreasha 1093 days ago
TIL mobile JavaScript console https://eruda.liriliri.io/
8 comments

There even is a "remote version" of this by the same person: https://github.com/liriliri/chii

By using it you can open the devtools on another computer and all the information is synchronized over WebSockets. I used it once to debug an issue on a customers machine.

A bookmarklet would be nice. This is how the current developer tools in browsers started (Firebug).
Bookmarking included in the project README…

https://github.com/liriliri/eruda#demo

Thank you! I must have expected an embed code and missed the javascript: part.
Oh, Firebug! Blew my mind when I first saw it. No more View Source for me!
That's mega. Doesn't work for me in Brave on iOS, but does in Safari, I'll take that.
Is it just me or does this completely not work? When I paste the Javascript snippet into the address bar, nothing happens. And in Nightly it just performs a Google search with that string.
Try putting it in a bookmark and then execute it.
How is this supposed to work? Opening the bookmarks page navigates away from the current page. Even then, selecting the bookmark does nothing.
Works in Firefox, not Chrome. Android.

1. Bookmark any page, making a dummy

2. Menu > Bookmarks > edit

3. Change URL of dummy bookmark to the js bookmarklet code.

4. Visit any site.

5. Menu > Bookmarks > tap on the bookmarklet

6. Widget appears on bottom right of page

It doesn't work on HN(?) But does work on other sites.

Step 5 onwards don't work on private tabs for some reason. For private tabs you can do all steps up to 4 and then:

5. Tap on the URL bar

6. Type part of the name of the bookmark you chose until it appears in search (in my case eruda works)

7. Tap the bookmarlet

For this to work you need to have bookmark search enabled in settings: Settings -> Search -> Search bookmarks

Also, there seem to be many sites where the widget doesn't appear, but you can try it at google.com.

If you're on Android and want eruda, I've got a userscript to load it on every site here: https://github.com/Efreak/UserScripts/tree/master/Eruda-Mobi...

It helps with things like removing elements because you can see the DOM and it's fewer clicks away and easier to use than ublock, which doesn't show the DOM in the little box provided for element removal and only allows removing one item say a time (you can use multiple selectors, but every time you tap an element to get the selector it overwrites the existing content)

Unless I'm mistaken, Chrome mobile doesn't support userscripts (or extensions). Which browser are you using?
I'll sometimes go through the trouble of using `data:text/html,<script></script>`, but that is impressively replete.
Same. My phone just got a whole lot more powerful!
This is awesome. I hope there is a way to auto load a script so I can make some simple extensions.
I found that really interesting too. I've often wanted something like that!
Used to use Firebug Lite to get the equivalent in IE6: https://web.archive.org/web/20141217201617/http://getfirebug...