Local Files

file:///*
High RiskCategory: Host PermissionsView Official Docs

Install Warning

"Read and change all your data on the file system."

Technical Context

Allows the extension to access files opened in Chrome using the file:// protocol. This includes local HTML files, PDFs, and other documents opened directly in the browser.

What This Means For You

The extension can read files you open directly in Chrome from your computer. This is useful for tools that enhance local file viewing but means it can see personal documents.

Related APIs

This permission enables access to these Chrome APIs:

chrome.scripting

Common Use Cases

  • PDF tools
  • Local file enhancers
  • Developer tools

How to Declare in manifest.json

Add the "file:///*" permission to your extension manifest:

{
  "manifest_version": 3,
  "name": "My Extension",
  "permissions": [
    "file:///*"
  ]
}

What Users Will See

When users install your extension, Chrome will display this warning:

This extension can:

"Read and change all your data on the file system."

Related Permissions