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

mydata: Added support for Google Basic Variant #1295

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brian6932
Copy link
Contributor

@brian6932 brian6932 commented Aug 8, 2024

While this query param doesn't actually work by itself, script-src has to be set to none. 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.

/^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'

The site will actually redirect and strip off the gbv query param with script-src enabled, but with it set to none, the user can choose which mode they want to use, and the query param works as you'd expect. Both 1 (GBV) or 2 (Default Google) work (although sometimes you need to hard refresh cache when swapping back and forth CTRL+F5/CTRL+SHIFT+R), this at least gives a way to distinguish a user's intent.

Copy link

vercel bot commented Aug 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
super-preloader ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2024 9:57pm

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