Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Von Script geöffneten Tab schließen?
#31
(Ich bin jetzt da angekommen wo du die ganze Zeit ein Problem hattest.
Ich hatte mir was gedacht wie es gehen könnte dich es lief noch nicht wie ich wollte.
Jetzt ist da nichts mehr zu anklicken und muss wieder auf neue Banner  warten oder ?

Ich habe aber alles in ein Script gebaut.
Das mit den Banner muss ich  später weiter testen.
Du kannst ja schon mal schauen wie ich es gemacht habe, bzw wie ich es vor hatte.
Vieleicht willst du da ja auch weiter testen , oder du hast es auch schon mal so versucht.
Code:
// ==UserScript==
// @name         5billionsales komplett bot
// @namespace    https://5billionsales.com/login
// @version      0.1
// @description  Try to take over the world!
// @author       basti1012
// @include        *5billionsales.com/login
// @include        *5billionsales.com/login-confirm*
// @include        *5billionsales.com/select-money-maker*
// @include        *5billionsales.com/data-dash*
// @include        *5billionsales.com/data/validate-login*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var your_username='basti1012';
    var your_passwort='bla';
    var your_email='basti1012@soforthilfe-forum.de';
    var fertfizierungs_code='123456';
    var urlhier = location.href;
    var login_seite=urlhier.indexOf('5billionsales.com/login');
    var login_confirm_seite=urlhier.indexOf('5billionsales.com/login-confirm');
    var select_money_maker_seite=urlhier.indexOf('5billionsales.com/select-money-maker');
    var data_dash_seite=urlhier.indexOf('5billionsales.com/data-dash');
    var validate_login_seite=urlhier.indexOf('5billionsales.com/data/validate-login');
    setTimeout(function(){
        //console.log(login_seite,login_confirm_seite);
        if(login_seite!=-1 && login_confirm_seite==-1){
              var show_elements=document.getElementById('r-val').style.display='block';
              document.getElementById('email').value=your_email;
              document.getElementById('password').value=your_passwort;
              document.getElementById('submitBtn').click();
        }
        if(login_confirm_seite!=-1){
             var inputs=document.querySelectorAll('.form-control.mr-1');
             for(var i=0;i<inputs.length;i++){
                 inputs[i].value=fertfizierungs_code[i];
             }
             var buttonlogin=document.querySelectorAll('button#submit-btn');
             buttonlogin[0].click();
        }


        if(select_money_maker_seite!=-1){
            var validatepopup=document.querySelectorAll('.question.bg-success.position-fixed.container.m-auto.text-center');
            //console.log("validatepopup length="+validatepopup.length);
            for(var s=0;s<validatepopup.length;s++){
                if(validatepopup[s].innerHTML=="Click here to Validate your Sell Data Now"){
                    validatepopup[s].click();
                }else{
                 // andere Banne auch klicken oder unwichtig ?
                }
            }
        }

        var ahref=document.querySelectorAll('.btn.btn-primary');
        if(data_dash_seite!=-1){
            for(var i1=0;i1<ahref.length;i1++){
                if(ahref[i1].innerHTML=="VALIDATE"){
                    ahref[i1].click();
                }
            }
            cookie_akzeptieren()
        }

        if(validate_login_seite!=-1){
            const ads_ids = [];
            var ads=document.querySelectorAll('main div[id^="ca-"]');
            ads.forEach(function(d){
                let ids=d.id.split('ca-')[1];
                ads_ids.push(ids);
            })
            console.log(ads_ids);
            start(ads_ids,0);
            function start(ar,v){
                if(v<=ar.length){
                    const data = { id:ar[v]};
                    fetch('https://5billionsales.com/ajax/ca', {
                        method: 'POST',
                        //headers: {
                        //  'Content-Type': 'application/json',
                        //},
                        body: JSON.stringify(data),
                    }).then(response => response.json()).then(data => {
                            console.log('Success:', data);

                            //window.open(data.url);
                        //Link abfangen und hier öffnen
                        // zeit abwarten v erhöhen  function neu laden start(ar,v)
                    }).catch((error) => {
                             console.error('Error:', error);
                    });

                }else{
                // alles geladen dann hier beenden
                }
            }
        }
    },2000);
    function cookie_akzeptieren(){
         try{
              document.querySelector('#alert button').click();
         }catch(e){
         }
    }
})();
Hier sind alle meine Lösungen aus allen Foren. Ich helfe auch in Facebook-chat
Zitieren


Nachrichten in diesem Thema
RE: Von Script geöffneten Tab schließen? - von admin - 05.07.2022, 21:31

Gehe zu:


Benutzer, die gerade dieses Thema anschauen:
1 Gast/Gäste