<?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: leaker</title>
    <description>The latest articles on DEV Community by leaker (@leaker).</description>
    <link>https://dev.to/leaker</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3948846%2F33ac826e-dcba-4e42-9898-5f61ebf40251.png</url>
      <title>DEV Community: leaker</title>
      <link>https://dev.to/leaker</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leaker"/>
    <language>en</language>
    <item>
      <title>I built a desktop browser that runs your userscripts without a browser extension</title>
      <dc:creator>leaker</dc:creator>
      <pubDate>Sun, 24 May 2026 09:56:03 +0000</pubDate>
      <link>https://dev.to/leaker/i-built-a-desktop-browser-that-lets-you-tweak-any-website-and-have-the-changes-survive-a-reload-dh8</link>
      <guid>https://dev.to/leaker/i-built-a-desktop-browser-that-lets-you-tweak-any-website-and-have-the-changes-survive-a-reload-dh8</guid>
      <description>&lt;p&gt;For a while now I've been doing something a bit weird: I take websites I use every day and turn each one into its own standalone desktop app. One window per site, its own icon in the Dock, Cmd+Tab between them like normal apps. It keeps my brain from drowning in 40 browser tabs.&lt;/p&gt;

&lt;p&gt;That part is easy enough — Fluid, Webcatalog, even just &lt;code&gt;Cmd+Shift+A&lt;/code&gt; on Chrome will do it. The part that kept bothering me was something else.&lt;/p&gt;

&lt;h2&gt;
  
  
  The thing that kept bothering me
&lt;/h2&gt;

&lt;p&gt;Every one of those sites had one or two things I wanted to change.&lt;/p&gt;

&lt;p&gt;A floating popup that nags me every visit. A panel where the font is two pixels too small. An ad slot I'd rather hide. A dark-mode CSS that's &lt;em&gt;almost&lt;/em&gt; right except for one ugly color.&lt;/p&gt;

&lt;p&gt;DevTools is great for this — for about thirty seconds. Edit the CSS, see it live, feel clever, hit reload, watch all your changes vanish.&lt;/p&gt;

&lt;p&gt;So you reach for Tampermonkey or Violentmonkey. Which still works for me personally, but I noticed something annoying: these extensions, in the post-MV3 world, increasingly require the user to flip a "developer mode" toggle and explicitly "allow user scripts" before anything runs. Fine for me. Not fine when I want to recommend a small fix to a non-technical friend — walking them through Chrome flags is more friction than the fix is worth.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://github.com/leaker/pouch" rel="noopener noreferrer"&gt;Pouch&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it actually is
&lt;/h2&gt;

&lt;p&gt;Pouch is a desktop browser, in Rust + Tauri v2. macOS and Windows builds, both signed/notarized. It does two things:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. It turns any URL into a standalone window.&lt;/strong&gt; One TOML file lists the URLs you want; Pouch opens each in its own window, sharing cookies/storage with the others. Origin is the real site — login state, sessions, everything works the way Safari or Edge would handle it. No rewriting, no proxy magic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. It runs your JavaScript on the page at &lt;code&gt;document_start&lt;/code&gt;.&lt;/strong&gt; Drop a &lt;code&gt;.js&lt;/code&gt; file into an &lt;code&gt;inject/&lt;/code&gt; folder with a Tampermonkey-style &lt;code&gt;@match&lt;/code&gt; header, and Pouch injects it before the page's own scripts have a chance to run. You can override &lt;code&gt;window.fetch&lt;/code&gt;, install hooks, hide elements, add keyboard shortcuts — anything a userscript can do, with no browser extension involved and no "enable developer mode" flag to flip first.&lt;/p&gt;

&lt;p&gt;The interesting bit isn't either piece on its own — it's that the two together replace the entire awkward "userscript ecosystem" with three components: a TOML file, a folder of &lt;code&gt;.js&lt;/code&gt; files, and an icon in your Dock.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the config looks like
&lt;/h2&gt;

&lt;p&gt;Everything lives in one TOML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="py"&gt;startup_urls&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"https://www.example.com"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="py"&gt;window_dimensions&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"inherit"&lt;/span&gt;

