rosenii

mafari

rosenii

Mafari is an Android browser built on the system WebView with a MIUIX Glass interface, shipping ad blocking, fingerprint protection and a userscript runtime without embedding Chromium.

v2.1.93
Published at
16h ago
22
Stars
1,589
Download
Synced at
8h ago

Latest release

v2.1.93Nov 26, 2026, 12:30 PM
Downloads slow? Switch the source anytime above

README

Project Overview

Mafari is what the Android system WebView looks like when it is repackaged as a daily browser: the interface is drawn with MIUIX Glass and Compose Multiplatform, and no Chromium engine is embedded. It targets phone users who want ad blocking, fingerprint resistance and userscripts, and because the package carries no browser engine, rendering and security fixes follow the system WebView. Ad blocking, fingerprint protection and userscripts are three independent switches, and nothing is turned on for you.

Item Value
Platform Android 13 and newer
UI stack MIUIX Glass + Compose Multiplatform
Rendering System WebView, no embedded Chromium
Package name dev.dsh.miuixbrowser
License Apache-2.0

The browser is only a shell; page rendering and security updates come from the system WebView.

Key Features

  • Ad blocking engine: shouldInterceptRequest blocks subresources by ||domain^, wildcards, @@ exceptions and modifiers such as $third-party, $domain= and resource type, while ##selector rules hide elements
  • Subscription management: imports Adblock Plus, uBlock, AdGuard and hosts lists from a URL or a local file, with daily, every-3-day or weekly auto refresh
  • Custom rules: long-press a page element and mark it as an ad to append a custom rule, and add per-site allowlists
  • Fingerprint protection: four separate toggles for Canvas, WebGL, Audio and Fonts; Canvas reads get +/-1 pixel noise and WebGL spoofs UNMASKED_VENDOR and UNMASKED_RENDERER
  • Audio and font noise: AudioBuffer and AnalyserNode output carries noise around -100 dB, and measureText, FontFace local() and queryLocalFonts are disturbed so installed fonts cannot be enumerated
  • Userscripts: a built-in userscript runtime with menu command registration, URL and file import, one-click and scheduled updates, plus an import prompt for .user.js links
  • Tabbed browsing: list and card tab styles, an address bar that can show the site title, main domain or full domain, pull-to-refresh and in-page find
  • Built-in downloader: writes to a cache first and then stores files in /sdcard/Download/mafari, with Range-based multithreaded segments, resume, pause and retry
  • Download notifications: a foreground service with progress notifications and Xiaomi super-island integration (miui.focus.param) when a download starts

Interface and Bottom Bar

  • Floating bar: a single minimal bottom bar with soft glass or liquid glass effects
  • Scroll to hide: the bar hides after about 100 px of downward scrolling and returns after about 120 px upward, which prevents accidental triggers
  • Vertical swipe: a 56 px upward swipe threshold on the bar, and a horizontal swipe collapses it into a round search button that taps or swipes open again
  • Immersive full screen: the status bar reserves space at first, fills in on downward scroll and returns at the top, so page headers stay clickable
  • Address bar long press: long-press the address bar to copy the current site address

Target Audience

  • Privacy-conscious Android phone users
  • Heavy browsers who rely on userscripts
  • Readers who want mobile ads blocked
  • Light users happy with the system WebView
  • MIUI users who care about visual polish

Quick Start

Install and First Run

  1. Install the APK and open it; on first launch older ad-blocking subscriptions stored as scripts are migrated and downloaded again
  2. Go to Settings, Advanced, Ad blocking and turn on the master switch, then add subscriptions or import a local rule file
  3. On the same page set auto refresh to daily, every 3 days or weekly so rules stay current
  4. Open Settings, Privacy and Security, Fingerprint protection and enable Canvas, WebGL, Audio or Fonts as needed

Build from Source

  1. Install JDK 17 or newer (21 recommended) plus Android SDK platforms;android-37.0 and build-tools;36.0.0
  2. Clone the repository and run ./gradlew :app:assembleDebug
  3. The APK lands at app/build/outputs/apk/debug/app-debug.apk
  4. For signed releases, configure the KEYSTORE_BASE64, STORE_PASSWORD, KEY_ALIAS and KEY_PASSWORD secrets

Core Advantages

  • No bundled engine: rendering goes through the system WebView, so the APK carries no Chromium and WebView updates deliver security fixes
  • Fine-grained switches: ad blocking, fingerprint protection and userscripts stay independent and can be scoped per site or per feature
  • Consistent interface: MIUIX Glass blur and rounded corners run through home, panels and settings alike
  • Local rules: imported subscriptions live on the device, and blocking plus element hiding happen without a third party

System Requirements

Item Requirement
OS Android 13 (API 33) or newer
Target versions targetSdk 37, compileSdk 37
Build environment JDK 17 or newer, Gradle 9.9.0
Tooling Android SDK platforms;android-37.0, build-tools;36.0.0
Source version v1.9.6-dev (versionCode 256)

Notes

  • Android 13 minimum: minSdk is 33, so older releases cannot install it
  • Rule syntax has limits: regex rules, $redirect, $removeparam, $csp, $replace, #?# extended selectors and +js() are skipped during parsing
  • Selectors are validated: hiding selectors from subscriptions are checked before injection, and rules containing {, } or ; are rejected
  • Cross-origin frames are uncovered: fingerprint protection covers the main frame and same-origin iframes only, while cross-origin iframes get nothing by default

Release history

Sort