<?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: Qingping Liu</title>
    <description>The latest articles on DEV Community by Qingping Liu (@qingping_liu_8c4b8d16eaa2).</description>
    <link>https://dev.to/qingping_liu_8c4b8d16eaa2</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%2F4277282%2F7a2770f8-96a7-4d75-94d3-e075c1497b17.png</url>
      <title>DEV Community: Qingping Liu</title>
      <link>https://dev.to/qingping_liu_8c4b8d16eaa2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/qingping_liu_8c4b8d16eaa2"/>
    <language>en</language>
    <item>
      <title>Local URL Redirects, Query Stripping, and Script Blocking with Zero Telemetry in Chrome MV3</title>
      <dc:creator>Qingping Liu</dc:creator>
      <pubDate>Thu, 03 Dec 2026 01:01:07 +0000</pubDate>
      <link>https://dev.to/qingping_liu_8c4b8d16eaa2/local-url-redirects-query-stripping-and-script-blocking-with-zero-telemetry-in-chrome-mv3-520f</link>
      <guid>https://dev.to/qingping_liu_8c4b8d16eaa2/local-url-redirects-query-stripping-and-script-blocking-with-zero-telemetry-in-chrome-mv3-520f</guid>
      <description>&lt;p&gt;Most developers end up needing the same three browser network tweaks over and over:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Point a production endpoint or script URL to a local dev server.&lt;/li&gt;
&lt;li&gt;Strip tracking parameters like &lt;code&gt;utm_source&lt;/code&gt;, &lt;code&gt;utm_medium&lt;/code&gt;, or &lt;code&gt;fbclid&lt;/code&gt; from URLs.&lt;/li&gt;
&lt;li&gt;Block an analytics script or noisy third-party domain while testing page behavior.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Spinning up an external proxy takes too much ceremony, and many existing extensions bundle analytics, require accounts, or charge recurring subscriptions.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;CleanRoute&lt;/strong&gt; to handle all three cleanly inside Chrome's native Manifest V3 rule engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  How CleanRoute Works
&lt;/h2&gt;

