a3zzat / Direct Google

// ==UserScript==
// @name         Direct Google
// @namespace    https://openuserjs.org/users/a3zzat
// @version      0.1
// @copyright   2018, a3zzat (https://openuserjs.org/users/a3zzat)
// @license     MIT
// @description  Convert google search results into direct links preventing google from tracking your activities
// @author       a3zzat
// @include      *google.com*
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  var linkElements = document.getElementsByClassName("r");
  for (var i = 0; i < linkElements.length; i++) {
    // google converts links into redirect on the event of mouse click
    // removing this event prevent google from tracking your activities
    linkElements[i].firstElementChild.removeAttribute('onmousedown');
  }
})();