Fix Google Links (no jquery)

Prevent google page from replacing search results links with the redirection ones (vanilla JS)

  1. // ==UserScript==
  2. // @name Fix Google Links (no jquery)
  3. // @version 1.0
  4. // @namespace Lanius
  5. // @description Prevent google page from replacing search results links with the redirection ones (vanilla JS)
  6. // @author Lanius
  7. // @match https://www.google.com/search?*
  8. // @icon https://www.google.com/favicon.ico
  9. // @license BSD-3-Clause
  10. // @grant none
  11. // @run-at document-end
  12. // ==/UserScript==
  13. (function () {
  14. 'use strict';
  15. [].forEach.call(
  16. document.querySelectorAll('#rso a[data-jsarwt]'),
  17. function (el) {
  18. el.dataset.jsarwt = "";
  19. });
  20. })();