ផ្នែកបន្ថែមកម្មវិធីរុករក BetterWeb
Loading...
BetterWeb — Advanced Browser Intelligence
BetterWeb
Open Source — v1.0.0

BetterWeb

Advanced Browser Intelligence

by leon.cgn.lx @leon.cgn.lx
View Architecture
0 Core Features
V3 Manifest
MIT License
0 Open Source
Features

Built for power users

Four core modules — galaxy UI, media inspection, element overlay, and remote extensions

Galaxy New Tab

Premium animated starfield with parallax, shooting stars, nebula overlays. Glassmorphism search bar with multi-engine dropdown. 4K optimized.

Starfield Canvas Parallax Glassmorphism 4K Ready

Media Source Inspector

Detect all <video> and <audio> elements. Live dashboard shows currentSrc, duration, currentTime, paused state, playbackRate, readyState, networkState, MIME type. Updates every second.

VIDEO #1
StatusPlaying
Duration12:34
Resolution1920 × 1080
MIMEvideo/mp4

ShowMode Developer Overlay

Hover to inspect any element. Floating tooltip shows tag, id, classes, dimensions, position, z-index, inline attributes, and tracked event listeners. Monitors dynamically injected scripts.

<div#main.container.flex>
Size1200 × 800px
Positionrelative (0, 120)
z-index10
role="main" click scroll

Remote Extension Installer

GitHub-powered registry. Fetch extensions from raw.githubusercontent.com. Permission modal with privacy policy and accept flow. IIFE-sandboxed execution. Enable/disable toggle per extension.

GitHub Registry Sandboxed IIFE chrome.storage Permission Modal
Architecture

Project Structure

Complete Manifest V3 extension with modular architecture

01

Manifest V3 Configuration

Chrome's latest extension standard with scoped permissions:

manifest.json
{
  "manifest_version": 3,
  "name": "BetterWeb",
  "permissions": [
    "storage",
    "scripting",
    "activeTab"
  ],
  "host_permissions": [
    "<all_urls>",
    "https://raw.githubusercontent.com/Heybrono/*"
  ],
  "chrome_url_overrides": {
    "newtab": "extension/newtab.html"
  }
}
02

Full Project Structure

Modular file layout under github.com/Heybrono/BetterWeb:

BetterWeb/
📁 website/
   ├── index.html          ← Landing page
   ├── styles.css
   └── main.js
📁 extension/
   ├── manifest.json       ← Manifest V3
   ├── background.js       ← Service worker
   ├── content-bridge.js   ← Media + ShowMode
   ├── newtab.html          ← New tab UI
   ├── newtab.css
   ├── newtab.js
   ├── registry.js         ← Store fetcher
   ├── installer.js        ← Install logic
   └── storage.js          ← Persistence
📁 store/
   └── extensions.json     ← Registry manifest
📄 README.md
📄 LICENSE
03

Load the Extension

Load BetterWeb as an unpacked extension in Chrome Developer Mode:

1Open chrome://extensions
2Enable Developer mode (toggle top-right)
3Click Load unpacked
4Select the /extension folder from the repo
5Open a new tab — BetterWeb is live!
04

Extension Store Registry

On startup, BetterWeb fetches extensions from a separate GitHub repository:

Fetch URL
https://raw.githubusercontent.com/
  Heybrono/BetterWeb-Store/
  main/extensions.json
05

extensions.json Template

Each extension entry requires an id, metadata, and raw GitHub entry URL:

extensions.json
{
  "extensions": [
    {
      "id": "example-app",
      "name": "Example App",
      "publisher": "BetterWeb Store",
      "version": "1.0.0",
      "description": "Example extension.",
      "privacy": "No data stored.",
      "permissions": ["storage"],
      "entry": "https://raw.githubusercontent.com/
  Heybrono/BetterWeb-Store/main/
  extensions/example-app/main.js"
    }
  ]
}
Security

All remote JS is wrapped in a scoped IIFE — (function(){'use strict'; ...})(); — no global namespace pollution. Scripts are size-limited to 500KB. Stored in chrome.storage.local.

06

Content Script Architecture

A single content bridge (content-bridge.js) handles both Media Inspector and ShowMode:

content-bridge.js — Message Router
chrome.runtime.onMessage.addListener((msg) => {
  if (msg.action === 'toggleMediaInspector')
    toggleMediaInspector(msg.enabled);
  if (msg.action === 'toggleShowMode')
    toggleShowMode(msg.enabled);
});

// Media: scans <video> <audio> every 1s
// ShowMode: hooks mousemove + addEventListener
Store

Extension Registry

Preview the community extension store

License

MIT License

Free and open source — use, modify, distribute

MIT License

Copyright © 2025 leon.cgn.lx / Heybrono

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

Commercial use
Modification
Distribution
Private use
Liability
Warranty