How can I find out what the chrome extension id is for an extension?
6 Answers
Use the chrome.runtime.id property from the chrome.runtime API.
5 Comments
chrome.runtime.id is available to extensions, apps and legacy packaged apps.chrome.runtime.id work from webpages? I can't make it work.chrome://extensions, check Developer mode, and click Inspect views link.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.
4 Comments
jllpkdkcdjndhggodimiphkghogcpida and it became clear which extension was messing me up. EDIT.. Oh wait, I just realize that all of the corresponding IDs are actually on the extensions page within the browser. doi.https://chrome.google.com/webstore/detail/lastpass-free-password-ma/hdokiejnpimakedhajhdlcegeplioahd that hdokiejnpimakedhajhdlcegeplioahd is the ID and not lastpass-free-password-maIf 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.
