Skip to content

haithamaouati/Eruda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Eruda

Eruda Console for Mobile Browsers.

eruda

Demo

Browse it on your phone: https://eruda.liriliri.io/

Usage Instructions for Via Browser

  1. ​Open Via Browser.
  2. ​Navigate to Settings > Scripts.
  3. Enable Enable scripts.
  4. Click + > New Script.
  5. Paste the code provided below and save.

Usage Instructions for Soul Browser

  1. ​Open Soul Browser.
  2. ​Navigate to Settings > Web content.
  3. Enable Use UserScript > UserScript list.
  4. Click + > Direct input.
  5. Paste the code provided below and save.

Tip

Upon visiting any website, a semi-transparent gear icon will appear in the bottom corner; tap it to access the Console, Elements, Network, and Resource tabs.

Userscript
// ==UserScript==
// @name         Eruda
// @namespace    https://eruda.liriliri.io/
// @version      1.0
// @description  Console for mobile browsers
// @author       Haitham Aouati
// @run-at       document-end
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    /**
     * Injects the Eruda library and initializes the console.
     */
    function initEruda() {
        const script = document.createElement('script');
        script.src = 'https://cdn.jsdelivr.net/npm/eruda';
        script.onload = function () {
            eruda.init();
        };
        document.head.appendChild(script);
    }

    // Execution check to avoid multiple instances
    if (window.top === window.self) {
        initEruda();
    }
})();

Import script from URL:

https://raw.githubusercontent.com/haithamaouati/Eruda/refs/heads/main/Eruda.js

Star History

Star History Chart

Contributors