fuzzykiller / download-cleaner-lite Goto Github PK
View Code? Open in Web Editor NEWWeb Extensions version of Download Cleaner
License: Apache License 2.0
Web Extensions version of Download Cleaner
License: Apache License 2.0
Options are invisible on dark themes like FT DeepDark
Would it be possible to add a separate option to toggle whether or not manually cancelled downloads are considered complete, so that they can be automatically removed while failed downloads remain?
Currently, startup removal is implemented in the extension’s initialization method. That means it also triggers when the extension is reloaded, upgraded or enabled for any reason really.
The Web Extension API offers the runtime.onStartup
event.
For timers to be restored correctly however, reloads of any kind need to be handled, too. Perhaps the runtime.onInstalled
event offers the desired behavior.
Further investigation is required.
I was not expecting the extension to clean out paused downloads. In removeDownloads:
// Skip in-progress downloads
if (download.state === "in_progress") {
continue;
}
Could/should that either check for 'complete', or just additionally exclude 'interrupted' if you want to leave it open to cleaning out future state constants?
if (download.state !== "complete") {
or
if (download.state === "in_progress" || download.state === "interrupted") {
As-is, failed/paused downloads just vanish when using the delay option.
Firefox 108 x64, Windows 7 x64, i5 6600k
Settings:
Result:
I can still see the downloads till 10 days ago..
It may not be possible to detect when the app quits, but it is certainly possible to detect when the app starts as at some point your extension will be initialized during startup, right? So how about an option to delete download history on start up? That would almost have the same effect to me as cleaning history is not a privacy feature for me, it's just for reducing UI clutter.
Downloads are currently removed with a delay of at least one minute. When the delay is set to 0, the download should be removed right away.
Hello there,
Would it be possible to automatically reset the color of the downloads button (the down arrow) from blue (active) back to the default black (neutral), after the removal of downloads from history has taken place ?
Right now it stays blue indefinitely after the downloads history has been cleared out, which is distracting because the blue color supposedly indicates the presence of completed downloads in the history list (which aren't there anymore), hence the button should revert back to its neutral state.
Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.