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

推荐订阅源

Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
量子位
美团技术团队
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
月光博客
月光博客

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
How to fix the "Purple Potassium" Chrome Web Store reject...
Rory · 2026-06-29 · via DEV Community

Rory

You submitted your extension, waited days for review, and got back a rejection
with a violation called "Purple Potassium." Your extension looks fine to you, so
what does it even mean? Here is what it is, why it happens, and how to catch it
before you ever hit submit.

What "Purple Potassium" actually means

"Purple Potassium" is Google's internal tag for excessive or unused
permissions
. Your manifest requests access to something your code does not
actually use, and the reviewer flags it. It is one of the most common reasons a
Chrome extension gets rejected, and it is frustrating precisely because the
extension works fine in testing. Review is checking something testing never does:
whether every permission you ask for is justified by your code.

The usual causes

1. API permissions you declared but never call. You added tabs,
bookmarks, or cookies to your manifest at some point, but there is no
chrome.bookmarks.* call anywhere in your code.

2. Host access that is too broad. You requested <all_urls> when your
extension only touches one site:

// Flagged
"host_permissions": ["<all_urls>"]

// Better
"host_permissions": ["https://*.example.com/*"]

  1. Leftover permissions after removing a feature. You shipped a feature that
    needed downloads, later removed the feature, and forgot to remove the
    permission.

  2. The tabs misunderstanding. The tabs permission does not grant access
    to the tabs API. Basic methods like chrome.tabs.create() work without it. It
    only grants four sensitive Tab properties: url, pendingUrl, title, and
    favIconUrl. If you declare tabs but never read those, it counts as unused.

How to fix it by hand

  1. List everything in permissions, optional_permissions, and host_permissions.
  2. For each one, search your code for the matching chrome. call.
  3. Remove any permission with no usage.
  4. Narrow and other broad patterns to the specific hosts you need.
  5. In your reviewer notes, write one plain sentence per sensitive permission explaining why you need it. Reviewers often lack context, and this prevents a lot of back and forth.

This works, but it is tedious and easy to get wrong, especially the tabs and
host-permission rules.

The faster way: lint it before you submit

I built a small CLI that does this check automatically. Point it at your unpacked
extension directory:

npx tabsmith-lint ./my-extension

It statically reads your code, builds an inventory of which chrome.* APIs you
actually call, and compares that to what your manifest declares. Then it reports
the likely rejection causes with the matching violation IDs, for example:

[fix] PERM001 Permission "bookmarks" appears unused (Purple Potassium)
manifest.json:8
No chrome.bookmarks/browser.bookmarks usage found.
Fix: remove "bookmarks" unless it is required by code not in this package.

It also flags broad host access, remote code, and missing or wrong-case file
references. You get a pass / needs fixes / high rejection risk verdict and
exit codes, so you can run it in CI.

One important caveat

This is static analysis, not magic. A linter that tells you to remove a
permission you actually use is worse than no linter, so the unused-permission
rule is deliberately conservative: it ships as a warning, not a hard error, and
it lowers its confidence when it sees dynamic access like chrome[name]. It is
also honest about its limits. Deeply bundled extensions can still hide usage from
it, which is documented.

If you want to verify the accuracy yourself rather than take my word for it, the
project ships an open benchmark of hand-labeled real extensions and a scorer you
can run with npm run score.

Bottom line

The Purple Potassium rejection comes down to one rule: request the narrowest
permissions your code actually uses, and nothing more. Audit your manifest
against your code before every submission. Doing it by hand works; running a
linter is faster and catches the cases that are easy to miss.

Tool is MIT and open source: https://github.com/rsub122/tabsmith-lint