Skip to content

[Help Request] Need Help Restoring/Opening Tampermonkey Scripts #2633

Closed

Description

@llaurens-tech

Sorry if this is the wrong venue, but I'm trying to recover corrupted(?) Firefox Tampermonkey files and I don't know where else to ask.

My PC crashed with a blue screen, and when I re-launched Firefox, Tampermonkey does not work at all. Clicking the TM icon in the toolbar just shows a tiny grey window with an infinite spinner. There's no way to access the dashboard or anything, all I can do is disable or enable the extension. If I try to load any webpage where TM would be allowed to work (basically anything outside of mozilla.org), it takes exactly 40.96s (every time, on the dot) to load the page. Disabling TM fixes that.

In the extension inspection console, I get the following log when I enable TM:

alarm: init done 
Object {  }
 
Object {  }
background.js:607:177
Storage: use storage.local background.js:297:17
Uncaught TypeError: can't convert undefined to object
    list moz-extension://e3437203-9ae7-4b24-87ff-e692c539392e/background.js:284
background.js:284:328
    list moz-extension://e3437203-9ae7-4b24-87ff-e692c539392e/background.js:284
    apply self-hosted:2253
    applySafeWithoutClone resource://gre/modules/ExtensionCommon.sys.mjs:691
    applySafeWithoutClone resource://gre/modules/ExtensionCommon.sys.mjs:690
    wrapPromise resource://gre/modules/ExtensionCommon.sys.mjs:914
    withLastError resource://gre/modules/ExtensionCommon.sys.mjs:833
    wrapPromise resource://gre/modules/ExtensionCommon.sys.mjs:902

If I navigate to "...(Profile)\storage\default\moz-extension+++e3437203-9ae7-4b24-87ff-e692c539392e^userContextId=4294967295\idb" and delete the "3647222921wleabcEoxlt-eengsairo.sqlite" file (the Tampermonkey local storage file, right?), then TM creates a new blank file and everything works again, but all of my scripts and settings are gone.

So, presumably, a TM script was probably writing something to a file and it got corrupted when I BSODed. Is there any way to retrieve and restore whatever non-corrupted data is still in there? I tried opening the sqlite file with DB Browser but I've never worked with SQLite before so I had no idea what I was looking at.

Environment

  • Browser and Version: Firefox 146.0.1
  • Tampermonkey version: 5.4.1
  • Operating System and Version: Windows 10

Activity

  1. derjanb commented on Dec 19, 2025

    @derjanb
    Member

    #2592 is the only starting point I can share for now

  2. derjanb commented on Dec 19, 2025

    @derjanb
    Member

    Do you see storage data at the extension page debugger?
    Maybe some storage keys are there and Tampermonkey is throwing an error at the first corrupted only.

    https://stackoverflow.com/questions/67763573/firefox-extension-how-to-get-extension-storage-value

  3. llaurens-tech commented on Dec 19, 2025

    @llaurens-tech
    Author

    When I click the Storage tab of the extension debugger, nothing happens. All the other tabs work, but clicking the Storage tab just continues displaying the content of whatever previous tab I was viewing.

    That other issue is what originally gave me the idea to delete the .sqlite file to see if that fixed TM (it did). I still have the '3647222921wleabcEoxlt-eengsairo.files' folder with its contents, and a session backup from before the BSOD. I was able to restore that session backup but it didn't change anything, TM was still broken. I wasn't sure where to go from there, so I decided to post my own issue.

  4. locked and limited conversation to collaborators on Feb 12, 2026
  5. converted this issue into a discussion #2704 on Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions