<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Odil Akilkhanov</title>
    <description>The latest articles on DEV Community by Odil Akilkhanov (@odil_akilkhanov).</description>
    <link>https://dev.to/odil_akilkhanov</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4139699%2F7ada66e0-8607-442d-be5d-fcf5762d89b7.jpg</url>
      <title>DEV Community: Odil Akilkhanov</title>
      <link>https://dev.to/odil_akilkhanov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/odil_akilkhanov"/>
    <language>en</language>
    <item>
      <title>Detecting "the AI is still typing" without reading the page: how DevPause works</title>
      <dc:creator>Odil Akilkhanov</dc:creator>
      <pubDate>Wed, 23 Sep 2026 15:10:51 +0000</pubDate>
      <link>https://dev.to/odil_akilkhanov/detecting-the-ai-is-still-typing-without-reading-the-page-how-devpause-works-4joa</link>
      <guid>https://dev.to/odil_akilkhanov/detecting-the-ai-is-still-typing-without-reading-the-page-how-devpause-works-4joa</guid>
      <description>&lt;p&gt;I built a small Chrome extension, &lt;a href="https://devpause.vercel.app" rel="noopener noreferrer"&gt;DevPause&lt;/a&gt;, that adds buttons under ChatGPT, Claude and Gemini answers: &lt;strong&gt;Clean copy&lt;/strong&gt;, &lt;strong&gt;Shorter&lt;/strong&gt;, &lt;strong&gt;Simpler&lt;/strong&gt;, &lt;strong&gt;As a table&lt;/strong&gt;, &lt;strong&gt;Example&lt;/strong&gt;, &lt;strong&gt;Continue&lt;/strong&gt;. This post is about the three technical decisions that shaped it, because I think they're useful to anyone building on top of AI chat UIs.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Don't read the conversation
&lt;/h2&gt;

&lt;p&gt;The obvious way to build "buttons under answers" is to parse the answer text. I didn't want that — a content script that reads every conversation is a privacy liability even if it never sends anything.&lt;/p&gt;

&lt;p&gt;So the rule became: &lt;strong&gt;the extension reads answer text only at the moment the user clicks Clean copy, and that text goes to the clipboard and nowhere else.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Everything else works on structure, not content:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Answer blocks are found with a &lt;code&gt;MutationObserver&lt;/code&gt; at the container level. I only care that a new answer element appeared, not what's inside it.&lt;/li&gt;
&lt;li&gt;The buttons for Shorter / Simpler / As a table / Example / Continue don't need the answer at all. They insert a fixed phrase into the composer (&lt;code&gt;"Make it shorter."&lt;/code&gt;, &lt;code&gt;"Present this as a table."&lt;/code&gt;, …) and submit. Submitting can be turned off in the popup if you prefer to edit the phrase first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. "Is the model typing?" = "Is the Stop button there?"
&lt;/h2&gt;

&lt;p&gt;I needed a streaming signal for two features: the "answer ready" notification (when you started a long prompt and switched tabs) and the ad card (more on that below).&lt;/p&gt;

&lt;p&gt;Every one of the three sites shows a &lt;strong&gt;Stop&lt;/strong&gt; button while the model is generating, and removes it when done. That's a single boolean I can observe without touching text:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isStreaming&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!!&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;SITE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;stopButtonSelector&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each site gets its own selector set (&lt;code&gt;chatgpt.com&lt;/code&gt;, &lt;code&gt;claude.ai&lt;/code&gt;, &lt;code&gt;gemini.google.com&lt;/code&gt;), and when a site changes its DOM, that's the only thing I have to fix. The observer debounces to avoid firing on every token.&lt;/p&gt;

&lt;p&gt;The trade-off: if a site ever removes the Stop button pattern, the signal breaks. So far all three have had it since 2023.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Ad-supported, and what that means for the wire
&lt;/h2&gt;

&lt;p&gt;DevPause is free for everyone with no paid tier. It's paid for by &lt;strong&gt;one text line (≤60 chars, one link) shown beside the chat while the answer streams&lt;/strong&gt;. It disappears when streaming ends and never covers the conversation.&lt;/p&gt;

&lt;p&gt;Ad-supported extensions have a bad reputation, mostly because of what they &lt;em&gt;send&lt;/em&gt;. So the full list of what DevPause sends to its single server origin:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;random install id + server signature&lt;/td&gt;
&lt;td&gt;count impressions, fraud protection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;country and language chosen in the popup&lt;/td&gt;
&lt;td&gt;ad matching&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;extension version&lt;/td&gt;
&lt;td&gt;compatibility&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ad id, seconds visible, clicked or not, which of the three sites&lt;/td&gt;
&lt;td&gt;advertiser report&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;invite code from the install link, if any&lt;/td&gt;
&lt;td&gt;referral counting&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;No page URLs, no chat titles, no text. Country is guessed once from IP on first contact to prefill the popup, and you can change it. No remote code — the ad is data (text + URL), rendered by the extension's own template.&lt;/p&gt;

&lt;p&gt;The ad policy is human-reviewed and stricter than the industry norm because I run it under Islamic rules: no interest-based finance, no gambling, no crypto trading, no adult/dating, no alcohol. If you're curious what that looks like as a document: &lt;a href="https://devpause.vercel.app/ad-policy?lang=en" rel="noopener noreferrer"&gt;ad policy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Permissions
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Host permissions: &lt;code&gt;chatgpt.com&lt;/code&gt;, &lt;code&gt;claude.ai&lt;/code&gt;, &lt;code&gt;gemini.google.com&lt;/code&gt; only&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;storage&lt;/code&gt;, &lt;code&gt;clipboardWrite&lt;/code&gt;, &lt;code&gt;notifications&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Manifest V3, service worker background, no &lt;code&gt;tabs&lt;/code&gt; permission&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The zip ships unminified, so you can read every line. GitHub repo (PolyForm Noncommercial) is coming after launch; the Chrome Web Store listing is in review.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;I started with a "pay to remove ads" key system and then removed it. It made the free version feel crippled and it capped revenue. The product is now identical for everyone; there's a voluntary support link that unlocks nothing.&lt;/li&gt;
&lt;li&gt;I should have shipped the site in multiple languages from day one. The users of these three chatbots are everywhere; the site now runs in 10 languages.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it: &lt;a href="https://devpause.vercel.app" rel="noopener noreferrer"&gt;https://devpause.vercel.app&lt;/a&gt;. If there's a button you wish existed, tell me in the comments — adding a prompt phrase is a one-line change.&lt;/p&gt;

</description>
      <category>chrome</category>
      <category>javascript</category>
      <category>ai</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
