Google Restore Underline

Restores underlining to Google title results.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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 });
    }
});