When people look at TaskBoost's permission prompt, they see this line:

Read and change all your data on all websites

That is a scary sentence. It's also accurate — my content_scripts block declares "matches": ["<all_urls>"]. I'm not going to pretend otherwise or hide it behind a narrower manifest that doesn't actually reflect what ships.

What I can do is show you exactly what the content script does with that access. The whole file is 483 lines, unminified, and it does less than you'd think.

Why it needs to run everywhere

TaskBoost is a Linear companion. The point is filing an issue from wherever you are — reading a GitHub issue, a customer email, a Slack thread, a docs page. If the content script only ran on linear.app, there'd be nothing to capture context from.

The alternative designs all cost the user something:

  • activeTab only. Requires a click on the toolbar icon before each capture. That kills the global hotkey, which is the entire product.
  • Optional host permissions per site. Users have to grant each domain individually. For a tool that's supposed to work on any page, that's a setup wizard, not a feature.
  • A popup that reads the tab. Needs the tabs permission instead, and can't inject the overlay UI into the page.

So content_scripts on <all_urls> it is. What matters is what runs there.

What the script does when a page loads

Almost nothing. Here's the entire initialization path:

chrome.storage.local.get('region.gate').then((stored) => { const verdict = stored['region.gate']; if (verdict && verdict.blocked) { regionBlocked = true; removeInjectedUi(); } }).catch(() => {}); 

One read from extension-local storage, to check a cached compliance flag. That's it. No DOM access. No document.querySelector. No fetching. No timers.

Then it registers a message listener and waits:

chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { switch (message.type) { case 'OPEN_CREATE_ISSUE': handleOpenCreateIssue(message.payload); break; case 'EXTRACT_PAGE_INFO': sendResponse(extractPageInfo()); break; case 'PING': sendResponse({ alive: true }); break; } return true; }); 

No MutationObserver. No setInterval polling the DOM. No "scan the page in the background and report back" loop. If the user never presses the hotkey or right-clicks, the script has read zero page content by the time the tab closes.

That property — dormant until invoked — is the one I'd hold onto if I were reviewing someone else's extension. A content script that observes the DOM on load is a very different privacy proposition from one that sits idle.

What it reads when you invoke it

When the hotkey fires, extractPageInfo() runs and pulls exactly five things:

const selectedText = window.getSelection().toString().trim(); const pageTitle = document.title; const pageUrl = window.location.href; const ogDesc = document.querySelector('meta[property="og:description"]')?.content; const metaDesc = document.querySelector('meta[name="description"]')?.content; const canonical = document.querySelector('link[rel="canonical"]')?.href; 

Selection, title, URL, description meta, canonical URL. That's the full set. They get composed into the issue description as markdown:

**Source:** [Page title](https://example.com/page) **Selected text:** > whatever you highlighted **Page description:** the og:description or meta description 

What it does not touch, anywhere in the file:

  • document.forms or any input value
  • document.cookie
  • localStorage or sessionStorage of the host page
  • document.body.innerText (no whole-page text scraping)
  • Any iframe content
  • Credentials, tokens, or anything in a password field

There's no "grab the whole page and let the model figure it out" step. The user's selection is the signal; everything else is metadata that helps whoever reads the issue know where it came from.

The UI injection problem

Once you have <all_urls>, injecting UI is the other half of the risk. A badly behaved content script can break a site's layout, leak styles, or fight with the host page's CSS.

TaskBoost injects a single fixed-position div and puts everything inside a Shadow DOM:

overlayHost = document.createElement('div'); overlayHost.style.cssText = 'position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:hidden;z-index:2147483647;'; document.body.appendChild(overlayHost); overlayShadow = overlayHost.attachShadow({ mode: 'open' }); 

Everything after that — modal, fields, buttons, status messages — is created inside overlayShadow with fully inline styles. No stylesheet is injected into the page, no class names collide, and closing the overlay removes the host node entirely. If the region gate has flagged the install, removeInjectedUi() strips it back out.

This isn't exotic. It's the standard pattern. But "standard pattern" is exactly the kind of thing that gets skipped when a content script grows organically, and it's the difference between an extension that coexists with sites and one that breaks them.

If you're shipping a broad content script

Four rules I'd apply to my own code and to anyone else's:

  1. Do nothing on load. If your script touches the DOM at document_idle, you need a specific reason and you should say what it is.
  2. Name the fields you read. "It captures context" is not a description. "It reads document.title, location.href, getSelection(), and two meta tags" is.
  3. No observers, no polling. A MutationObserver on every page is a persistent read of everything the user does. If you need one, scope it to a specific selector and explain why.
  4. Make it auditable. Unminified, commented, one file. A user who wants to check your claim shouldn't need a deobfuscator.

Broad permissions and careful behavior aren't in conflict. The permission is the door; what the script does after walking through it is the thing that actually matters — and it's the part nobody can see from the install prompt.

TaskBoost is a Chrome extension that adds the Linear shortcuts that don't exist. It's free, no ads, no analytics, no account. If you want to check the claims in this post against the real thing, the source is readable and I'm happy to answer specifics in the comments.