Repository navigation
Site cleanup: Google Search - #36
Merged
Merged
Conversation
A second site in Site cleanup, after YouTube. Ten switches, all off until turned on, behind a "Clean up Google Search" master switch: - Show web results only: every search opens on Google's Web tab (udm=14), a plain list of links, before the cluttered page is requested. Images, News, AI Mode and the other tabs still open as asked; only "All" becomes "Web". - Hide AI Overviews (top of the page and the ones placed further down) and Hide AI Mode (the tab and the search-box button). - Hide "People also ask", "Discussions and forums", short videos, the video row, Top stories, product grids and "People also search for". Boxes are found by the tab their "more" link points to (udm=forums, udm=vids, tbm=nws, udm=50 ...) or by data attributes, never by heading text, so it works in any language (checked in English and German). Every block rule only matches the innermost result block, so a layout change can make it miss a box but never hide real results. - content/google-clean.js + google-clean.css: class driver and styles, injected on www.google.* only via include_globs, so the every-page script budget is unchanged (161,320). - background/google-web-only.js + rules/google-web-only-rules.json: a static ruleset, off by default, flipped like the YouTube ones. Its regex had to fit Chrome's RE2 2 KB limit: the first version used https? and silently never matched; this one was checked with isRegexSupported and a real redirected search in Edge. - Settings card, README, build scripts, both manifests; new test/google-cleanup-test.mjs, and the YouTube card test now reads only the YouTube card. Verified by hand in Chrome and with the packaged build in headless Edge. Firefox not checked yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
codepurse
added a commit
that referenced
this pull request
Oct 30, 2026
Brings in the Google Search cleanup (#36), Brave, Yahoo and Swisscows in the Search Result Filter (#38) and the 1.5.1 release merges. One conflict, in common/changelog.js: both sides added a new entry at the top. Both are kept, 1.6.0 above 1.5.2, so neither release loses its notes. npm test 892, test:pro 59. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A second site in Site cleanup, after YouTube: Clean up Google Search, ten switches, all off until turned on, behind one master switch.
udm=14), a plain list of links, before the cluttered page is requested. Images, News, AI Mode and the other tabs still open as asked; only "All" becomes "Web".How it works
udm=forums,udm=vids,tbm=nws,udm=50…) or by data attributes, never by heading text, so it works in any language (checked in English and German).content/google-clean.js+google-clean.cssare injected onwww.google.*only (include_globs), so the every-page script budget is unchanged (161,320).background/google-web-only.js+rules/google-web-only-rules.json: a static ruleset, off by default, flipped like the YouTube ones. Its regex fits Chrome's RE2 2 KB limit; the first version usedhttps?and silently never matched, so this one was checked withisRegexSupportedand a real redirected search in Edge.Testing
npm test, including the newtest/google-cleanup-test.mjs.Sieve Pro (#37) is stacked on this branch, so please merge this one first.