AgregoreWeb / agregore-mobile

Mobile version of the Agregore browser for Android, based on Chromium and Bromite
MIT License
31 stars 6 forks source link

Add Erudo as bookmarklet for injecting devtools #32

Open RangerMauve opened 1 year ago

RangerMauve commented 1 year ago

Adding devtools has been a major TODO to make it possible for folks to author new content and inspect pages from their phone.

Sadly doing this natively is a lot of work since the only browser that has it already doesn't provide easy to use patches.

Instead we can use Eruda which injects javascript into a page which hijacks various APIs to provide a console for us to use.

We can have a bookmarklet in the default list which injects Eruda into a page to make it inspectable.

This won't give us stuff like breakpoints, but it'll at least let us debug stuff and have a basic console.