-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-fill extension id #1
Comments
Wow! That's just awesome! After experimenting with this finding it turned out that There are some limitations though for that
The I'm curious, how did you found out about this easter egg? :) |
Well, I already tried to tell you here, but I guess you missed it ;)
Will register I found this because the extension id was auto-filled when I imported the official example extension (which doesn't work) and I found that the explicit string used as id was only used as parts of the registered commands within the extension.
I thought creating at least one command would be required, but then I tried to verify this by looking at EasyEDAs main minified javascript code and actually (kind of) found the regex used to extract the extension id. I'm still not sure how they choose the extension id if there are multiple matches. But I think the one that is found most often is used. |
Ugh... the EasyEda's forum(and the whole community as welll) is so broken! I'd never received any notifications about that comment, thus I didn't have a chance to check it. 😕 Anyway, thank you for pointing it out here! Despite the fact that such "easter egg" doesn't sit very well - it works! ¯_(ツ)_/¯ Going to update all of my plugins/extension with this technique :) |
Hey,
when you add the comment
// extension-fixmenu-id
to yourmain.js
, EasyEDA will auto-fill the extension id field on install 😉Simple but useful extension btw. Thanks!
The text was updated successfully, but these errors were encountered: