-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
286 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,36 @@ | ||
<h1 align="center">Welcome to Flaticon Premium Crack 👋</h1> | ||
<p> | ||
<img alt="Version" src="https://img.shields.io/badge/version-1.1-blue.svg?cacheSeconds=2592000" /> | ||
<a href="#" target="_blank"> | ||
<img alt="License: GLP" src="https://img.shields.io/badge/License-GLP-yellow.svg" /> | ||
</a> | ||
<a href="https://twitter.com/razoo_choudhary" target="_blank"> | ||
<img alt="Twitter: razoo_choudhary" src="https://img.shields.io/twitter/follow/razoo_choudhary.svg?style=social" /> | ||
</a> | ||
</p> | ||
<h1>👋 Welcome to Iconify</h1> | ||
|
||
> Download Premium SVG Icons and Stickers For Free | ||
## 🚀 Getting Started | ||
|
||
## 🚀 Install For Firefox | ||
<a href="https://addons.mozilla.org/en-GB/firefox/addon/flat-icons-premium/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search" target="_blank"> | ||
Click Here | ||
</a> | ||
<div style="font-size:14px;"> | ||
<p>Introducing Iconify, the ultimate browser extension for anyone looking to enhance their design projects with high-quality SVG icons. With Iconify, you can easily access and download premium SVG icons from Flaticon,Icons8 and Iconscout one of the largest databases of vector icons available online.</p> | ||
|
||
## 🚀 Install | ||
<p>This extension is supported by Google Chrome, Microsoft Edge and Mozilla Firefox, making it accessible to a wide range of users.</p> | ||
|
||
```sh | ||
- Get the Chrome extension from the Releases section.. | ||
- Add Extension as a Developer in Chrome and Ignore Manifest Warning | ||
- Reload Flaticon | ||
- Search for your icon or sticker | ||
- Click the icon or sticker to open it. | ||
- Now HIT Yellow SVG Button to download | ||
- If you're not already logged in, log in to Flaticon. | ||
- Give this project your support by staring it. | ||
- Enjoy Downloading Unlimited SVG Stickers and Icons. | ||
``` | ||
<p>Whether you are a designer, developer, or just someone who appreciates good design, Iconify is the perfect tool to take your projects to the next level. With its extensive power to download premium icons, you will have access to a vast range of options that will help you create beautiful and professional designs in no time. So why wait? Install Iconify today and start designing like a pro!</p> | ||
</div> | ||
|
||
## 👤 Author | ||
## 🌏 Supported site | ||
|
||
**Raju Choudhary** | ||
> - [Flaticon](https://flaticon.com) | ||
> - [Icons8](https://icons8.com) | ||
> - [Iconscout](https://iconsccout.com/) | ||
* [Twitter](https://twitter.com/razoo\_choudhary) | ||
* [Github](https://github.com/razoo-choudhary) | ||
* [LinkedIn](https://linkedin.com/in/razoo-choudhary) | ||
## 🛠️ Installation | ||
|
||
## 🤝 Contributing | ||
> - <p style="font-size:14px;">Please refer to its documentation for full installation process provided in the useful links section.</p> | ||
Contributions, issues and feature requests are welcome, Feel free to check [issues page](https://github.com/razoo-choudhary/flaticon-premium/issues). | ||
## 📃 Changelog | ||
|
||
## 🤟 Show your support | ||
> - <p style="font-size:14px;">Please refer to its documentation for full changelog history provided in the useful links section.</p> | ||
Give a ⭐️ if this project helped you! | ||
## 🔗 Useful Links | ||
|
||
> - <a href="https://kyutefox.com/products/iconify-browser-extension">Goto Full Documentation</a> | ||
> - <a href="https://kyutefox.com/changelog/iconify-browser-extension">Goto Full Changelog</a> | ||
> - <a href="https://kyutefox.com/">Homepage</a> | ||
> - <a href="https://github.com/razoo-choudhary">Author Profile</a> | ||
## 🤝 Show Your Support | ||
|
||
> - <p style="font-size:14px;">Did this project leave you impressed? Shower some love with a ⭐️!</p> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name" : "Iconify", | ||
"version" : "1.0.0", | ||
"description" : "Upgrade your designs with our browser extension! Download premium SVG icons and stickers.", | ||
"manifest_version": 3, | ||
"icons": { | ||
"32" : "./icons/32.png", | ||
"48" : "./icons/48.png", | ||
"128" : "./icons/128.png", | ||
"256" : "./icons/256.png" | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"https://www.flaticon.com/*", | ||
"https://iconscout.com/*", | ||
"https://icons8.com/*" | ||
], | ||
"js": [ | ||
"./scripts/iconify-jquery.js", | ||
"./scripts/iconify-assets.js", | ||
"./scripts/iconify-snackbar.js", | ||
"./scripts/iconify-main.js" | ||
], | ||
"run_at" : "document_idle", | ||
"all_frames": true | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
//Constants | ||
const LOADING_ICON = $(document).find("#iconify-svg-icon").html(); | ||
const USER = {logged_in : false, id : 0, premium_token : null, active_on : null}; | ||
|
||
// Stylesheet for loading icon and snackbar | ||
const snackbarStyle = `.snackbar-container{transition:top .5s,right .5s,bottom .5s,left .5s,opacity .5s;font-family:Roboto,sans-serif;font-size:14px;min-height:14px;background-color:#070b0e;position:fixed;display:flex;justify-content:space-between;align-items:center;color:#fff;line-height:22px;padding:18px 24px;bottom:-100px;top:-100px;opacity:0;z-index:9999}.snackbar-container .action{background:inherit;display:inline-block;border:none;font-size:inherit;text-transform:uppercase;color:#4caf50;margin:0 0 0 24px;padding:0;min-width:min-content;cursor:pointer}@media (min-width:640px){.snackbar-container{min-width:288px;max-width:568px;display:inline-flex;border-radius:2px;margin:24px}}.snackbar-pos.bottom-center{top:auto!important;bottom:0;left:50%;transform:translate(-50%,0)}.snackbar-pos.bottom-left{top:auto!important;bottom:0;left:0}.snackbar-pos.bottom-right{top:auto!important;bottom:0;right:0}.snackbar-pos.top-left{bottom:auto!important;top:0;left:0}.snackbar-pos.top-center{bottom:auto!important;top:0;left:50%;transform:translate(-50%,0)}.snackbar-pos.top-right{bottom:auto!important;top:0;right:0}@media (max-width:640px){.snackbar-container{left:0;right:0;width:100%}.snackbar-pos.bottom-center,.snackbar-pos.top-center{left:0;transform:none}}`; | ||
const bounceCss = `@keyframes rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.iconify-icon{animation:2s linear infinite rotate}` | ||
// Create snackbar and Loading Icon | ||
const styleElement = document.createElement("style"); | ||
styleElement.textContent = snackbarStyle + bounceCss; | ||
document.head.appendChild(styleElement); | ||
|
||
// Create download | ||
const downloadIcon = function (text = "", downloadAbleName = "", extension = "svg") | ||
{ | ||
let newAnchorElement = document.createElement("a"); | ||
newAnchorElement.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(text)); | ||
newAnchorElement.setAttribute("download", downloadAbleName + `.${extension}`); | ||
newAnchorElement.style.display = "none"; | ||
document.body.appendChild(newAnchorElement); | ||
newAnchorElement.click(); | ||
document.body.removeChild(newAnchorElement); | ||
} | ||
|
||
// Check user logged in state | ||
const checkLoggedInStatus = function () | ||
{ | ||
return USER.hasOwnProperty("logged_in") && USER.logged_in === true; | ||
} | ||
|
||
// Activate the download buttons | ||
const activateButtons = function () | ||
{ | ||
let iconifyPremiumElements = $("#fi-premium-download-buttons"); | ||
iconifyPremiumElements.find(".icon--premium").hide(); | ||
iconifyPremiumElements.find(".modal-body .hr:first").prevUntil("p.font-md.bold").remove(); | ||
|
||
$("section[class='profile']").find("div[class='alert alert-warning']").remove(); | ||
//$(document).find("a[href='/pricing']").remove(); | ||
} | ||
|
||
// load content | ||
window.addEventListener("load", function (){ | ||
|
||
// Observer to observe the content changes on page. | ||
let targetNode = document.body; | ||
let observer = new MutationObserver(function (mutations) | ||
{ | ||
mutations.forEach(function (mutation) { | ||
activateButtons(); | ||
}); | ||
|
||
// flaticon | ||
if($(document).find("#gr_user_menu_avatar").length > 0) | ||
{ | ||
let userAccount = $(document).find("#gr_user_menu_avatar").find("img").attr("alt"); | ||
userAccount = userAccount.replace(/^user/, ""); | ||
USER.logged_in = true; | ||
USER.id = userAccount; | ||
USER.active_on = "flaticon"; | ||
} | ||
|
||
// icon8 | ||
if($(document).find(".i8-header__login").find(".username").length > 0) | ||
{ | ||
let userAccount = $(document).find(".i8-header__login").find(".username").html(); | ||
USER.logged_in = true; | ||
USER.id = userAccount; | ||
USER.active_on = "icons8"; | ||
} | ||
|
||
// iconscout | ||
if($(document).find(".userProfile_UGnys h3").length > 0) | ||
{ | ||
let userAccount = $(document).find(".userProfile_UGnys h3").text(); | ||
USER.logged_in = true; | ||
USER.id = userAccount; | ||
USER.active_on = "iconscout"; | ||
} | ||
|
||
// 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); | ||
}); | ||
|
||
// Options for the observer (which mutations to observe) | ||
let config = { attributes: true, childList: true, subtree: true }; | ||
observer.observe(targetNode, config); | ||
|
||
// Add download SVG button in Icons8 modal after clicking the original available download button | ||
let icons8DownloadButton = '<center><button style="margin-bottom: 25px;width: 93%;" class="download-svg-ry i8-button--primary i8-button--large i8-button"><div data-v-969e794c="" class="dim__primary-btn-icon"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1C9 0.447715 9.44771 0 10 0C10.5523 0 11 0.447715 11 1V11.0703L14.8632 7.20711C15.2537 6.81658 15.8869 6.81658 16.2774 7.20711L16.3632 7.29289C16.7537 7.68342 16.7537 8.31658 16.3632 8.70711L10 15.0703L3.63679 8.70711C3.24627 8.31658 3.24627 7.68342 3.63679 7.29289L3.72258 7.20711C4.11311 6.81658 4.74627 6.81658 5.13679 7.20711L9 11.0703V1Z" fill="#88DD9F"></path><path d="M0 19C0 18.4477 0.447716 18 1 18H19C19.5523 18 20 18.4477 20 19C20 19.5523 19.5523 20 19 20H1C0.447715 20 0 19.5523 0 19Z" fill="#88DD9F"></path></svg></div> Download </button></center>'; | ||
$(document).on("click", ".app-accordion2__main-buttons .i8-button--primary.i8-button--large.i8-button", function (e) { | ||
let downloadModalFooterElement = $(document).find(".dim__footer"); | ||
downloadModalFooterElement.after(icons8DownloadButton); | ||
}); | ||
|
||
// Download SVG from Icons8 | ||
$(document).on("click", ".download-svg-ry", function(e){ | ||
if(!checkLoggedInStatus()) | ||
{ | ||
Snackbar.show({ text : "Please login to download the icon." }); | ||
return; | ||
} | ||
try | ||
{ | ||
let clickedButtonElement = $(this); | ||
let idElement = $("#dim__preview .dim__preview-icons .dim__preview-icon-wrapper"); | ||
let value = idElement.attr("id"); | ||
if(value) | ||
{ | ||
value = value.substring(1); | ||
value = value.substring(0, value.lastIndexOf("-")); | ||
$.ajax({ | ||
url : `https://api-icons.icons8.com/siteApi/icons/icon?id=${value}&info=true&language=en-US&svg=true`, | ||
method : "GET", | ||
dataType : "JSON", | ||
beforeSend : function (){ | ||
clickedButtonElement.html(LOADING_ICON); | ||
}, | ||
success : function (response){ | ||
const iconName = response.icon.name ?? value; | ||
const svg = response.icon.svg ?? ""; | ||
if(svg.length > 0) | ||
{ | ||
downloadIcon(atob(svg), iconName); | ||
} | ||
else | ||
{ | ||
Snackbar.show({ text : "Icon / Asset is not available in SVG format."}); | ||
} | ||
clickedButtonElement.html('<div data-v-969e794c="" class="dim__primary-btn-icon"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1C9 0.447715 9.44771 0 10 0C10.5523 0 11 0.447715 11 1V11.0703L14.8632 7.20711C15.2537 6.81658 15.8869 6.81658 16.2774 7.20711L16.3632 7.29289C16.7537 7.68342 16.7537 8.31658 16.3632 8.70711L10 15.0703L3.63679 8.70711C3.24627 8.31658 3.24627 7.68342 3.63679 7.29289L3.72258 7.20711C4.11311 6.81658 4.74627 6.81658 5.13679 7.20711L9 11.0703V1Z" fill="#88DD9F"></path><path d="M0 19C0 18.4477 0.447716 18 1 18H19C19.5523 18 20 18.4477 20 19C20 19.5523 19.5523 20 19 20H1C0.447715 20 0 19.5523 0 19Z" fill="#88DD9F"></path></svg></div> Download') | ||
} | ||
}) | ||
} | ||
} | ||
catch(e) | ||
{ | ||
Snackbar.show({ text : "Something went wrong while downloading the icon, Hot reload the page." }); | ||
} | ||
}) | ||
}) | ||
|
||
// Download SVG from Iconscout | ||
$(document).on("click", ".download-icon", function(e){ | ||
if(!checkLoggedInStatus()) | ||
{ | ||
Snackbar.show({ text : "Please login to download the icon." }); | ||
return; | ||
} | ||
|
||
let product_id = 0; | ||
let clickedButtonElement = $(this); | ||
clickedButtonElement.html(LOADING_ICON); | ||
// Get the product id from the meta tag | ||
$('meta[data-n-head="ssr"][property="og:product_id"]').each(function(){ | ||
product_id = $(this).attr("content"); | ||
let propEditor = $(document).find("#pdpColorEditor-" + product_id).html(); | ||
if(propEditor.length > 0) | ||
{ | ||
setTimeout(function(){ | ||
downloadIcon(propEditor, product_id); | ||
clickedButtonElement.html("Download"); | ||
}, 3000) | ||
} | ||
}) | ||
}); | ||
|
||
|
||
// Download SVG from Flaticon | ||
$(document).on("click", ".btn-svg", function(e){ | ||
if(!checkLoggedInStatus()) | ||
{ | ||
Snackbar.show({ text : "Please login to download the icon." }); | ||
return; | ||
} | ||
try | ||
{ | ||
let clickedButtonElement = $(this); | ||
|
||
$(".modal-download-detail__content").remove(); | ||
$(".detail__editor").addClass("hide"); | ||
$(".detail__top").removeClass("hide"); | ||
clickedButtonElement.html(LOADING_ICON); | ||
let meta = $('meta[name="twitter:image"]').prop("content").replace("https://cdn-icons-png.flaticon.com/", ""); | ||
let metaSplit = meta.split("/"); | ||
let iconType = $("#detail").attr("data-icon_type"); | ||
let iconId = metaSplit[metaSplit.length - 1].replace(".png", ""); | ||
let iconName = $(`li.icon--item[data-id='${iconId}']`).attr("data-name"); | ||
if(typeof iconName === "undefined") | ||
{ | ||
iconName = $(`section#detail[data-id='${iconId}']`).attr("data-name"); | ||
} | ||
if(typeof iconName === "undefined") | ||
{ | ||
iconName = iconId | ||
} | ||
fetch(`https://www.flaticon.com/editor/icon/svg/${iconId}?type=${iconType}&_auth_premium_token=${USER.premium_token}`).then( response => response.json() ).then( data => { | ||
fetch(data.url).then((res) => { | ||
res.text().then((text) => { | ||
downloadIcon(text, `${iconName}`) | ||
clickedButtonElement.html("SVG"); | ||
}) | ||
}); | ||
}) | ||
} | ||
catch (e) | ||
{ | ||
Snackbar.show({ text : "Something went wrong while downloading the icon, Hot reload the page." }); | ||
} | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.