&lt;p&gt;CleanRoute packs three controls into one minimal popup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;URL / Host Prefix Redirects:&lt;/strong&gt; Uses &lt;code&gt;declarativeNetRequest&lt;/code&gt; &lt;code&gt;regexFilter&lt;/code&gt; and &lt;code&gt;regexSubstitution&lt;/code&gt; to route requests locally (e.g., staging/prod URLs to &lt;code&gt;localhost&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Query Parameter Stripping:&lt;/strong&gt; Removes unwanted query parameters globally or per domain via &lt;code&gt;queryTransform.removeParams&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Script &amp;amp; Domain Blocking:&lt;/strong&gt; Blocks matching domains or script URL patterns across all resource types or &lt;code&gt;script&lt;/code&gt; requests only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Profiles &amp;amp; Rule Toggles:&lt;/strong&gt; Organize rules by project and toggle individual rules immediately.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Zero Telemetry &amp;amp; Minimal Permissions
&lt;/h2&gt;

&lt;p&gt;CleanRoute is built to be auditable and quiet:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;storage&lt;/code&gt;:&lt;/strong&gt; Stores your profiles, rules, and activation state locally under &lt;code&gt;chrome.storage&lt;/code&gt; (&lt;code&gt;cleanroute_state&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;declarativeNetRequest&lt;/code&gt;:&lt;/strong&gt; Compiles rules into Chrome's built-in engine. CleanRoute never inspects request bodies, response bodies, or browsing history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;http://*/*&lt;/code&gt; &amp;amp; &lt;code&gt;https://*/*&lt;/code&gt;:&lt;/strong&gt; Required by MV3 so dynamic redirect and query-transformation rules can operate on domains you configure (and to reach &lt;code&gt;api.gumroad.com&lt;/code&gt; when activating Pro).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No invasive permissions:&lt;/strong&gt; No &lt;code&gt;tabs&lt;/code&gt;, &lt;code&gt;cookies&lt;/code&gt;, &lt;code&gt;scripting&lt;/code&gt;, &lt;code&gt;webRequest&lt;/code&gt;, or &lt;code&gt;&amp;lt;all_urls&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero outbound requests by default:&lt;/strong&gt; There are no analytics calls or background beacons. Network traffic only leaves the extension if you manually click "Activate" with a Gumroad License Key.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Free Tier vs. Pro ($15 One-Time)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free Tier ($0, offline forever):&lt;/strong&gt; 1 profile, up to 5 active rules, full redirect / query-strip / block support.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CleanRoute Pro ($15 one-time payment):&lt;/strong&gt; Unlimited profiles, unlimited active rules (up to Chrome's dynamic rule limit), and local JSON export/import.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Links:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chrome Web Store: &lt;a href="https://chromewebstore.google.com/detail/cleanroute/ccmjjennhgpeickgjopllijfcnaadbpk" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/cleanroute/ccmjjennhgpeickgjopllijfcnaadbpk&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Pro License ($15 one-time): &lt;a href="https://liuqingping.gumroad.com/l/cleanroute-pro" rel="noopener noreferrer"&gt;https://liuqingping.gumroad.com/l/cleanroute-pro&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
    </item>
    <item>
      <title>Switching HTTP Request Headers in Chrome MV3 Without Invasive Permissions or Subscriptions</title>
      <dc:creator>Qingping Liu</dc:creator>
      <pubDate>Wed, 02 Dec 2026 00:24:04 +0000</pubDate>
      <link>https://dev.to/qingping_liu_8c4b8d16eaa2/switching-http-request-headers-in-chrome-mv3-without-invasive-permissions-or-subscriptions-36n</link>
      <guid>https://dev.to/qingping_liu_8c4b8d16eaa2/switching-http-request-headers-in-chrome-mv3-without-invasive-permissions-or-subscriptions-36n</guid>
      <description>&lt;p&gt;If you work across &lt;code&gt;localhost&lt;/code&gt;, staging, and production APIs, you probably switch HTTP request headers (&lt;code&gt;Authorization&lt;/code&gt;, &lt;code&gt;X-Api-Key&lt;/code&gt;, feature-flag headers) dozens of times a week.&lt;/p&gt;

&lt;p&gt;Spinning up Charles or mitmproxy just to inject one Bearer token is overkill. On the other hand, many browser header extensions either feel bloated, request permissions like &lt;code&gt;tabs&lt;/code&gt; and &lt;code&gt;cookies&lt;/code&gt;, or charge recurring monthly fees.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;CleanHeader&lt;/strong&gt; to keep this workflow small, fast, and transparent.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Solves the Problem
&lt;/h2&gt;

&lt;p&gt;CleanHeader focuses strictly on HTTP request headers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Profile-based switching:&lt;/strong&gt; Group rules by environment or project and toggle the active profile from the popup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Domain-scoped rules:&lt;/strong&gt; Each rule specifies a header name, value, target domain condition, and an on/off switch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant &lt;code&gt;curl -H&lt;/code&gt; copy &amp;amp; JSON export:&lt;/strong&gt; Copy any header rule as &lt;code&gt;curl -H 'Name: Value'&lt;/code&gt; for terminal debugging, or back up your setup as JSON.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native MV3 enforcement:&lt;/strong&gt; Rules are passed to &lt;code&gt;chrome.declarativeNetRequest.updateDynamicRules&lt;/code&gt;. Chrome modifies outgoing request headers natively, without proxying traffic through an external server.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Permissions &amp;amp; Privacy Explained
&lt;/h2&gt;

&lt;p&gt;When installing a header tool, you should always check its manifest permissions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;storage&lt;/code&gt;:&lt;/strong&gt; Saves your profiles, rules, and toggle state locally in &lt;code&gt;chrome.storage&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;declarativeNetRequest&lt;/code&gt;:&lt;/strong&gt; Lets Chrome apply your dynamic header rules without giving the extension access to read request bodies or response content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;http://*/*&lt;/code&gt; and &lt;code&gt;https://*/*&lt;/code&gt;:&lt;/strong&gt; Required by Manifest V3 so &lt;code&gt;modifyHeaders&lt;/code&gt; can run on the domains you configure (and to reach &lt;code&gt;api.gumroad.com&lt;/code&gt; if you activate Pro).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is NOT requested:&lt;/strong&gt; No &lt;code&gt;tabs&lt;/code&gt;, no &lt;code&gt;cookies&lt;/code&gt;, no &lt;code&gt;scripting&lt;/code&gt;, no &lt;code&gt;webRequestBlocking&lt;/code&gt;, and no &lt;code&gt;&amp;lt;all_urls&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CleanHeader uses zero third-party analytics and collects zero personal data (no browsing history, URLs, cookies, or header values). For full transparency, it only emits three anonymous, failure-silent first-party event counters (&lt;code&gt;install&lt;/code&gt;, &lt;code&gt;core_action&lt;/code&gt;, &lt;code&gt;paywall_hit&lt;/code&gt;) containing no user ID, URL, or header data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free vs. Pro ($12 One-Time)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free Tier ($0):&lt;/strong&gt; Up to 3 profiles, domain-scoped header rules, JSON import/export, and &lt;code&gt;curl -H&lt;/code&gt; copy. Works offline with no account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CleanHeader Pro ($12 one-time purchase):&lt;/strong&gt; Unlimited profiles, browser-side AES-GCM encrypted cloud sync (server stores only ciphertext), and HMAC-SHA256 signed read-only share links (up to 7-day TTL).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chrome Web Store: &lt;a href="https://chromewebstore.google.com/detail/cleanheader/eikhmiphkcmoieojoimlpfkofjjkaeal" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/cleanheader/eikhmiphkcmoieojoimlpfkofjjkaeal&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Pro License ($12 one-time): &lt;a href="https://liuqingping.gumroad.com/l/cleanheader-pro" rel="noopener noreferrer"&gt;https://liuqingping.gumroad.com/l/cleanheader-pro&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>chrome</category>
      <category>devtools</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
