Chrome Extensions MV3 lets you build your own desktop Chrome extension. For example, read a page title on demand, process selected text or simplify a repeated action. Codex writes the files; you choose page access separately.
This is a development platform, not a ready-made Codex plugin. Manifest V3 defines the structure and permissions. The simple example needs manifest.json, popup.html and a separate popup.js. Keeping JavaScript in its own file avoids blocked inline-script errors.
Test one button
Required permissions. To read a title by running a script in the active page, use activeTab and scripting. The former grants temporary access after invoking the extension; the latter permits the agreed script. This example needs no permanent access to every website.
Example manifest.json that Codex will create along with the named popup.html:
{
"manifest_version": 3,
"name": "Page title helper",
"version": "1.0.0",
"permissions": ["activeTab", "scripting"],
"action": {
"default_popup": "popup.html"
}
}
A manifest alone is not a complete extension: it needs the popup, a button handler and response checks. Navigating to a different site revokes temporary access; same-site navigation can retain it. This example's code must still read only when you act, rather than automatically monitor tabs.
Load and test it.
- Ask Codex to find the workspace and create a separate learning project or continue an existing extension. It prepares all required files and explains permissions before loading. Start with reading a title on demand.
- In desktop Chrome, open
chrome://extensions, enable Developer mode and select Load unpacked. Choose the folder containing manifest.json at its root. The assistant performs available actions if it has authorised browser control; otherwise this is one manual loading step. - Open your own normal webpage, invoke the extension through the puzzle menu and press its popup button. The title should match the current page. Repeat on another site without granting permanent access to every URL.
- Check rejection on a restricted page such as
chrome://extensions, a long title and rapid repeated clicks. Errors should be clear and the popup should not overflow. Repeat the same checks after fixes.
This example keeps data in the popup. Sending text to an external API, retaining history, reading all tabs or background processing are separate capabilities with separate access decisions.
Find an error. Chrome's extensions page shows load errors; check the JSON, files and chosen directory. For a button failure, open the popup, select Inspect and read Console. If a page prohibits script execution, do not blindly expand permissions: explain the refusal and use a normal accessible page.
After changing manifest.json, a background script or a script that runs in a webpage, select Reload on the extensions page. If the extension injects a script into a site, reload that webpage too. Refreshing a tab does not replace reloading the extension.
What you will have
The result is a local extension with a working button, a clear refusal on a protected page and only necessary permissions. Keep the source and a short test checklist for future changes. Load unpacked does not publish to the Chrome Web Store; store distribution needs separate preparation.
Where to use it. During platform selection, check whether an extension suits the task using the selected-route test. An action needed outside the browser or for every website visitor may require a normal site or application instead.
For failures, continue with Fix a project bug: reproduce one exact action and keep the error message. Do not reinstall everything instead of locating the cause.
Update and disable. Use Reload on the extensions page for local changes and repeat the checks. Disable or remove the learning extension there too. If you later add storage or an external service, separately check retained data and access. Removing the extension does not revoke an external API key. Preserve other extensions and profile settings.
Paste into Codex:
Find the current project and its rules. Create a separate learning desktop Chrome Manifest V3 extension, or continue an existing suitable one. The result is a popup button showing the current page title. Follow official Chrome guidance for Hello World, activeTab and scripting.
Prepare manifest.json, popup.html and a separate popup.js. Read the title through scripting on demand with activeTab, without permanent access to every site, external requests or history collection. Handle restricted pages, empty results and repeated clicks. Validate JSON and required files; a manifest alone is not a finished extension.
Before loading, show the folder and permissions and wait for approval. Then perform available steps using authorised browser control, or give one concrete Load unpacked step if control is unavailable. Check two ordinary sites, a restricted page, long titles and repeated clicks. Compare the title with the current page, inspect Console errors and fix failures. If loading or testing is unavailable, explain what remains rather than claiming success from files alone. Keep the source and Reload instructions; do not publish to the store without a separate request.