&lt;span class="py"&gt;ignore_urls&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="err"&gt;{&lt;/span&gt; &lt;span class="py"&gt;suffix&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"gstatic.com"&lt;/span&gt; &lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="err"&gt;{&lt;/span&gt; &lt;span class="py"&gt;suffix&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"googletagmanager.com"&lt;/span&gt; &lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="err"&gt;{&lt;/span&gt; &lt;span class="py"&gt;suffix&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"google-analytics.com"&lt;/span&gt; &lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="err"&gt;{&lt;/span&gt; &lt;span class="py"&gt;wildcard&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"*.google.com"&lt;/span&gt; &lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ignore_urls&lt;/code&gt; lets you exempt certain URLs from Pouch's internal request handling — typically analytics endpoints, font CDNs, third-party telemetry. Four match modes (host suffix, host wildcard, URL wildcard, URL regex) ordered by increasing precision, so you reach for whichever is cheapest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Injecting scripts
&lt;/h2&gt;

&lt;p&gt;If you want to inject your own JavaScript, drop a &lt;code&gt;.js&lt;/code&gt; file under &lt;code&gt;inject/&lt;/code&gt; with a Tampermonkey-style header:&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="c1"&gt;// ==UserScript==&lt;/span&gt;
&lt;span class="c1"&gt;// @name   tweak example&lt;/span&gt;
&lt;span class="c1"&gt;// @match  https://www.example.com/*&lt;/span&gt;
&lt;span class="c1"&gt;// ==/UserScript==&lt;/span&gt;

&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;[tweak] running on&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;host&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="c1"&gt;// your tweaks here&lt;/span&gt;
&lt;span class="p"&gt;})();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few details worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Scripts run at &lt;strong&gt;document_start&lt;/strong&gt;, before the page's own JavaScript. You can override &lt;code&gt;window.fetch&lt;/code&gt; or install hooks before anything has a chance to read them.&lt;/li&gt;
&lt;li&gt;Each script runs in its own try/catch. A thrown error in one doesn't break the others.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@match&lt;/code&gt; is glob by default; prefix with &lt;code&gt;regex:&lt;/code&gt; for a real regex.&lt;/li&gt;
&lt;li&gt;A script without &lt;code&gt;@match&lt;/code&gt; is skipped at scan time — on purpose, so a forgotten header can't accidentally run a script globally.&lt;/li&gt;
&lt;li&gt;SPA route changes don't re-trigger scripts (no real navigation happens). Hook &lt;code&gt;history.pushState&lt;/code&gt; yourself if you need that.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A real example
&lt;/h2&gt;

&lt;p&gt;The use case I personally hit most often: a site has a popup that nags me on every visit. Five lines of userscript at &lt;code&gt;document_start&lt;/code&gt; kills it for good:&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="c1"&gt;// ==UserScript==&lt;/span&gt;
&lt;span class="c1"&gt;// @name   kill popup&lt;/span&gt;
&lt;span class="c1"&gt;// @match  https://www.example.com/*&lt;/span&gt;
&lt;span class="c1"&gt;// ==/UserScript==&lt;/span&gt;

&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;MutationObserver&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.popup-banner&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)?.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nf"&gt;observe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;childList&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;subtree&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That file lives at &lt;code&gt;~/Library/Application Support/Pouch/inject/example.com/kill-popup.js&lt;/code&gt;. It runs every time Pouch loads that domain. Nothing to enable, no permission prompts, no syncing to any server.&lt;/p&gt;

&lt;p&gt;The same pattern handles every other minor annoyance: hide an element, fix a typo in a label, add a keyboard shortcut, auto-expand a collapsed section, auto-redirect on a slow logout flow. Everything that used to be "I wish I could just…" is now a 10-line file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that look small but matter
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Multiple windows share storage.&lt;/strong&gt; List several &lt;code&gt;startup_urls&lt;/code&gt;, get several windows — same cookies, same localStorage. Effectively "multiple tabs from one browser, but each in its own OS window." Surprisingly useful when one account spans several dashboards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three buttons in the macOS title bar.&lt;/strong&gt; Reveal the data folder in Finder, reload from config, toggle DevTools. The reveal-folder one is what I press most — "I just edited a CSS file, where does it actually live on disk again?" One click.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First-launch certificate prompt.&lt;/strong&gt; Pouch needs to view and modify HTTPS traffic, so it asks the OS once for cert trust on first launch. Approve once, never again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing
&lt;/h2&gt;

&lt;p&gt;macOS via Homebrew:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--cask&lt;/span&gt; leaker/tap/pouch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows via Scoop (the portable zip avoids SmartScreen):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;scoop&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;bucket&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;leaker&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;https://github.com/leaker/scoop-bucket&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;scoop&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pouch&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or grab a &lt;code&gt;.dmg&lt;/code&gt;/&lt;code&gt;.exe&lt;/code&gt; from the &lt;a href="https://github.com/leaker/pouch/releases/latest" rel="noopener noreferrer"&gt;releases page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this is for
&lt;/h2&gt;

&lt;p&gt;I think Pouch is most useful if you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Already turn favorite websites into "apps" and want them to be &lt;em&gt;yours&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Want userscripts without convincing every device's browser to enable developer mode&lt;/li&gt;
&lt;li&gt;Maintain a personal patch on top of a third-party tool that won't ship the fix&lt;/li&gt;
&lt;li&gt;Want to share a small fix with a non-technical friend without walking them through extension permissions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's &lt;em&gt;not&lt;/em&gt; trying to be a general browser. No ad blocker, no password manager, no extension ecosystem. If you want those, keep using Chrome or Firefox and you're set.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open source
&lt;/h2&gt;

&lt;p&gt;MIT, Rust + Tauri v2, on GitHub: &lt;a href="https://github.com/leaker/pouch" rel="noopener noreferrer"&gt;github.com/leaker/pouch&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The motivation was honestly just personal frustration: post-MV3 userscript extensions ask too much of the user before they'll even run, Electron wrappers were too heavy for "wrap-a-website" duty, DevTools edits don't persist. So I built the thing I wanted. It turned out to be useful enough that all my "daily driver" websites now run inside it, each with a small patch of mine attached.&lt;/p&gt;

&lt;p&gt;If you've ever thought "I wish I could just change &lt;em&gt;one thing&lt;/em&gt; about this website" — give it a try.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>tauri</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
