noscript.surrogate.glinks

Ask for help about NoScript, no registration needed to post
DerpMcDerp
Posts: 2
Joined: Sat Jul 30, 2016 2:14 am

"noscript.surrogate.glinks.replacement" doesn't work anymore

Post by DerpMcDerp » Sat Jul 30, 2016 2:45 am

Google seems to have changed their format. The old style URL:
google.com/search?q=asdf

Now redirects you to the new style URL:
google.com/#q=asdf

"noscript.surrogate.glinks.sources" (i.e. "!@^https?://[^/]+google\..*/search") only matches the old format which results in the glinks replacement never being hit. I think a better regex would be something like:

Code: Select all

!@^https?://[^/]+google\..*\bq=


Also, "noscript.surrogate.glinks.replacement" seems way too complex to me. My old userscript which thwarted google tracking was simply:

Code: Select all

Object.defineProperty(window,'rwt',{value:function(){return true},writable:false,configurable:false});


Though I've only tested it on the google.com search results page. I have no idea how google does external URL tracking across their vast pages.
Mozilla/5.0 (Windows NT 10.0; rv:47.0) Gecko/20100101 Firefox/47.0

Mc

noscript.surrogate.glinks

Post by Mc » Sat Jul 30, 2016 6:54 am

noscript.surrogate.glinks works here inconsistently now. Some search results give direct links, some not.
here [threads merged by moderator] is posted it wouldn't work at all
Last edited by barbaz on Sat Jul 30, 2016 6:20 pm, edited 1 time in total.
Reason: merged
Mozilla/5.0 (X11; Linux i686; rv:48.0) Gecko/20100101 Firefox/48.0 SeaMonkey/2.45

Mc

Re: noscript.surrogate.glinks

Post by Mc » Sat Jul 30, 2016 7:10 am

Seems direct links appear some times on a second hover
Mozilla/5.0 (X11; Linux i686; rv:48.0) Gecko/20100101 Firefox/48.0 SeaMonkey/2.45

barbaz
Senior Member
Posts: 9145
Joined: Sat Aug 03, 2013 5:45 pm

Re: noscript.surrogate.glinks

Post by barbaz » Sat Jul 30, 2016 6:18 pm

Merged the two topics because the root cause is surely the same.

I can confirm the inconsistent behavior. I can also confirm that there are now two styles of google search URL in google.com searching, but which one I get depends on how I do the search. Not seeing any redirections.
*Always* check the changelogs BEFORE updating that important software!
-

Post Reply