Revert Google search

Alters Google search results to have the old design without favicons

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Revert Google search
// @description Alters Google search results to have the old design without favicons
// @run-at      document-end
// @version     0.3
// @namespace   com.example
// @include     https://www.google.com/search?*
// @require     https://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==

(function() {
  $(".r").find("a").each(function() {
    $(this).find("br").remove();
    $(this).append("<br/>");

    // URL and favicon bar
    $(this).find(".TbwUpd").detach().appendTo($(this).parent());
    $(this).parent().find(".TbwUpd").find("cite").css("color", "#026F24");
    $(this).parent().find(".TbwUpd").css("vertical-align", "top");

    // Google cache little arrow
    $(this).parent().find(".yWc32e").detach().appendTo($(this).parent());
    $(this).parent().find(".yWc32e").css("padding-top", "0px");
    $(this).parent().find(".yWc32e").css("padding-bottm", "0px");

    // URL and favicon bar
    $(this).parent().find(".B6fmyf").remove();

    // Main title
    $(this).find(".LC20lb").css("margin-bottom", "0px");
  });
  // Favicon
  $(".xA33Gc").remove();
})();