Revert Google search

Alters Google search results to have the old design without favicons

  1. // ==UserScript==
  2. // @name Revert Google search
  3. // @description Alters Google search results to have the old design without favicons
  4. // @run-at document-end
  5. // @version 0.3
  6. // @namespace com.example
  7. // @include https://www.google.com/search?*
  8. // @require https://code.jquery.com/jquery-3.4.1.min.js
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. $(".r").find("a").each(function() {
  13. $(this).find("br").remove();
  14. $(this).append("<br/>");
  15.  
  16. // URL and favicon bar
  17. $(this).find(".TbwUpd").detach().appendTo($(this).parent());
  18. $(this).parent().find(".TbwUpd").find("cite").css("color", "#026F24");
  19. $(this).parent().find(".TbwUpd").css("vertical-align", "top");
  20.  
  21. // Google cache little arrow
  22. $(this).parent().find(".yWc32e").detach().appendTo($(this).parent());
  23. $(this).parent().find(".yWc32e").css("padding-top", "0px");
  24. $(this).parent().find(".yWc32e").css("padding-bottm", "0px");
  25.  
  26. // URL and favicon bar
  27. $(this).parent().find(".B6fmyf").remove();
  28.  
  29. // Main title
  30. $(this).find(".LC20lb").css("margin-bottom", "0px");
  31. });
  32. // Favicon
  33. $(".xA33Gc").remove();
  34. })();