<style> input, textarea { background: black !important; color: white !important; } .button-24 { background: #FF4742; border: 1px solid #FF4742; border-radius: 6px; box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 4px; box-sizing: border-box; color: #FFFFFF; cursor: pointer; display: inline-block; font-family: nunito,roboto,proxima-nova,"proxima nova",sans-serif; font-size: 16px; font-weight: 800; line-height: 16px; min-height: 40px; outline: 0; padding: 12px 14px; text-align: left; text-rendering: geometricprecision; text-transform: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; vertical-align: middle; } .button-24 small { font-weight: 400; padding-right: 5px; text-align: left; } .button-24:hover, .button-24:active { background-color: initial; background-position: 0 0; color: #FF4742; } .button-24:active { opacity: .5; } </style> <form id='formgen'> <label>Enter Url</label> <input placeholder='Mediafire Links Only!' id='link' required type='text'/> <label>Enter Number of Ads</label> <input value='7' id='numads' required type='text'/> <br/> <textarea readonly id='output' style='height: 300px; width: 100%;'></textarea> <div id='outputhtml'></div> <br/> <button class="button-24" type='button' id='generate'>Shorten</button> </form> <script defer='defer' src='https://rawcdn.githack.com/ptcreborn/storehaccounts/43041e010cf8b8435044b3aa1acff4ef2efaa00f/FirebaseModule.js'></script> <script type='module'> window.addEventListener('load', async () => { document.querySelector('#generate').onclick = async () => { console.log('clicked!'); let db = 'https://account-requests-default-rtdb.firebaseio.com/shortenedLinks.json'; let link = document.querySelector('#link').value; try { if (!new URL(link).hostname.includes('mediafire.com') && !new URL(link).hostname.includes('iceyfile.com') && !new URL(link).hostname.includes('pcloud.link') && !new URL(link).hostname.includes('pixeldrain.com')) throw new Error('Not Mediafire or Pcloud!'); } catch (e) { window.alert('Only Mediafire/Pcloud Link acceptable! ' + e); } if (link.includes('pixeldrain.com')) link += '?embed'; let numads = document.querySelector('#numads').value; //let size = document.querySelector('#size').value; let version = link.split('/')[5]; let title = link.split('/')[4]; let progress = numads; link = await FirebaseModule.post(db, JSON.stringify({ 'count': 0, 'targ': btoa(link), 'numads': numads, 'title': title, 'version': version })); link = JSON.parse(link).name; let output = document.querySelector('#outputhtml'); let outputta = document.querySelector('#output'); if (numads == 0) { // means direct link output.innerHTML = '<button disabled id="mdm' + link + '" class="ui inverted teal fluid button">Download</button>'; outputta.value = '<button disabled id="mdm' + link + '" class="ui inverted teal fluid button">Download</button>'; } else { output.innerHTML = '<button disabled id="mdm' + link + '" class="ui inverted teal fluid button">Download</button>'; outputta.value = '<button disabled id="mdm' + link + '" class="ui inverted teal fluid button">Download</button>'; } } }, false); </script>