Skip to content

Commit

Permalink
Fix DownloadAlbum.user.js with new download page
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautChoppy authored May 22, 2024
1 parent 7608afe commit ccc2573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DownloadAlbum.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
console.log(e);
}

var titleLabel = document.getElementsByClassName('download-format-tmp')[0].children[4];
if (titleLabel.href !== undefined && titleLabel.href.length > 0) {
const downloadWindow = window.open(titleLabel.href);
var downloadLink = document.querySelector('a[data-bind*="downloadUrl"]');
if (downloadLink && downloadLink.href && downloadLink.href.length > 0) {
const downloadWindow = window.open(downloadLink.href);
clearTimeout(interval);

if (closeAfterDownload) {
Expand Down

0 comments on commit ccc2573

Please sign in to comment.