// apple_script_url.js // RJM Programming // February, 2022 // Make apple_script_url.php useful var firstloc='HTTP://localhost:8888/'; var locfound=false; var asuwo=null; function justplayme() { if (locfound) { asuwo=window.open(firstloc + 'apple_script_url.php?justplay=y&showothers=y&tsplus=' + encodeURIComponent(document.URL.split('#')[0].replace('HTTP','http').replace(/\./g,'_').replace(/\?/g,'_').replace(/\&/g,'_').replace(/\=/g,'_').replace(/\:/g,'_').replace(/\//g,'_')) + '&url=' + encodeURIComponent(document.URL.split('#')[0]),'_blank','top=50,left=50,width=50,height=50'); setTimeout(checkasu, 5000); } } function checkasu() { if (asuwo.closed) { // local web server there if (!locfound) { document.body.innerHTML+='
📝
'; } locfound=true; asuwo=null; } else { locfound=false; asuwo.close(); asuwo=null; } } if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) { asuwo=window.open(firstloc + 'apple_script_url.php?imagetest=apple_script_url_test.jpg','_blank','top=30,left=' + eval(-30 + eval('' + screen.width)) + ',width=50,height=50'); setTimeout(checkasu, 2000); }