Skip to content

Commit

Permalink
Minor updates to price checker
Browse files Browse the repository at this point in the history
  • Loading branch information
keybraker committed Feb 10, 2024
1 parent 5432a77 commit 9764f22
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Binary file added build.zip
Binary file not shown.
13 changes: 11 additions & 2 deletions src/decorators/PriceCheckerIndicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class PriceCheckerIndicator {

const icon = document.createElement("div");
const brand = document.createElement("div");
const brandLink = document.createElement("a");
const information = document.createElement("div");
const disclaimer = document.createElement("div");

Expand Down Expand Up @@ -86,16 +87,24 @@ export class PriceCheckerIndicator {
information.textContent = this.state.language === Language.ENGLISH
? `${formattedLowestPrice}€ is the lowest price with shipping apart from "Buy through Skroutz"`
: `${formattedLowestPrice}€ είναι η χαμηλότερη τιμή με μεταφορικά εκτός "Αγορά μέσω Skroutz"`;
information.title = `(note that "Buy through Skroutz" is ${this.btsPrice}€ + ${shippingCost}€ shipping)`;
colFlex.appendChild(information);

const goToStoreButton = this.goToStoreButtonCreator(isLowestPrice);
colFlex.appendChild(goToStoreButton);

brand.textContent = "by reSkroutzed";
brandLink.href = "https://paypal.me/tsiakkas";
brandLink.textContent = "by reSkroutzed";
brandLink.classList.add("icon-border", "font-bold");

brand.appendChild(brandLink);
brand.appendChild(icon);

brand.appendChild(icon);
colFlex.appendChild(brand);

priceIndication.title = this.state.language === Language.ENGLISH
? `(note that "Buy through Skroutz" is ${this.btsPrice}€ + ${shippingCost}€ shipping)`
: `(σημειώστε ότι "Αγορά μέσω Skroutz" είναι ${this.btsPrice}€ + ${shippingCost}€ μεταφορικά)`;
priceIndication.appendChild(colFlex);

return priceIndication;
Expand Down
2 changes: 1 addition & 1 deletion src/manifest_chrome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reSkroutzed",
"description": "Flags sponsored products on Skroutz.gr",
"version": "1.6.1",
"version": "1.6.2",
"manifest_version": 3,
"permissions": [],
"host_permissions": [
Expand Down
2 changes: 1 addition & 1 deletion src/manifest_firefox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reSkroutzed",
"description": "Flags sponsored products on Skroutz.gr",
"version": "1.6.1",
"version": "1.6.2",
"manifest_version": 3,
"permissions": [],
"host_permissions": [
Expand Down

0 comments on commit 9764f22

Please sign in to comment.