Skip to content

i am trying to make this work with manifest v3 , i am aware that this… - #50

Open
o7528328-arch wants to merge 1 commit into
Ibit-to:masterfrom
o7528328-arch:patch-2
Open

i am trying to make this work with manifest v3 , i am aware that this…#50
o7528328-arch wants to merge 1 commit into
Ibit-to:masterfrom
o7528328-arch:patch-2

Conversation

@o7528328-arch

Copy link
Copy Markdown

… is shit put it works

momenbasel added a commit to momenbasel/new-google-unlocked that referenced this pull request May 27, 2026
…I-free mode

Adds several things on top of the MV3 conversion that match the
spirit of the extension (surfacing content Google hides). All
changes are content-script / DNR only - no new dangerous permissions.

XSS fix (forwards-port of upstream PR Ibit-to#4 to current u.js):
- Lumen-derived strings are now HTML-escaped before being inserted
  into the result panel. The previous code interpolated the regex
  capture directly into the href and link text, which lets a
  maliciously crafted Lumen notice break out of the href attribute
  (the capture class `[^\s-<]+` does NOT exclude `"`, `>` or `&`).

SERP unlock (auto, once per query, with sentinel to avoid loops):
- filter=0    -> show "omitted similar" results Google hides by default
- pws=0       -> disable personalized results
- nfpr=1      -> disable Google's "did you mean / search instead for"
                 silent query rewrite
A `gu_unlocked=1` tombstone is appended so the redirect happens at
most once per navigation - the user can still remove any param
manually and we won't re-add it.

"Web only" toggle:
- Injects a small pill into the SERP nav linking to the same query
  with udm=14, which is Google's plain-web mode (no AI Overview,
  no SGE, no Discover-style cards). One-click escape hatch.

Archive fallbacks in the unlocked panel:
- Each revealed domain now also exposes [Wayback] and [archive.ph]
  links so the user can read the takendown page even if it is gone
  from the live web. This is the actual end-user value of knowing
  what was removed.

Legacy chillingeffects.org support (idea from PR Ibit-to#50):
- Old Google takedown footers sometimes still link to
  chillingeffects.org/notice.cgi (Lumen's previous name). u.js now
  also matches those, and a second DNR rule plus host_permissions
  entry lets the cross-origin XHR through.

CORS preflight hardening (idea from PR Ibit-to#49):
- DNR rules also set Access-Control-Allow-Methods: GET, OPTIONS so
  if the browser ever issues a preflight for these requests (e.g.
  if a future jQuery sends a custom header) it does not fail.

version 2.0 -> 2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant