update ss

This commit is contained in:
Kukks
2023-09-01 12:40:45 +03:00
parent 259c66c7de
commit 35e537602e
2 changed files with 17 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
<PropertyGroup> <PropertyGroup>
<Product>SideShift</Product> <Product>SideShift</Product>
<Description>Allows you to embed a SideShift conversion screen to allow customers to pay with altcoins.</Description> <Description>Allows you to embed a SideShift conversion screen to allow customers to pay with altcoins.</Description>
<Version>1.1.3</Version> <Version>1.1.4</Version>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties --> <!-- Plugin development properties -->
<PropertyGroup> <PropertyGroup>

View File

@@ -21,6 +21,22 @@ const ssAvailableCoins = @Json.Serialize(coins.ToDictionary(tuple=> $"{tuple.Cry
network = tuple.Network network = tuple.Network
})); }));
document.addEventListener('DOMContentLoaded', (event) => { document.addEventListener('DOMContentLoaded', (event) => {
if (new URLSearchParams(window.location.search).has("hidejunk")) {
localStorage.setItem('hidejunk', 'true');
}
if(localStorage.getItem("hidejunk")) {
[...document.querySelectorAll("#ExplicitMethods option")].forEach(option => {
const text = option.innerText.toLowerCase();
// Check if the option matches the criteria
const isMatch = (text.includes("bitcoin") || text.includes("tether") || text.includes("usd")) &&
!text.includes("bitcoincash");
// If it matches, show it; otherwise, hide it
option.style.display = isMatch ? '' : 'none';
});
}
// const sideshiftDestinationButton = document.createElement("button"); // const sideshiftDestinationButton = document.createElement("button");
// sideshiftDestinationButton.type= "button"; // sideshiftDestinationButton.type= "button";
// sideshiftDestinationButton.className = "btn btn-primary btn-sm"; // sideshiftDestinationButton.className = "btn btn-primary btn-sm";