Skip to content

Commit

Permalink
Diferencia cores dos valores gerados pela extensão
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
natenho committed Oct 30, 2021
1 parent b55dc8a commit 538e4a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ $(".ui-search-layout__item").each(function () {

var totalPriceHtml = '<span class="price__fraction">' + Number(totalPrice).toLocaleString("pt-br", {minimumFractionDigits: 2});
totalPriceHtml = totalPriceHtml.replace(',', '</span><span class="price-tag-cents" style="left:0">');
totalPriceHtml = totalPriceHtml + '</span>';
totalPriceHtml = totalPriceHtml + '</span></span>';

var shippingPriceHtml = shippingPriceElement.html().replace('<sup>', '<span class="price-tag-cents" style="left:0">');
shippingPriceHtml = shippingPriceHtml.replace('</sup>', '</span>');

productPriceElement.append('+' + shippingPriceHtml + '= ' + totalPriceHtml);
productPriceElement.append('&plus;<span style="color:#3483fa !important;">' + shippingPriceHtml + '</span>&equals;<span style="color:#3483fa !important; font-weight: bolder !important;">' + totalPriceHtml + "</span>");
}

var shippingDetailElement = $(response).find(".ui-pdp-container__row--shipping-summary .ui-pdp-media__title");
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Mercado Livre Plus",
"description": "Extensão para Google Chrome que melhora a listagem de produtos no Mercado Livre.",
"version": "0.0.0.7",
"version": "0.0.0.8",
"action": {
"default_icon": "icon96.png",
"default_popup": "popup.html"
Expand Down

0 comments on commit 538e4a6

Please sign in to comment.