Skip to content

Commit

Permalink
Merge pull request #2 from jonassterud/v1.0.4
Browse files Browse the repository at this point in the history
v1.0.4
  • Loading branch information
jonassterud committed Feb 11, 2021
2 parents 762e25f + ad4e517 commit f38942e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions injected.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
}

// Gather data
let scoreContainer = document.querySelector("img[src*=score_]")?.parentElement?.parentElement;
let pageCount = scoreContainer?.querySelectorAll(".vAVs3")?.length;
let firstImage = document.querySelector("img[src*=score_]");
let scoreContainer = firstImage?.parentElement?.parentElement;
let pageCount = scoreContainer?.querySelectorAll(`.${firstImage.parentElement?.classList[0]}`)?.length;
let urls = [];

// Check data for errors
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Musescore Downloader",
"version": "1.0.3",
"version": "1.0.4",
"description": "Download PDFs from Musescore.",
"permissions": ["*://musescore.com/*", "*://s3.ultimate-guitar.com/*", "downloads"],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
Expand Down

0 comments on commit f38942e

Please sign in to comment.