• 20. Juni 2025
  • 4 Min

Book­mar­klet for extra­c­ting key­words from Gemi­ni search

𝗪𝗲 𝗰𝗮𝗻 𝗻𝗼𝘄 𝗲𝘅𝘁𝗿𝗮𝗰𝘁 𝗚𝗲𝗺𝗶𝗻𝗶’𝘀 𝘀𝗲𝗮𝗿𝗰𝗵 𝗽𝗿𝗼𝗺𝗽𝘁𝘀 – 𝗵𝗲𝗿𝗲’𝘀 𝗵𝗼𝘄

First, save the first code as a bookmark.

Then, open your deve­lo­per con­so­le manually:

Windows/Linux: Press F12 or Ctrl + Shift + I

Mac: Press Cmd + Opti­on + I

Final­ly, click the book­mark (keep the con­so­le open).

 

javascript:(() => {  if (window.batchexecuteInterceptorActive) {    console.warn('Interceptor bereits aktiv.');    return;  }  window.batchexecuteInterceptorActive = true;  window.batchexecuteResponses = [];  const originalFetch = window.fetch;  window.fetch = function(input, init) {    const url = (typeof input === 'string') ? input : input.url;    if (url && url.includes(%27batchexecute%27)) {      return originalFetch.apply(this, arguments).then(async response => {        try {          const clonedResponse = response.clone();          const text = await clonedResponse.text();          window.batchexecuteResponses.push({ url, response: text });        } catch (e) {          console.error(%27Fehler beim Abfangen der batchexecute Response:%27, e);        }        return response;      });    }    return originalFetch.apply(this, arguments);  };  if (!window._interceptorKeepAliveDiv) {    const div = document.createElement(%27div%27);    div.style.position = %27fixed%27;    div.style.bottom = %270%27;    div.style.right = %270%27;    div.style.width = %271px%27;    div.style.height = %271px%27;    div.style.opacity = %270%27;    div.id = %27_interceptorKeepAliveDiv%27;    document.body.appendChild(div);    window._interceptorKeepAliveDiv = div;  }  (function keepAlive() {    window._interceptorKeepAliveDiv.textContent = new Date().toISOString();    setTimeout(keepAlive, 5000);  })();  console.log(%27batchexecute Interceptor aktiviert.%27);})();

This book­mar­klet inter­cepts all net­work respon­ses from Google’s batchexecute API calls by over­ri­ding the nati­ve fetch func­tion. It stores each inter­cept­ed respon­se in a glo­bal array for later ana­ly­sis. To ensu­re it runs reliably—even when the con­so­le is closed—it uses a hid­den DOM ele­ment updated regu­lar­ly to keep the script “ali­ve.” This tool is inva­luable for extra­c­ting dyna­mic search data and AI-gene­ra­ted con­tent direct­ly from Google’s backend, enab­ling deeper SEO and AI search insights.

 

1️⃣ Save the second code below as a book­mark in your brow­ser.
2️⃣ Start your search in Gemi­ni as usu­al and final­ly rel­oad the page once.
3️⃣ Click the book­mark, and voi­là – you’ll see the key­words Gemi­ni used for the search. (Rel­oad the page befo­re using it again to ensu­re the fetch access in the back­ground works properly.)

 

javascript:(()=>{if(!window.batchexecuteResponses||window.batchexecuteResponses.length===0){alert('No batchexecute responses found. Please enable the interceptor and reload the page first.');return;}const keywords=new Set();const kwRegex=/\[\s*"([^"]{3,100}?)"\s*,\s*\d+\s*\]/g;window.batchexecuteResponses.forEach(({response})=>{if(typeof response!==%27string%27)return;const cleaned=response.replace(/\\"/g,%27"%27);let match;while((match=kwRegex.exec(cleaned))!==null){keywords.add(match[1]);}});if(keywords.size===0){alert(%27No keywords found in the batchexecute responses.%27);return;}const newTab=window.open();if(!newTab){alert(%27Popup blocked or failed to open a new tab.%27);return;}const doc=newTab.document;doc.title=`Found Keywords (${keywords.size})`;const style=doc.createElement(%27style%27);style.textContent=`body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;padding:20px;background:#f0f4f8;color:#2d3748;margin:0;}h1{border-bottom:3px solid #ff4169;padding-bottom:10px;}ul{list-style:none;padding-left:0;margin-top:20px;}li{background:white;margin:8px 0;padding:12px 15px;border-left:4px solid #ff4169;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,0.1);font-family:monospace;font-size:15px;word-break:break-word;}button.copy-btn{background:#ff4169;color:#fff;border:none;padding:10px 18px;border-radius:6px;cursor:pointer;font-size:16px;font-weight:600;transition:background 0.3s ease;margin-bottom:20px;}button.copy-btn:hover{background:#e63a5a;} .toast{position:fixed;top:20px;right:20px;background:#ff4169;color:#fff;padding:12px 20px;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.15);opacity:0;transform:translateX(100%);transition:all 0.3s ease;z-index:1000;} .toast.show{opacity:1;transform:translateX(0);}%60;doc.head.appendChild(style);const h1=doc.createElement('h1');h1.textContent=%60Found Keywords (${keywords.size}):%60;doc.body.appendChild(h1);const copyBtn=doc.createElement('button');copyBtn.textContent='Copy All';copyBtn.className='copy-btn';doc.body.appendChild(copyBtn);const ul=doc.createElement('ul');for(const kw of keywords){const li=doc.createElement('li');li.textContent=kw;ul.appendChild(li);}doc.body.appendChild(ul);const toast=doc.createElement('div');toast.className='toast';toast.textContent='Copied to clipboard! 📋';doc.body.appendChild(toast);copyBtn.addEventListener('click',()=>{const text=[...keywords].join('\n');navigator.clipboard.writeText(text).then(()=>{toast.classList.add('show');setTimeout(()=>toast.classList.remove('show'),3000);}).catch(()=>{const ta=doc.createElement('textarea');doc.body.appendChild(ta);ta.value=text;ta.select();doc.execCommand('copy');doc.body.removeChild(ta);toast.classList.add('show');setTimeout(()=>toast.classList.remove('show'),3000);});});})();

Out­co­me

 

Der Ent­schei­der Guide

SEO in der Ära der KI-Suche 

KI ver­än­dert die Suche – und dein Mar­ke­ting! Die­ser Gui­de zeigt, wie KI-Such­ergeb­nis­se funk­tio­nie­ren und wie du dei­ne SEO-Stra­te­gie opti­mal dar­auf aus­rich­test. Berei­te dich vor: SEO in der Ära der KI-Suche.

jetzt her­un­ter­la­den

Ultimativer Guide: KI-Automatisierung im SEO & Content Marketing

Überlass der KI die Routine – und konzentrier dich auf das, was wirklich zählt!

  1. 1.Erfahre, wie du komplette Arbeitsabläufe im SEO & Content Marketing automatisierst und dadurch maximale Effizienz erreichst.
  2. 2.Überlass repetitive Aufgaben der KI und widme dich kritischen Entscheidungen, die dein Expertenwissen erfordern.
  3. 3.Lerne, wie du KI-Lösungen individuell auf SEO-Prozesse anpasst, um Zeit und Ressourcen optimal zu nutzen.
  4. 4.Entdecke, wie modernste KI-Automatisierung den heutigen Arbeitsalltag im SEO und Content Marketings gestalten – und wie du von Anfang an dabei bist.
Jetzt downloaden!

Das könnte Sie auch interessieren ...