惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
博客园 - 叶小钗
The Cloudflare Blog
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
小众软件
小众软件
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
uBlock Origin Extension with Dia Browser
Jason Lo · 2026-05-17 · via DEV Community

Recently, I moved from using Arc browser to Dia browser to try the integrated AI features. The change that I first noticed was that uBlock Origin extension is no longer available on Dia browser, a chromium based browser.

It turned out to be the new version of Chrome, 140 has turned on the following features:

  • ExtensionManifestV2Unsupported
  • ExtensionManifestV2Disabled

Solution

In order to get around it perfectly, I refined the solution a few times.

1st iteration

A fast immediate workaround is open terminal on Mac and execute

/Applications/Dia.app/Contents/MacOS/Dia \
  --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled

Enter fullscreen mode Exit fullscreen mode

It opens the Dia browser with the two enabled features disabled. Then, go https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm to download the no longer supported uBlock origin extension.

2nd iteration

Hooray! It worked just fine! Wait! Hang on! Isn't it means I need to open Dia browser through terminal every single time?! It's quickly becoming inconvenient. I need a one-button-click solution!

Automator to save the day!

I created an Automator application to run the script.

/Applications/Dia.app/Contents/MacOS/Dia --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled >/dev/null 2>&1 &

Enter fullscreen mode Exit fullscreen mode

It is important to have >/dev/null so that it redirects stdout (normal output) to /dev/null.

Then 2>&1 redirects stderr (error output) to wherever stdout (1) currently goes.

Finally the last & is to run the process in the background so your terminal/script continues immediately. It is important that the script does not block waiting for the process to exit.

Beautify the application icon

Look at the default automator icon makes me sad. :(

I found that it's actually pretty straightforward to do to replace it with the original Dia icon!

  1. Right click the actual Dia application icon
  2. Select "Get info"
  3. Click on the application icon at the bottom and press Cmd + c to copy to clipboard.
  4. Right click the new automator application icon
  5. Select "Get info"
  6. Paste the copied Dia icon
  7. Job done!

Final iteration

Happiness only lasted for a few days until I found another issue.

I have an habit to click the Dia icon to focus back to the opened Dia window. Don't ask me why I didn't it this way, it's just my preference! :P

The problem is when I click the Dia icon again, the script tries to open Dia application instead of focusing the current window. A prompt then shows up to tell me off Dia is already opened!

To get around this, I finally updated the automator script to check if Dia is already opened. If yes, activate and focus the current Dia window. Otherwise, open a new Dia application.

if ! pgrep -x "Dia" >/dev/null; then
/Applications/Dia.app/Contents/MacOS/Dia --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled >/dev/null 2>&1 &
else
osascript -e 'tell application "Dia" to activate'
fi

Enter fullscreen mode Exit fullscreen mode

osascript is a macOS command-line tool that lets you run AppleScript from Terminal, shell scripts, or Automator.

Hooray!! I finally managed to get ublock origin extension working on Dia browser seamlessly.

Caveats

  • This is not a permanent solution to have ublock origin extension installed and working on Dia or new chromium based browsers since future Chrome updates may still block or break this workaround.

  • New ublock origin updates might be limited, incompatible, or unavailable under this setup.