<script type="text/javascript"> atOptions = { 'key' : 'cc3b17b3d88c95500f8a72553d34420b', 'format' : 'iframe', 'height' : 250, 'width' : 300, 'params' : {} }; </script> <script type="text/javascript" src="//www.highperformanceformat.com/cc3b17b3d88c95500f8a72553d34420b/invoke.js"></script> <div class='ui message'>Your request will process shortly, kindly standby <i class="blind icon"></i> <button id='proceed' class='ui blue big button' style='display: none;'><i class="arrow alternate circle right icon"></i> Proceed</button></div> <script> (function(ytp){ var d = document, s = d.createElement('script'), l = d.scripts[d.scripts.length - 1]; s.settings = ytp || {}; s.src = "\/\/wry-boss.com\/bcX.VXs\/dfGtlQ0AY\/WhcE\/we\/mH9cuwZdU_l\/kjP_TyYW1iMjjPEvzMN-DwIjtcNLjGU\/yCMlTHMG0vMnwk"; s.async = true; s.referrerPolicy = 'no-referrer-when-downgrade'; l.parentNode.insertBefore(s, l); })({}) </script> <script type='module'> (async() => { window.addEventListener('load', async() => { await initFunctions(['supabase']); // Pattern // btoa('1tFmC8rw') + '-27-' + btoa('0-27-mariahbaileywalker29-gmail-com-27-EN-27-Dinglenuts-Type-1.jpg') // input will come from GMAIL // https://i.postimg.cc/k4KN1Xd1/0-27-b-WFya-WFo-Ym-Fpb-GV5d2-Fsa2-Vy-Mjl-AZ21ha-Wwu-Y29t-27-EN-27-Dinglenuts-Type-1.jpg const split_code = '-27-'; let url = decodeURIComponent(window.location.href); url = new URL(url); let params = new URLSearchParams(url.search); if(!params) return; url = params.get('request'); url = url.split(split_code); let identifier = atob(url[0]); let info = atob(url[1]); let email = atob(info.split(split_code)[1].replaceAll('-', '').replaceAll('26', '=')); info = info.split(split_code); info[1] = email; info = info.join(split_code); let request_id = 0; // index 0: is the identifier // index 1: is the details await sendRequest(identifier); const button = document.getElementById('proceed'); button.onclick = () => { window.location.href = `https://storehaccounts.blogspot.com/p/account-decoder-3.html?id=${request_id}&cache=${btoa(info)}`; } button.style.display = 'block'; async function sendRequest(identifier) { let account_id = await getAccountID(info); let { data, error } = await supabase.from('account-requests').upsert({ date: "now()", type: !account_id ? 1 : account_id, email: email, code: identifier }).select('id'); if (await handleError(error, 'sendRequest', async() => { request_id = await getRequestID(identifier); })) request_id = data[0].id; } async function getRequestID(identifier) { let { data, error } = await supabase.from('account-requests').select('id').eq('code', identifier); if (!handleError(error, 'getRequestID', null)) return; return data[0].id; } async function handleError(error, funcName, callback) { if (error) { console.log(`Error detected in ${funcName} showing ${error.message}`); if (callback()) await callback(); return; } return "No errors!"; } async function getAccountID(info) { let acc_type = info.split(split_code); let { data, error } = await supabase.from('accounts').select('id').eq('name', acc_type[3].replaceAll('.jpg', '').replaceAll('-', ' ')); if (error) { console.log(`Error in getAccountID: ${error.message}`); return; } if (data.length == 0) { console.log(`Empty data!: ${data}`); return; } return data[0].id; } }, false); })(); </script>