Chrome extension id - how to find it

Google ChromeBrowserGoogle Chrome-ExtensionInstallation

Google Chrome Problem Overview


How can I find out what the chrome extension id is for an extension?

Google Chrome Solutions


Solution 1 - Google Chrome

Use the chrome.runtime.id property from the chrome.runtime API.

Solution 2 - Google Chrome

You get an extension ID when you upload your extension to Google Web Store. Ie. Adblock has URL https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddilifddb and the last part of this URL is its extension ID cfhdojbkjhnklbpkdaibdccddilifddb.


If you wish to read installed extension IDs from your extension, check out the managment module. chrome.management.getAll allows to fetch information about all installed extensions.

Solution 3 - Google Chrome

If you just need to do it one-off, navigate to chrome://extensions. Enable Developer Mode at upper right. The ID will be shown in the box for each extension.

Or, if you're working on developing a userscript or extension, purposefully throw an error. Look in the javascript console, and the ID will be there, on the right side of the console, in the line describing the error.

Lastly, you can look in your chrome extensions directory; it stores extensions in directories named by the ID. This is the worst choice, as you'd have extension IDs, and have to read each manifest.json to figure out which ID was the right one. But if you just installed something, you can also just sort by creation date, and the newest extension directory will be the ID you want.

Solution 4 - Google Chrome

As Alex Gray points out in a comment above, "all of the corresponding IDs are actually on the extensions page within the browser".

However, you must click the Developer Mode checkbox at top of Extensions page to see them.

Solution 5 - Google Chrome

Extension IDs can be found in:

chrome://extensions (Chrome_Hotdog >> More_tools >> Extensions) Developer mode.

For Linux: $HOME/.config/google-chrome/Default/Preferences (json file) under ["extensions"].

Solution 6 - Google Chrome

All extension ID are listed here:

chrome://system

List

Solution 7 - Google Chrome

This is the way to create desktop app for gmail with brave browser.

"C:\Program Files\BraveSoftware\Brave-Browser\Application\chrome_proxy.exe" --profile-directory=Default --app-id=kmhopmchchfpfdcdjodmpfaaphdclmlj

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionZVenueView Question on Stackoverflow
Solution 1 - Google ChromeabrahamView Answer on Stackoverflow
Solution 2 - Google ChromeKonrad DzwinelView Answer on Stackoverflow
Solution 3 - Google ChromeBrianFreudView Answer on Stackoverflow
Solution 4 - Google ChromecssyphusView Answer on Stackoverflow
Solution 5 - Google ChromexgedView Answer on Stackoverflow
Solution 6 - Google ChromePorcupineView Answer on Stackoverflow
Solution 7 - Google ChromevastView Answer on Stackoverflow