Issue
I have been recently working on a project to make a simple download renamer and it worked. However, i just need to append its code to my download manager extension (Ant download manager). When i try to change the background script edge gives error : 'extension might be corrupted' and a repair option with no option to let it work. I tried removing the update_url and replacing it with any other in the manifest.json (editing other files than the background script doesn't elect the error) but still gave the same error when i edited background script.
NOTE: when i load the unpacked source code of the extension, it doesn't function properly.
I thought of changing the path of native host in json manifest to a custom C++ host that would receive the stdin and then send the modified data as stdout to the original native host but this would be a lengthy solution and encounter a lot of errors.
Solution
id
field in the manifest.json
belongs to a verified extension and browsers check installation against that in their database against possible corruption by any means.
your edit will be seen as corruption even if you change the update URL because of this id
.
- make a copy of the extension folder. find it in browser's own extensions folder. check internet for where that location be.
- remove extension from browser
- now edit codes for your needs
- edit
manifest.json
and remove app specific things like thisid
. some may have hash values etc. - enable developer mode in the browser and install from the folder you used. by "install" I mean browser use that folder. it will not copy content into browser's extensions folder. so keep it in somewhere like
~/myextensions
, orc:\workspace\myextensions
also check for a _metadata
folder and the content inside. there might be related identifiers you need to remove in there.
Answered By - Yılmaz Durmaz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.