Super-preloader icon indicating copy to clipboard operation
Super-preloader copied to clipboard

mydata: Added support for Google Basic Variant

Open brian6932 opened this issue 6 months ago • 1 comments

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.

brian6932 avatar Aug 08 '24 10:08 brian6932