diff --git a/Plugins/BTCPayServer.Plugins.SideShift/BTCPayServer.Plugins.SideShift.csproj b/Plugins/BTCPayServer.Plugins.SideShift/BTCPayServer.Plugins.SideShift.csproj index 9f1cdbe..bdc5098 100644 --- a/Plugins/BTCPayServer.Plugins.SideShift/BTCPayServer.Plugins.SideShift.csproj +++ b/Plugins/BTCPayServer.Plugins.SideShift/BTCPayServer.Plugins.SideShift.csproj @@ -9,7 +9,7 @@ SideShift Allows you to embed a SideShift conversion screen to allow customers to pay with altcoins. - 1.1.3 + 1.1.4 diff --git a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml index 01a5afc..8436832 100644 --- a/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml +++ b/Plugins/BTCPayServer.Plugins.SideShift/Views/Shared/SideShift/PrismEnhance.cshtml @@ -21,6 +21,22 @@ const ssAvailableCoins = @Json.Serialize(coins.ToDictionary(tuple=> $"{tuple.Cry network = tuple.Network })); 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"); // sideshiftDestinationButton.type= "button"; // sideshiftDestinationButton.className = "btn btn-primary btn-sm";