All-in-one: Google anti-tracking + Endless scroll + YouTube old style UI + Anti-shorts + Ad skip/block/mute + Age bypass + Region setter + 5-column grid + Productivity tools + Remaining time + Focus mode
# Google Privacy & YouTube Enhancement Suite v3.3.1
**All-in-one power-user toolkit for Google Search & YouTube — privacy, productivity, anti-distraction, anti-brain-rot.**
**Alt+S** = open settings panel (Google + YouTube) · **Alt + shift + p** = toggle Papyrus font · **Alt+F** = toggle Focus Mode · **Alt+1-4** = speed presets
On Google Search, a floating ⚙ gear button appears in the bottom-right corner.
---
## Google Modules
### Module 1 — Google Anti-Track
- Removes Google's link-conversion/tracking on Search, Maps, Gmail, Docs, News, YouTube
- Blocks `sendBeacon`, `fetch()`, and XHR tracking to `/gen_204` and `/log`
- Strips `ping` attributes, `data-ved` tracking, inline `rwt()` handlers
- Decodes Google News base64 article URLs, AMP cache redirects, Scholar/Translate redirects
- Google Images link cleaning, YouTube `/redirect` link cleaning
- MutationObserver for dynamically loaded content (pagination/infinite scroll)
- Safelists Zoom/Teams/WebEx to prevent breaking video calls
- Trusted Types compatibility for CSP-strict pages
### Module 6 — Google Endless Scroll
- Auto-loads next search result pages as you scroll down
- Injects results with page-number dividers
- Strips tracking/ads from loaded results
- Blue loading toast in the bottom-left
- Skips image search (which has its own system)
### Module 7 — Region Setter
- Forces a `gl=` parameter on YouTube and Google search URLs to lock your region
- Set any 2-letter country code (US, GB, DE, FR, etc.) in the settings panel
- Uses `sessionStorage` to prevent infinite redirect loops
### Module 11 — Search URL Cleaner
- Strips all tracking parameters from Google Search URLs on page load
- Whitelist approach: keeps only functional params (`q`, `tbm`, `tbs`, `start`, `gl`, `hl`, `safe`, `udm`, etc.)
- Removes `oq`, `gs_lcrp`, `aqs`, `sourceid`, `ie`, `ei`, `ved`, `sxsrf`, `sclient`, `bih`, `biw`, `dpr`, and dozens more
- Cleans silently via `history.replaceState` — no page reload
- Example: `?q=tests&oq=test&gs_lcrp=EgZ...&sourceid=chrome&ie=UTF-8` → `?q=tests`
### Module 12 — Search Blocklist *(like uBlacklist)*
- Hide any website from Google search results — works across all tabs (Web, Videos, News, Images)
- **Custom domains**: add one domain per line in settings (e.g. `pinterest.com`, `quora.com`)
- **Preset: Social Media**: one-click toggle to block facebook.com, instagram.com, youtube.com, tiktok.com, x.com
- **Two-strategy scanner**: first scans known Google result containers (`.g`, `.MjjYud`, `video-voyager`, `[data-hveid]`, etc.), then does a broad sweep of all links on the page — catches video carousels, featured snippets, and any new Google layout
- **Videos tab support**: specifically targets `video-voyager`, `.pkG3hd`, `.ct3b9e` used by Google's Videos tab (`udm=7`)
- Subdomain matching: blocking `facebook.com` also catches `m.facebook.com`, `l.facebook.com`, etc.
- Live domain counter in settings panel
- MutationObserver catches dynamically loaded results (Endless Google scroll, tab switching)
---
## YouTube Modules
### Module 2 — Old Style UI
- Reverts YouTube's post-2022 rounded design back to the classic square look
- Restores old background colors, button styles, search bar, sidebar icons
- Removes cinematics/ambient mode, watch grid layout
- Replaces Shorts sidebar entry with Explore tab
- Sets YouTube experiment flags to disable modern UI features
### Module 3 — Anti-Shorts + Redirect
- Immediately redirects `/shorts/` URLs to `/watch?v=` (normal player)
- Hides all Shorts UI: sidebar entries, reel shelves, shorts items in search/home/subscriptions
- Listens for SPA navigation events + popstate fallback
### Module 4 — Ad Blocker + Auto Skip + Mute + Speed-Up
- CSS hiding of banner ads, player ads, premium promos, merch shelves, engagement panels
- Auto-detects and clicks skip buttons (all variations including modern skip button)
- Forces non-skippable ads to end by setting `currentTime = duration`
- **Mute via button click**: clicks YouTube's actual mute button during ads (undetectable — YouTube can detect and override `video.muted`, but button clicks go through the real user interaction codepath)
- **Volume memory**: saves mute state before ad starts, restores it after ad ends
- **Ad blur**: 40px gaussian blur + grayscale + low opacity during ads — prevents subconscious engagement with ad content
- **16x speed-up**: non-skippable ads play at 16x speed, reducing a 15s ad to under 1 second
- Removes ad-blocker enforcement popups and backdrop overlays
- Auto-resumes video after ad/popup dismissal
- Auto-dismisses "Are you still watching?" popup
### Module 5 — Age Restriction Bypass
- Bypasses YouTube age verification without login
- Multiple unlock strategies: content warning bypass, TV embedded player, Creator+Auth, account proxy
- Intercepts `JSON.parse`, `XMLHttpRequest`, `fetch`, and initial page data
- Unlocks video sidebar, description, and blurred thumbnails in search results
- Works on desktop, mobile, music, and embedded players
### Module 8 — Productivity Tools
- **Playback speed memory**: persisted in settings, re-applied on each watch navigation
- **Auto-theater mode**: automatically opens watch pages in theater mode
- **Auto-fullscreen**: enters fullscreen on watch pages (dispatches native 'f' key to player with button click + API fallbacks)
- **Keyboard speed presets**: Alt+1 = 1x · Alt+2 = 1.5x · Alt+3 = 2x · Alt+4 = 3x
### Module 9 — Remaining Time Display
- Shows remaining video duration next to the time display in the player
- Accounts for current playback rate (2x speed = half the time remaining)
- Updates via `requestAnimationFrame` for smooth display
- Hides on live streams and during ads
### Module 10 — Focus Mode *(on by default — Alt+F to toggle)*
- Hides sidebar recommendations on watch pages
- Hides comments section
- Hides end screen cards and annotations
- Expands primary player column to full width
- Reduces brain rot by removing algorithmic suggestions
---
## Features
### Papyrus Font Mode *(on by default — Alt+P to toggle)*
- Applies Papyrus font across all Google and YouTube pages
- Bigger base font size (18px body, 22px titles, 16px snippets) for better readability
- Covers all text elements: headings, paragraphs, links, buttons, inputs, YouTube titles and descriptions
- Settings panel stays in Roboto so controls remain readable
- Toggle on/off instantly with Alt+P or via the settings panel
### 5-Column Grid
- Forces 5 videos per row on Home/Subscriptions (configurable 3–6 in settings)
- Responsive breakpoints: 3 columns under 1200px, 4 columns 1200–1600px, 5+ columns above 1600px
### Hover Preview Blocker
- Stops auto-playing thumbnail previews on hover
- Blocks channel trailer autoplay
- Preserves static thumbnails, progress bars, and play buttons
### Watch Page Scroll Fix
- Strips YouTube's inline `overflow:hidden` that breaks scrolling after SPA navigation
- MutationObserver catches YouTube re-applying broken styles
- Fixes both classic watch layout and new watch-grid layout
### Settings Panel
- **Alt+S** or ⚙ gear button (Google only) to open
- Toggle all features: region, endless scroll, blocklist, Papyrus font, theater mode, fullscreen, focus mode, grid columns, playback speed, ad blur, ad speed-up, hover preview block
- **ESC** to close
- Changes apply immediately where possible; some need a page reload
---
## Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| **Alt+S** | Open/close settings panel |
| **Alt+P** | Toggle Papyrus font on/off |
| **Alt+F** | Toggle Focus Mode on/off |
| **Alt+1** | Set speed 1x |
| **Alt+2** | Set speed 1.5x |
| **Alt+3** | Set speed 2x |
| **Alt+4** | Set speed 3x |
| **Escape** | Close settings panel |
---
## Technical Notes
- No external dependencies · No `@grant` permissions needed · `@run-at document-start` for earliest possible interception
- Single `