Remove doubleclick tracking

Use original links instead of "ad.doubleclick.net" links in the Google Search means a little less tracking!

  1. // ==UserScript==
  2. // @name Remove doubleclick tracking
  3. // @description Use original links instead of "ad.doubleclick.net" links in the Google Search means a little less tracking!
  4. // @namespace Violentmonkey Scripts
  5. // @match https://www.google.com/search
  6. // @grant none
  7. // @version 0.0.1.20190521130657
  8. // ==/UserScript==
  9.  
  10. var oldOnload = window.onload;
  11.  
  12. window.onload = function () {
  13.  
  14. if (typeof oldOnload == 'function') {
  15. oldOnload();
  16. }
  17.  
  18. var adClickElements = document.getElementsByClassName('pla-unit-container');
  19. var text = '';
  20. var i;
  21. text += 'Items to fix: ';
  22. text += adClickElements.length - 1;
  23. text += '\n'
  24. for (i = 0; i < adClickElements.length - 1; i++) {
  25. text += 'URL \'' + adClickElements[i].removeChild(adClickElements[i].childNodes[0]) + '\' removed. \n';
  26. }
  27. text += 'Done, enjoy Google Search with a little less tracking! :-)';
  28.  
  29. console.log(text);
  30. }