Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build
on:
schedule:
- cron: "0 10 * * 3,6"
push:
branches:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Place Eruda File
run: |
curl https://cdn.jsdelivr.net/npm/eruda --output "./src/eruda.min.js";

- name: Fetch Eruda Release Version
run: |
echo -n "VERSION_ERUDA=" >> $GITHUB_ENV;
grep -o -m 1 -P "(?<=^\/\*! eruda )v[^ ]+" "./src/eruda.min.js" >> $GITHUB_ENV;

- name: Build
run: |
npm install -g crx;
crx pack -p "key.pem" "./src" -o "./mobile-devtools.crx";

- name: Release with Notes
uses: softprops/action-gh-release@v2
with:
files: "./mobile-devtools.crx"
name: ${{ env.VERSION_ERUDA }}
tag_name: ${{ env.VERSION_ERUDA }}
generate_release_notes: true
overwrite_files: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# extension build
mobile-devtools.crx


# Logs
logs
*.log
Expand Down Expand Up @@ -58,7 +62,4 @@ typings/
.env

# next.js build output
.next

# crx private key
key.pem
.next
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# ![](https://raw.githubusercontent.com/volleio/mobile-devtools/master/src/icons/mobile-devtools32.png "mobile-devtools logo") Mobile DevTools
### A mobile browser extension for debugging web apps. Based on the open source project [Eruda](https://eruda.liriliri.io/), Mobile DevTools allows you to view the console, DOM elements, network traffic, page source, resources, and more.

Click the extensions's icon in the toolbar or menu to open the overlay. Drag the top menu left & right and tap on a tab to open:
- Console: View JavaScript logs, errors, warnings, and other debug info. Execute arbitrary JS to interact with the webpage.
- Elements: Drill down into the DOM tree to see attributes, inline styles, CSS rules, and computed styles.
- Network: Record in detail the network requests being made and inspect the responses.
- Resource: Show local storage, session storage, cookies, scripts, stylesheets, iframes, and image assets.
- Sources: Source code viewer for HTML, JS, and CSS.
- Info: View the current URL, User Agent, and device details.
- Snippets: Execute useful JavaScript snippets. If you're a developer and would like to add additional plugins, please visit Eruda's documentation at https://github.com/liriliri/eruda and contact the developer of this extension!
# Mobile DevTools

A mobile browser extension for debugging web apps. Based on the libre project [Eruda](https://eruda.liriliri.io/), Mobile DevTools allows you to view the console, DOM elements, network traffic, page source, resources, and more.

Click the extension's icon in the toolbar or menu to open the overlay.

- Console: View JavaScript logs, errors, warnings, and other debug info. Execute arbitrary JS to interact with the webpage.
- Elements: Drill down into the DOM tree to see attributes, inline styles, CSS rules, and computed styles.
- Network: Record in detail the network requests being made and inspect the responses.
- Resource: Show local storage, session storage, cookies, scripts, stylesheets, iframes, and image assets.
- Sources: Source code viewer for HTML, JS, and CSS.
- Info: View the current URL, User Agent, and device details.
- Snippets: Execute useful JavaScript snippets. If you're a developer and would like to add additional plugins, please visit Eruda's documentation at https://github.com/liriliri/eruda.

_Mobile DevTools may not work on all websites, depending on the page content's security policies._

## How to Build

```sh
curl https://cdn.jsdelivr.net/npm/eruda --output ./src/eruda.min.js
npm install -g crx
crx pack -p key.pem ./src mobile-devtools.crx
```
28 changes: 28 additions & 0 deletions key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCUvRCix4RsYrTb
6JKPqJh995g0OdMYgvv9bdgiYyT1kZztugRSiASl92arlXqV2sOa3xQO8dDQHoMf
xiiyQy0OXuFEaB5VJybx2qZKeVUIay8UvYjosqrMzI34qmDZB5YSS3szbBBdviX4
R2ilxzKhtsFZzztue1cKTa56cPXlflBtF25slyUbP9G6jB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