Technically maybe to yes.  Practically no.  Greasemonkey uses IndexedDB (
https://developer.mozilla.org/en-US/docs/Glossary/IndexedDB ) for storage.
You'd have to be able to decode that, and it'd have to still be in there.
My guess would be that you found the raw string in a not-yet-vacuumed (
https://www.sqlite.org/lang_vacuum.html ) page, and thus it's not there in
a structured way to just conveniently extract.

P.S. Yes, moving the uninstall menu item further out of the way would be an
improvement.

On Wed, Jun 11, 2025 at 10:32 AM Hans Holzfäller <[email protected]> wrote:

> Hi,
>
> I accidentally removed one of my userscripts (the edit and delete menu
> items are way too close to each other lol), so now I'm looking for a way to
> recover it if possible. I didn't close my browser (Firefox) since then, and
> there are active tabs still running this script, however it doesn't appear
> in the debugger, neither its variables and functions are accessible via the
> console. I also tried to use the profiler, but couldn't get anything
> helpful from there.
>
> Then in the %appdata% profile folder I found
> a moz-extension+++%id%\idb\%num%gyreekansoem.sqlite file. When opened in
> notepad, it contains a %myscript_name% string. I used DB Browser for
> SQLite, and ran SELECT data FROM object_data. There are some plaintext
> script parts in the returned data (no %myscript_name% found this time
> though), but I couldn't recognize the data format. Is there a way to get
> the entire script from this db?
>
> --
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/greasemonkey-users/880a74e9-7526-48aa-bc5f-7b8f1bfb869dn%40googlegroups.com
> <https://groups.google.com/d/msgid/greasemonkey-users/880a74e9-7526-48aa-bc5f-7b8f1bfb869dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/greasemonkey-users/CAOJLxTHBBD2j6sYX6TEvYK9fNzSKXJtmQria-9u9jvr33UMRJA%40mail.gmail.com.

Reply via email to