Scripting
scriptingTechnical Context
Provides access to the chrome.scripting API for programmatically injecting JavaScript and CSS into web pages. This modern API replaces the deprecated chrome.tabs.executeScript method.
What This Means For You
The extension can run code on web pages to modify how they look or behave. The actual pages it can access depend on other permissions it has.
Related APIs
This permission enables access to these Chrome APIs:
chrome.scriptingCommon Use Cases
- ✓Content modifiers
- ✓Automation tools
- ✓Accessibility aids
How to Declare in manifest.json
Add the "scripting" permission to your extension manifest:
{
"manifest_version": 3,
"name": "My Extension",
"permissions": [
"scripting"
]
}Related Permissions
User Scripts
userScriptsThe extension can run custom scripts that you or others create on websites. This is powerful for customization but means third-party code runs in your browser.
Developer Tools
devtoolsThe extension can add new panels and features to Chrome's developer tools. This is only useful for web developers who use the inspector.
Debugger
debuggerThe extension can control web pages at a very deep level, including pausing code and changing how pages run. This is extremely powerful and typically only needed by developer tools.
Bookmarks
bookmarksThe extension can see all your saved bookmarks and folders, including their names and URLs. It can add new bookmarks, move them around, or delete them entirely.
Top Sites
topSitesThe extension can see a list of websites you visit most often, similar to what Chrome shows on a new tab page. It cannot see your full history, only your top visited sites.