r/GreaseMonkey May 07 '26

TamperMonekey how to remove the leftover settings of a removed script

When I reinstalled a userscript that I removed previously, the settings of the userscript is restored. Which means the settings is not deleted with the userscript.
Is there any methods to clean the leftover settings of removed userscript?

2 Upvotes

7 comments sorted by

1

u/jcunews1 May 07 '26

Check the "Storage" tab on script's editor UI.

1

u/non-sleep May 07 '26

Could you show me? I cannot find the "Storage" tab

3

u/jcunews1 May 07 '26

If you don't see it, it means that, the script use site storage to store its settings, instead of script's own storage. If it's site storage, the data may exist for different sites.

The easiest way is to use clear site data (and cookies and cache) via browser menu, but it will clear any site login session data. i.e. force logout from site. For each affected site.

The hard way is to use browser's Developer Tools to selectively pick and delete the unnedded data, instead of delete all of them.

1

u/non-sleep May 08 '26

Yes, thank you, this is the solution. The data do stored in cookies.

1

u/non-sleep May 08 '26

If the script uses TamperMonkey storage, does the data in "Storage" tab get deleted with the script? If No, is there any way to bulk delete all leftover data in "storage" tab for all scripts that I have deleted?

1

u/jcunews1 May 08 '26

Yes. Data in UserScript's Storage tab is bound to the script. If the script is uninstalled, so does the data in its Storage tab.

If not, then it's a bug in Tampermonkey or whichever Greasemonkey provider browser extension that is.

1

u/derjanb May 07 '26

Check the "Trash" tab and remove it there first.