|
1 | 1 | # Avoid Google Search redirects |
2 | 2 |
|
3 | | -## Introduction |
| 3 | +[](https://addons.mozilla.org/firefox/addon/avoid-google-search-redirects/) |
4 | 4 |
|
5 | | -This add-on avoids Google Search to track you with redirect links. |
| 5 | +## Description |
6 | 6 |
|
7 | | -When a user hovers a Google Search result, target link seems to be the right one, but, when he clicks on this link, the target is rewritten with a redirection link to a Google tracker. |
8 | | -This tracker is then able to save your click in the Google Search engine data. |
| 7 | +This add-on prevents Google Search tracking you with redirect links. Rather |
| 8 | +than detecting and repairing the intercepted links, which can be complex and |
| 9 | +fragile, it disables the JavaScript function which Google uses to rewrite the |
| 10 | +links. |
9 | 11 |
|
10 | | -To achieve this, Google Search uses an onmousedown event on results. This event is able to rewrite the target link by using a function called « rwt ». |
11 | | -This add-on simply redefines this rwt function with an empty function, so nothing happens on click and user goes directly to its result. |
| 12 | +### Details |
12 | 13 |
|
13 | | -The original idea comes from the « Remove Google Redirect in Google Search Results » add-on. |
| 14 | +When you hover over a Google Search result, the target link seems to be the |
| 15 | +right one but when you click on this link, the target is replaced with a link |
| 16 | +to a Google tracker, which is used to record the external links you visit. |
14 | 17 |
|
15 | | -This add-on is packaged as WebExtension and so is compatible with recent Firefox releases and technologies. |
| 18 | +To achieve this, Google Search uses an `onmousedown` event on result links. |
| 19 | +This event rewrites the target link by using a function called `rwt`. This |
| 20 | +add-on simply replaces this `rwt` function with an empty function, so nothing |
| 21 | +happens on click and you go directly to the result. |
16 | 22 |
|
17 | | -## Report issue, improvements |
| 23 | +The original idea comes from the |
| 24 | +[Remove Google Redirect in Google Results](https://chrome.google.com/webstore/detail/remove-google-redirect-in/miaghkkhkjklnijffegcpjlhdjelnkke) |
| 25 | +add-on. |
18 | 26 |
|
19 | | -Source code can be found on Github: https://github.com/Trim/avoid-google-search-redirects |
| 27 | +This add-on is packaged as a WebExtension and so is compatible with Firefox 57+ (November 2017). |
| 28 | + |
| 29 | +## Report issues, improvements |
| 30 | + |
| 31 | +Source code can be found on GitHub: https://github.com/Trim/avoid-google-search-redirects |
20 | 32 |
|
21 | 33 | You can use this repository to open issues and feature requests. |
| 34 | + |
| 35 | +## See Also |
| 36 | + |
| 37 | +- [google-redirect-rewrite-remove](https://addons.mozilla.org/en-US/firefox/addon/google-redirect-rewrite-remove/) - uses a similar technique to this add-on, but in a less robust way |
| 38 | +- [Remove Google Redirect in Google Results](https://chrome.google.com/webstore/detail/remove-google-redirect-in/miaghkkhkjklnijffegcpjlhdjelnkke) - the original inspiration for this add-on |
0 commit comments