Hide my source code

789 views
Skip to first unread message

Og

unread,
Feb 10, 2023, 5:16:52 AM2/10/23
to Chromium Extensions
Hello everybody,

When an error happens in my extension, I want to prevent my source code from being 'crawled' by the Chrome console. I don't want users to have access to it (code through pages stack). Is it possible to hide this from the end user? How to do this?

Thanks.

Oliver Dunk

unread,
Feb 10, 2023, 5:22:33 AM2/10/23
to Og, Chromium Extensions
Could you elaborate a bit further on what code you're referring to? Is this the code from a content script or the background?

Either way, there isn't a true way to hide the code of your extension. Content scripts will always be accessible in Dev Tools and the background is always inspectable if "Developer Mode" is enabled on the chrome://extensions page.

Minification is allowed if that would give you some peace of mind: https://developer.chrome.com/docs/webstore/program-policies/code-readability/
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/873d0ae6-c9c0-45b1-bee9-898e7d58e4e7n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages