Robbi
unread,Sep 6, 2023, 5:09:37 PM9/6/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, taehee kim, Deco, Chromium Extensions
Another reason code is minified by the developer is to make life a little harder for those who try to understand the logics of the extension.
You can (not so infrequently) see extensions practically cloned from the original ones in the store.
This certainly does not please the rightful owner of the extension and Google does not always "punish" those responsible despite the reports.
On the other hand, I also have to point out cases where the developer complained that his "amazing and unique" extension had been cloned;
Then, when you went to investigate what made their extension so "amazing and unique" you realized that it was nothing more than a digital clock inside the popup...
There are unavoidable results if someone wanna restore code from compiled code.
The code following the minification is not compiled, but only rewritten so that it occupies fewer bytes.
for instance...
function foo(bar) {
if (bar == true)
alert("hi")
}...could become something like this...
a=b=>b && alert("hi")...which for many may seem ancient Aramaic while for others they see only poetry :-)
My advice is:
If your purpose is purely didactic and you can't understand "that piece of minified code", write an email to the developer asking for explanations.