diff --git a/DownloadAlbum.user.js b/DownloadAlbum.user.js index e62c09c..2cfab15 100644 --- a/DownloadAlbum.user.js +++ b/DownloadAlbum.user.js @@ -47,10 +47,10 @@ var titleLabel = document.getElementsByClassName('download-title')[0]; if (titleLabel.children[0].href !== undefined && titleLabel.children[0].href.length > 0) { - window.open(titleLabel.children[0].href); + window.open(titleLabel.children[0].href, "_self"); clearTimeout(interval); if (closeAfterDownload) { - close(); + setTimeout(function() {close()}, 20000); } } }