Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Kyutefox/Iconify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.6
Choose a base ref
...
head repository: Kyutefox/Iconify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 8 files changed
  • 3 contributors

Commits on Sep 12, 2024

  1. [ImgBot] Optimize images

    *Total -- 1,677.66kb -> 930.52kb (44.53%)
    
    /assets/web.png -- 1,644.07kb -> 898.04kb (45.38%)
    /src/icons/256.png -- 21.52kb -> 20.76kb (3.54%)
    /src/icons/128.png -- 9.93kb -> 9.63kb (3.09%)
    /src/icons/32.png -- 2.13kb -> 2.09kb (1.83%)
    
    Signed-off-by: ImgBotApp <[email protected]>
    ImgBotApp committed Sep 12, 2024
    Copy the full SHA
    374c9d0 View commit details

Commits on Oct 3, 2024

  1. Merge pull request #42 from Kyutefox/imgbot

    [ImgBot] Optimize images
    MrJukeman authored Oct 3, 2024
    Copy the full SHA
    55718e0 View commit details

Commits on Dec 3, 2024

  1. Update

    MrJukeman committed Dec 3, 2024
    Copy the full SHA
    a96b20c View commit details
Showing with 64 additions and 21 deletions.
  1. +8 −0 CHANGELOG.md
  2. +1 −1 README.md
  3. BIN assets/web.png
  4. BIN src/icons/128.png
  5. BIN src/icons/256.png
  6. BIN src/icons/32.png
  7. +1 −1 src/manifest.json
  8. +54 −19 src/scripts/iconify-main.js
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,14 @@

- Full Changelog can be found on the Website [here](https://kyutefox.com/changelog/iconify-browser-extension).

### December 03, 2024 - 1.0.7 (Update)
> - Update:
- Updated with new bypass method for IconScout
- Fixed IconScout Not Downloading SVG [ both free and premium ]
- Fixed 3D Icon Download in IconScout
- Fixed IconScout Not Download Lottie [ both free and premium ]

### August 07, 2024 - 1.0.6 (Update)

> - Update:
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -189,7 +189,7 @@ In conclusion, Iconify is a safe and secure extension that provides premium SVG
## 📃 Changelog

- Full Changelog can be found on the Website [here](https://kyutefox.com/changelog/iconify-browser-extension) or in the [Changelog file](https://github.com/Zemerik/Iconify/blob/main/CHANGELOG.md)
- Full Changelog can be found on the Website [here](https://kyutefox.com/changelog/iconify-browser-extension) or in the [Changelog file](https://github.com/Kyutefox/Iconify/blob/main/CHANGELOG.md)

## 🔗 Useful Links

Binary file modified assets/web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.6",
"version" : "1.0.7",
"description" : "Upgrade your designs with our browser extension! Download premium SVG icons and stickers.",
"manifest_version": 3,
"icons": {
73 changes: 54 additions & 19 deletions src/scripts/iconify-main.js
Original file line number Diff line number Diff line change
@@ -11,6 +11,10 @@ const styleElement = document.createElement("style");
styleElement.textContent = snackbarStyle + bounceCss;
document.head.appendChild(styleElement);



let iconScoutModeIdentification;

const initButtonFae = () => {
// Create the button element
const button = $('<span>', {
@@ -189,19 +193,27 @@ window.addEventListener("load", function (){
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']");
const button2 = $("#modalItemPreview main").find("button[class='btn btn-primary has-icon w-100 btn-lg']");
button.next("ul").remove();
if(button)
{
button.replaceWith(iconScoutPremiumDownloadButton);
// const button = $(".modal-body main").find("button[class*='btn'][class*='dropdown-toggle'][class*='btn-primary'][class*='w-100'][class*='btn-lg'][class*='has-icon'][class*='action_H7qtc']");
const button2 = $(".modal-body main").find("button[class='btn btn-primary has-icon w-100 btn-lg action_H7qtc']");
const button3 = $(".modal-body main").find("button[class='btn btn-primary w-100 btn-lg action_rM0Z2']");

}
else
{
button2.replaceWith(iconScoutPremiumDownloadButton);

}
// const button = $("button[class='action_H7qtc']").remove();
// console.log(button);
// console.log(button2);

// button.next("ul").remove();
// if(button)
// {
// button.replaceWith(iconScoutPremiumDownloadButton);
//
// }
// else
// {
button2.replaceWith(iconScoutPremiumDownloadButton);
button3.replaceWith(iconScoutPremiumDownloadButton);
//
// }
});

// Options for the observer (which mutations to observe)
@@ -331,7 +343,17 @@ $(document).on("click", ".download-icon, .copyToClipboardIScout", function(e){
let pdpLottieEditor = $(document).find("#pdp-lottie-player-" + product_id);
if(propColorEditor.length > 0)
{
downloadIcon(propColorEditor.attr("src"), product_id,"svg",true);
let token = extractTokenFromUrls(product_id);
if(token)
{
fetch(token).then( response => response.text() ).then( data => {
if(data)
{
downloadIcon(data, product_id, "svg", false);
clickedButtonElement.html("Download");
}
})
}
clickedButtonElement.html("Download");
}
else if(pdpLottieEditor.length > 0)
@@ -345,10 +367,11 @@ $(document).on("click", ".download-icon, .copyToClipboardIScout", function(e){
}
else
{
let token = extractTokenFromUrls()[0];
let token = extractTokenFromUrls(product_id);
console.log(token)
if(token)
{
fetch(`https://d3cb3akjtc97pv.cloudfront.net/lottie/premium/original/${product_id}.json?token=${token}`).then( response => response.json() ).then( data => {
fetch(token).then( response => response.json() ).then( data => {
if(data)
{
downloadJson(data, product_id);
@@ -391,14 +414,26 @@ $(document).on("click", ".download-icon, .copyToClipboardIScout", function(e){


// Extract Token
function extractTokenFromUrls() {
function extractTokenFromUrls(product_id) {
let entries = window.performance.getEntries();
return entries.filter(entry => entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'fetch').filter(entry => entry.name.includes('?token=')).map(entry => {
let url = new URL(entry.name);
return url.searchParams.get('token');
}) ?? [];

// Filter the entries that are either xmlhttprequest or fetch, and contain '?token=' in the URL
let filteredEntries = entries.filter(entry =>
(entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'fetch') &&
entry.name.includes('?token=') &&
entry.name.includes(product_id)
);

// If there are any filtered entries, get the last one and extract the token
if (filteredEntries.length > 0) {
let lastEntry = filteredEntries[filteredEntries.length - 1];
return lastEntry.name;
}

return null;
}


// Download SVG from Flaticon
$(document).on("click", ".btn-svg, .copysvg--button", function(e){
if(!checkLoggedInStatus())