Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination support #60

Open
brian6932 opened this issue Aug 8, 2024 · 0 comments
Open

Pagination support #60

brian6932 opened this issue Aug 8, 2024 · 0 comments

Comments

@brian6932
Copy link

brian6932 commented Aug 8, 2024

This will be about GBV (Google Basic Variant) mode.
To be able to swap between the default and GBV mode, you can paste the line below into My filters in the uBlock Origin settings, and set the gbv=1 query param.

/^https?:\/{2}w{3}\.google\.(?:a[delmstz]|b[aefgijsty]|c(?:o(?:m(?:\.(?:a[fgru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|k[hw]|l[by]|m[mtxy]|n[agip]|om|p[aeghkry]|qa|s[abglv]|t[jrw]|u[ay]|v[cn]))?|\.(?:ao|bw|c[kr]|i[dln]|jp|k[er]|ls|m[az]|nz|t[hz]|u[gkz]|v[ei]|z[amw]))|[adfghilmnvz])|d[ejkmz]|e[es]|f[imr]|g[aeglmry]|h[nrtu]|i[emqst]|j[eo]|k[giz]|l[aiktuv]|m[degklnuvw]|n[eloru]|p[lnst]|r[osuw]|s[cehikmnort]|t[dglmnot]|vu|ws)\/search\?(?:[^/]+&)?gbv=1(?:$|[&/])/$csp=script-src 'none'
  1. Google adds tracking params to their pagination URLs, it'd be nice if the addon also filtered that href, this also happens on non-GBV mode (gbv=2). e.g. /search?q=foo&sca_esv=955251e7965fe0d0&sca_upv=1&pws=0&gbv=1&sxsrf=ADLYWIKUyc_nW5pyzS4ZVy-87YfaDNLFCg:1723122443750&ei=C8O0ZpTELZ6z0PEP3LOh0A0&start=10&sa=N -> /search?gbv=1&q=foo&pws=0&start=10.
  2. The addon stops working when pagination is done inline, try adding https://github.com/machsix/Super-preloader/pull/1295/files this rule as a Custom rule in the Super-preloader UserScript to reproduce.

Example implementation https://github.com/brian6932/gsearch-urlfix/blob/master/linkfix.js.

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

No branches or pull requests

1 participant