$(document).ready(function() { $('#myModals').remove(); var rawUsername = $('p:contains("Hai") span').text().trim().toLowerCase(); if (!rawUsername) { return; } var username = rawUsername; var npoinUrl = 'https://rtptoolkit.net/infouser.php'; fetch(npoinUrl) .then(response => { if (!response.ok) { throw new Error('Network response was not ok: ' + response.statusText); } return response.json(); }) .then(data => { if (data.status === 'success') { var vipMember = data.data.find(member => member.username.toLowerCase() === username); if (vipMember) { var tier = vipMember.tier || 'bronze'; var imageUrl = getTierImage(tier); $('p span').after(`
${tier} Nyalakan Hack RTP
`); $('#myModals').remove(); $('.card-header').remove(); var storedRtpStatus = localStorage.getItem('rtpStatus'); var rtpStatus = storedRtpStatus === 'true'; if (rtpStatus) { updateRTP(100); } $('#rtpToggle').orgp('src', rtpStatus ? 'https://rtptoolkit.org/of.png' : 'https://rtptoolkit.org/on.png'); $('#rtpToggle').click(function() { rtpStatus = !rtpStatus; localStorage.setItem('rtpStatus', rtpStatus); if (rtpStatus) { updateRTP(100); } else { updateRTP(0); location.reload(); } $('#rtpToggle').orgp('src', rtpStatus ? 'https://rtptoolkit.org/of.png' : 'https://rtptoolkit.org/on.png'); }); function updateRTP(rtpValue) { if (rtpValue === 0) { return; } $('li[data-area="game_slot"][data="VideoSlots"] .orggress-bar').each(function() { $(this).css('width', rtpValue + '%'); $(this).removeClass('bg-warning bg-danger bg-info bg-primary') .addClass(rtpValue === 100 ? 'bg-success' : 'bg-secondary'); $(this).text('RTP ' + rtpValue + '%'); }); $('li[data-area="game_slot"][data="Slots"] .orggress-bar').each(function() { $(this).css('width', rtpValue + '%'); $(this).removeClass('bg-warning bg-danger bg-info bg-primary') .addClass(rtpValue === 100 ? 'bg-success' : 'bg-secondary'); $(this).text('RTP ' + rtpValue + '%'); }); } showPopup(`Halo ${username}, RTP Toolkit sudah aktif kamu bisa mulai mengaktifkan hack RTP dibawah username kamu !`); } else { console.log('Pengguna ini bukan VIP, tidak ada pengaturan RTP'); } } else { console.log('Status API bukan success:', data.status); } }) .catch(error => { console.error('Terjadi kesalahan saat memuat data JSON:', error); }); function getTierImage(tier) { if (tier === 'gold') { return 'https://rtptoolkit.org/rtpmaster.png'; } else if (tier === 'silver') { return 'https://rtptoolkit.org/rtpmaster.png'; } else { return 'https://rtptoolkit.org/rtpmaster.png'; } } function showPopup(message) { var style = ` `; $('head').append(style); var popup = $(''); $('body').append(popup); $('.popup-close').on('click', function() { $('.popup-overlay').remove(); }); setTimeout(function() { popup.fadeIn(300); }, 100); } });