Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
- Support for IconScout New Update
  • Loading branch information
MrJukeman committed Mar 14, 2024
1 parent 6178209 commit c320d01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "Iconify",
"version" : "1.0.3",
"version" : "1.0.4",
"description" : "Upgrade your designs with our browser extension! Download premium SVG icons and stickers.",
"manifest_version": 3,
"icons": {
Expand Down
7 changes: 5 additions & 2 deletions src/scripts/iconify-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ window.addEventListener("load", function (){
}

// Replace the download button with SVG download button in Iconscout
let iconScoutPremiumDownloadButton = $("<button class='download-icon btn btn-lg btn-primary btn-block'>").text("Download").removeAttr("href");
$("a[href='/pricing'][class='btn btn-lg btn-primary btn-block']").replaceWith(iconScoutPremiumDownloadButton);
let iconScoutPremiumDownloadButton =
$(`<button type="button" class="btn btn-primary has-icon w-100 btn-lg download-icon">Download</button>`).text("Download").removeAttr("href");
const button = $("button[class*='btn'][class*='dropdown-toggle'][class*='btn-primary'][class*='w-100'][class*='btn-lg'][class*='has-icon'][class*='dropdown-toggle-no-caret']");
button.next("ul").remove();
button.replaceWith(iconScoutPremiumDownloadButton);
});

// Options for the observer (which mutations to observe)
Expand Down

0 comments on commit c320d01

Please sign in to comment.