vocaliu / chrome-redirector

Automatically exported from code.google.com/p/chrome-redirector
GNU General Public License v3.0
0 stars 0 forks source link

[RULE] skip google redirection passes with test rule but doesn't actually happen in real web page #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Although when I test the rule on one of the google search links, still the 
actual links in the google search page are not modified and Google redirection 
happens.

Test web page:
https://www.google.co.il/search?q=redirector+%22skip+google+redirection%22+doesn
't+work&oq=redirector+%22skip+google+redirection%22+doesn't+work&aqs=chrome..69i
57.12060j0j9&sourceid=chrome&espvd=210&es_sm=93&ie=UTF-8#es_sm=93&newwindow=1&q=
redirector+%22skip+google+redirection%22+&safe=off

Rule name:
Skip Google Redirection

Substituition:
RegExp, ignore case, content filter=main frame
^https?://www\.google\.co\.il(\.[^/]+)?/url\?sa=t

Replacement:
decode=1
$1

Test rule:
https://www.google.co.il/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CC8QFjAA&
url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fredirector%2Flacckjdlm
kdhcacjdodpjokfobckjclh%3Fhl%3Den&ei=K4JOUuvzOsq84AT5j4GgCw&usg=AFQjCNGKmRJKlmmd
jlyKcsU0Gu4Q56GdfQ&sig2=-JZvE-SLpqGxvCY_Iu0zNw&cad=rjt

Original issue reported on code.google.com by ohadh...@gmail.com on 4 Oct 2013 at 9:10

Attachments:

GoogleCodeExporter commented 8 years ago
More info: 
When trying to execute the link through the extension's debugger, the web page 
being opened by the debugger does work as expected.

Original comment by ohadh...@gmail.com on 4 Oct 2013 at 9:20

Attachments:

GoogleCodeExporter commented 8 years ago
untitiled5.jpg is a description of the error when opening a web page normally.
untitiled7.jpg shows that when the web page is opened by the debugger it works.

Original comment by ohadh...@gmail.com on 4 Oct 2013 at 9:27

Attachments:

GoogleCodeExporter commented 8 years ago
The status line does not indicate the actual URL. You may copy the link address 
via context menu to see it.

One thing to clarify: this extension does not change any content in web pages, 
instead it modify URLs on the fly, i.e. necessary changes are sent to the 
browser internally thus not visible to the user.

Also note that this rule (and several other rules) is not versatile, as many 
situations are simply ignored. For example, `http' is sometimes encoded as 
`%68%74%74%70'. In this case, modify the substitution field to 
`.+?&url=.*?((?:http|%68%74%74%70)[^&]+).*' will resolve the problem.

Original comment by CyrilF...@gmail.com on 4 Oct 2013 at 10:27