j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
647 stars 73 forks source link

Allow recent items to be individually removed from the Web IDE 'File -> Open Recent' menu #93

Open 0xdevalias opened 4 weeks ago

0xdevalias commented 4 weeks ago

Just had another little QoL thought RE: the Web IDE's 'Open Recent' menu:

image

It might be cool if there was an x next to the individual entries (or similar) that would show a little confirmation box "Are you sure you want to remove [RECENT DETAILS]?", and if the user says yes, removes it from the history.

j4k0xb commented 4 weeks ago

Why would this be needed? Almost no program (including vscode) has individual delete buttons

0xdevalias commented 4 weeks ago

In local apps 'open recent' usually refers to recent things that are already going to exist on the filesystem, whereas the way you use it here in the Web IDE, it's more like "autosaves you can restore from"; and I was thinking there may be cases where you want to be able to clear out some of that 'history' (without needing to dig into the IndexedDB and do it manually)

In my use case here, I sort of want to clear it because it's ended up storing 2 blank/empty states (I think maybe when I have a blank state, but restore a different thing, it pushes the blank state into the history; which maybe is a separate bug); and also because I wanted to clear this random test entry (which is neither here nor there I suppose).

But I can also imagine cases where I might have loaded up a large and/or sensitive chunk of code, that I might not want to leave hanging around in the history.


I don't use vscode, but a quick google suggested that it has a way to clear it:


I do use Jetbrains Webstorm, and they have 'Recent Projects -> Manage Projects':

image

Which then pops up another little dialog that lets you 'Remove from recent projects':

image

I figured a full separate dialog seemed like it might be a little overkill though; but if it fits the UI/UX better, that would work still.


From a quick skim of a few common apps I use, it seems it's sort of 50/50 whether they allow it to be cleared or not.