View Single Post
  #3  
Old 22.03.2021, 14:37
plaintext plaintext is offline
BugMeNot Account
 
Join Date: Sep 2016
Posts: 241
Default

I came up with this

(function() {
if (!getRunningDownloadLinks().length) return;

var bytesLoaded = 0;

getAllDownloadLinks().forEach(function(link) {
if(!link.isFinished() && link.getBytesLoaded() > 0 && link.getBytesTotal() >= 10*1024*1024) link.setSkipped(true);
});
})();

Can it be simplified or optimized?
Reply With Quote