Greasy Fork is available in English.

Google Restore Underline

Restores underlining to Google title results.

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name Google Restore Underline
// @namespace GRU
// @description Restores underlining to Google title results.
// @version 125
// @run-at  document-body
// @include http://www.google.*/*
// @include https://www.google.*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @author  drhouse
// @icon    https://cdn1.iconfinder.com/data/icons/company-identity/100/new-google-favicon-128.png
// ==/UserScript==

$(document).ready(function () {
    // Target h3 elements within the main search results area
    // Using multiple selectors to cover different Google layouts
    $('#search h3, #rso h3, main h3, #res h3, #botstuff h3').css('text-decoration', 'underline');

    // Use MutationObserver to handle dynamically loaded content (infinite scroll, etc.)
    const observer = new MutationObserver(function(mutations) {
        $('#search h3, #rso h3, main h3, #res h3, #botstuff h3').css('text-decoration', 'underline');
    });

    const searchContainer = document.querySelector('#search, #rso, main, #res');
    if (searchContainer) {
        observer.observe(searchContainer, { childList: true, subtree: true });
    }
});