Portable Opera not saving Extensions (Developer mode)
-
patfa last edited by
Hi I tried researching everywhere but couldnt find a solution. I want to save my custom extension in opera portable but after like opening and closing it after 3x opera always deletes the extension from my extension folder.
- I tried to read only my extension but it still got deleted.
- Deloper mode is activated.
- if its an official extension they dont get deleted.. Its only my custom made extension.
How can I make opera not delete my custom extension?
-
patfa last edited by
@patfa my manifest is
},
"manifest_version": 2,
"minimum_chrome_version": "26.0",
"name": "filename 1",
"permissions": [ "<all_urls>", "webRequest", "storage", "webRequestBlocking", "tabs", "proxy", "cookies", "management", "http:///", "https:///" ],
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "0.20"
} -
burnout426 Volunteer last edited by
How are you installing the extension? If you put the extension's folder in the root portable Opera's install folder and use "load unpacked" at
opera://extensions
to load the folder, it should stay installed no problem. If you manually put the extension's folder in "profile\data\extensions" though, I can see Opera removing it.Or, are you packing your extension as an nex or crx file and dragging it to the
opera://extensions
page? -
patfa last edited by
@burnout426 @burnout426 said in Portable Opera not saving Extensions (Developer mode):
Ah yes I copy paste the extension folder toDesktop\Portable-Opera\profile\data\Extensions
Folder and then
go to the "load unpacked" at opera://extensions opera://extensionsWhich deletes it. I wonder why?
But I will try to put it inside the root folder now of
Desktop\Portable-Opera\ instead and then load unpacked -
burnout426 Volunteer last edited by
@patfa said in Portable Opera not saving Extensions (Developer mode):
Which deletes it. I wonder why?
The "extensions" folder in the profile folder is not for users to put things in. It's for Opera itself to place installed extension folders and files there. So, in short, if Opera didn't put something there itself, it's removed to protect your profile from tampering.
-
patfa last edited by
@burnout426 thanks appreciate the answer. It worked when I put it in the main folder.
But once I copied the portable opera folder and moved to my other computer the I extension folders were there but I needed to Load unpacked extension again.
Is there a way to make it already save and activated so I don't need to unpack the extension again? once i give my opera portable to other people?
-
burnout426 Volunteer last edited by burnout426
@patfa It's been a while since I tested.
First, try installing an extension from addons.opera.com to see what happens when you switch computers. Does that one stay installed? Does it also stay active? If I remember correctly, the extension should at least stay installed.
If that's still the case, and it's just not working with loading unpacked extensions, it could just be due to a path issue? Does the drive latter stay the same on all computers? The stored path to the extension's folder is absolute, so it could fail if the path changes.
I'll test too when I get a chance.
-
patfa last edited by
@burnout426
official addon was installed and activated but the own custom one was not installed and activated.I also checked so its absolute dir and same.. any other solutions to try?
-
burnout426 Volunteer last edited by
@patfa Okay. :(. I'll probably be able to test myself Wednesday and see if I can find a workaround.
-
patfa last edited by
@burnout426 appreciate it, tried a few stuff but no luck
I will wait for your test results -
burnout426 Volunteer last edited by burnout426
Okay. On Windows 11, here's what I did.
I created an "Opera" folder on my USB stick with drive letter 'E'. As in, "E:\Opera".
I launched the Opera installer, clicked "options", set "install path" to "E:\Opera", set "install for" to "standalone installation", unchecked "import data from default browser", and installed.
When that Opera loaded up, I added https://addons.opera.com/en/extensions/details/ublock/ to Opera as a test for an official packed extension. After the extension was installed, I pinned it to the address bar.
Then, I created a folder named "Mask as Chrome" at "E:\Opera\Mask as Chrome" for an unpacked extension test.
Then, I download "mask-as-chrome-0.1.nex" from here, extracted it, and copied its manifest.json and background.js files to "E:\Opera\Mask as Chrome" so that their paths were "E:\Opera\Mask as Chrome\manifest.json" and "E:\Opera\Mask as Chrome\background.js" respectively.
Then, I went to the URL
opera://extensions
, turned on developer mode, clicked "load unpacked" and pointed it at the "E:\Opera\Mask as Chrome" folder. The extension installed fine and I pinned it to the address bar also.I closed and opened that Opera multiple times to make sure the extensions where still installed.
I also checked "E:\Opera\profile\data\Preferences" with JSONedit in tree mode. Under root/extensions/opsettings/the_unpacked_extensions_id", the path for the extension was listed at "E:\Opera\Mask as Chrome".
Then, I unplugged the USB stick.
Then, on another computer (Windows 11 also), I plugged the USB stick to browse its contents. I noticed that on this computer, the drive letter was 'D' instead of 'E'. So, I went into Disk Management in Windows, right-clicked on the drive letter for the drive, went to "change drive letter and paths", and changed the drive letter to 'E' to match the drive letter the USB stick had on the first computer.
Then, I ran "E:\Opera\launcher.exe" to launch that Opera and both the packed and unpacked extensions were still there, installed, and enabled. I close Opera and and reopened Opera multiple times just to make sure the unpacked extension was still installed, and it was.
I also verified with JSONedit that the path in the Preferences file for the unpacked extension was still "E:\Opera\Mask as Chrome".
So no problems for me.
Hope that helps.
(You can look at manifest.json in my "Mask as Chrome" test extension) to see how it has no ID and no update URL and no key or anything like that. Maybe that's the difference.)
-
patfa last edited by patfa
Thanks so much for testing. Appreciate it a lot! Also merry xmas!
Now retesting
-
patfa last edited by
@burnout426 said in Portable Opera not saving Extensions (Developer mode):
JSONedit
Thank you so much! It now works! I believe it was indeed the absolute url as i had it under desktop instead of directly installing in the Drive C, E etc..
Appreciate it alot sir! Happy holidays!
-