Skip to content

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

@llaurens-tech

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

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