Zugriff auf ein Element der Google-Startseite

  • Hallo zusammen,
    mich nervt momentan ungemein diese blöde Abfragerei: "Hinweis zum Datenschutz bei Google". Nun möchte ich auf das Element (rot markiert): "g-flat-button" - dahinter verbirgt sich der Klick auf: "Ich möchte das später lesen" - zugreifen, um mir einen eigenen Firefox-Start zu basteln bei dem dieser Klick automatisch durchgeführt wird.
    Leider gelingt es mir nicht. Ich habe es mit _FFClick() versucht - ohne Erfolg! Vielleicht hat ja jemand eine Idee.
    Hier das HTML-Script, auf das ich zugreifen möchte:

    Spoiler anzeigen


    <!DOCTYPE html>
    <html lang="de" itemtype="http://schema.org/WebPage" itemscope="">


    <head></head>
    <body id="gsr" class="hp vasq" onload="try{if(!google.j.b){document.f&&document.f.q.focus();documen…if(document.images)new Image().src='/images/nav_logo242.png'">
    <div id="viewport" class="ctr-p">
    <div id="doc-info" data-jiis="cc"></div>
    <div id="cst" data-jiis="cc"></div>
    <a style="left:-1000em;position:absolute" href="/setprefs?suggon=2&prev=https://www.google.de/?gws_rd%3Dssl&sig=0_iI_3NrGN28S9A5RVIlP_pzX024o%3D">


    Wenn Sie ein Bildschirmleseprogramm verwenden, kli…


    </a>
    <textarea id="csi" style="display:none"></textarea>
    <script>


    if(google.j.b)document.body.style.visibility='hidd…


    </script>
    <div id="searchform" class="jhp big">
    <script>


    (function(){var _j=1250;try{var s=document.getElem…


    </script>
    <style>


    div#searchform{min-width:980px;z-index:103}div.sfb…


    </style>
    <div id="gb" class="gb_T"></div>
    <div class="sfbg nojsv" style="margin-top:-15px"></div>
    <form id="tsf" class="tsf" role="search" onsubmit="return q.value!=''" name="f" method="GET" style="overflow:visible" action="/search">


    <input type="hidden" name="sclient" value="psy-ab"></input>
    <div id="tophf" data-jiis="uc" data-jibp=""></div>
    <div class="tsf-p">
    <div id="logocont" class="nojsv logocont"></div>
    <div class="sfibbbc"></div>
    <div class="jsb" style="padding-top:18px">
    <center></center>
    </div>
    </div>
    <input type="hidden" name="oq"></input>
    <input type="hidden" name="gs_l"></input>
    <input type="hidden" name="pbx" value="1"></input>
    </form>
    </div>
    <div id="gac_scont"></div>
    <div id="main" class="content" data-jiis="cc">
    <span id="body" class="ctr-p">
    <center>
    <div id="lga" style="height:233px;margin-top:89px">
    <div style="padding-top:109px"></div>
    </div>
    <div style="height:118px"></div>
    <div id="prm-pt" style="margin-top:12px" data-jiis="uc" data-jibp="h"></div>
    </center>
    </span>
    <div id="footer" class="ctr-p">
    <div id="fbarcnt" data-jiis="uc" data-jibp="h" style="height: 137px; visibility: visible;">
    <style>


    .fmulti{}._dQc{bottom:0;left:0;position:absolute;r…


    </style>
    <div id="footcnt">
    <div id="fbar" class="_dQc _E2" style="bottom: 0px; position: absolute;">
    <div class="fbar">
    <div id="cnsi" class="r-iHZSz5PLHrNU" jsl="$t t-ymYd1Vpu-78;$x 0;" data-rtid="iHZSz5PLHrNU" jsaction="dg_dismissed:r.3l2wGYCikXw;dg_not_dismissed:r.KxDw91T2YKs"></div>
    <div class="r-i93u8cSa6Mlg" jsl="$t t-OPsc1yYzuIw;$x 0;">
    <div id="cnsh" class="_vGg i93u8cSa6Mlg-CCX4oQBjiOU" data-ved="0CAkQsmRqFQoTCJX-1NXyiMkCFcUVDwodZncBBQ" style="display: block;">
    <div class="_eIg">
    <div class="_YWg"></div>
    <div class="_tLg">
    <div class="_gIg">


    Hinweis zum Datenschutz bei Google


    </div>
    <div class="_sLg">
    <div class="_g0g">
    <g-flat-button id="cnsd" class="_yKg _Ihg _Lhg" data-ved="0CAoQtGRqFQoTCJX-1NXyiMkCFcUVDwodZncBBQ" tabindex="0" role="button" style="color:#4285f4" jsl="$x 1;" data-rtid="i93u8cSa6Mlg" jsaction="r.qM6dp3zmEyw">


    Ich möchte das später lesen


    </g-flat-button>
    <div class="_h0g"></div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <span id="fsr">
    <a class="_Gs" href="//www.google.de/intl/de/policies/privacy/?fg=1">


    Datenschutzerklärung


    </a>
    <a class="_Gs" href="//www.google.de/intl/de/policies/terms/?fg=1">


    Nutzungsbedingungen


    </a>
    <span style="display:inline-block;position:relative">
    <a id="fsettl" class="_Gs" jsaction="foot.cst" role="button" aria-expanded="false" aria-controls="fsett" href="https://www.google.de/preferences?hl=de">


    Einstellungen


    </a>
    <span id="fsett" style="display:none"></span>
    </span>
    </span>
    <span id="fsl"></span>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div id="footc" data-jiis="uc" data-jibp="h"></div>
    </div>
    <script>


    this.gbar_=this.gbar_||{};(function(_){var window=…


    </script>
    <div class="gb_Ja"></div>
    <style>


    .gb_Ja{display:none!important}@-moz-keyframes gb__…


    </style>
    <script>


    (function(){var ctx=[] ;google.jsc.x(ctx);})();


    </script>
    <script>


    (function(){function k(a){++b;a=a||window.event;go…


    </script>
    <div id="lfootercc" data-jiis="cc"></div>
    </div>
    <script src="/xjs/_/js/k=xjs.qd.de.n-55WuW3erw.O/m=abd,sy99,sy98,sy97,sy1…IhBhMQ/rt=j/d=0/t=zcms/rs=ACT90oHnxufdrpZxC9pidcLJN87km_GzSQ" gapi_processed="true"></script>
    </body>
    </html>


    Mein Versuch war:

    Spoiler anzeigen
    Code
    #include <ff.au3>
    
    
    _FFStart("https://www.google.de/?gws_rd=ssl")
    If _FFIsConnected() Then
    _FFClick("cnsd","id")
    endif


    Ich hoffe auf Eure Hilfe. Bitte keine Antworten wie: "Warum willst Du das haben?" o.Ä.
    Ich will's halt!


    HalleMike

  • Ich würde dazu nicht unbedingt AutoIt verwenden. Die FF.au3 in Ehre, aber du schießt mit Kanonen auf Spatzen, wie man so schön sagt. Kennst du das Firefox-Addon Stylish? Damit kann man für eine Website eigene Stilanpassungen (CSS) schreiben. Damit kannst du einfach den Container um diese Nachricht herum ausblenden (display: none;).

  • Hallo chesstiger!
    Ja und erst einmal vielen Dank für die Idee. Das Problem ist nur, dass ich nicht weiß, wie ich da vorgehen muss, da keine Erfahrung mit diesem AddOn und CSS habe. Im Allgemeinen sind sich ja die Programmiersprachen ähnlich aber eben nur ähnlich. Vielleicht hast du ja die Muße mich da mal anzustoßen, damit ich weiß, wie vorzugehen ist.
    Trotzdem ist das Problem über Autoit zu lösen, nicht uninteressant. Warum komme ich nicht an dieses Button heran?
    Ich würde mein Thema also nocht als erledigt betrachten.

    HalleMik