Discussions » Creation Requests

Underlining Google Search Result Titles

§
Posted: 2018-09-29

Underlining Google Search Result Titles

Hello.

Can someone maybe please create a script for google's underlining search result titles ?

All of the scripts that exist doesn't work anymore since recently when google changed something..

§
Posted: 2018-09-29
Edited: 2018-09-29

Here are the scripts I found that doesn't work anymore:

// ==UserScript==
// @name Google links old style

// @include     http://www.google.*/
// @include     http://www.google.*/?*
// @include     http://www.google.*/#*
// @include     http://www.google.*/search*
// @include     http://www.google.*/webhp*
// @include     https://www.google.*/
// @include     https://www.google.*/?*
// @include     https://www.google.*/#*
// @include     https://www.google.*/search*
// @include     https://www.google.*/webhp*
// @include     https://encrypted.google.*/
// @include     https://encrypted.google.*/?*
// @include     https://encrypted.google.*/#*
// @include     https://encrypted.google.*/search*
// @include     https://encrypted.google.*/webhp*

// @grant       GM_addStyle

// ==/UserScript==
+function(){
    var links = '#res h3.r a';
    var items = 'li.g';
    var s = document.createElement('style');
    s.textContent = links+'{text-decoration:underline!important;font-size:16px!important;}'+items+'{margin-bottom:12px;!important}';
    document.head.appendChild(s);
}();
§
Posted: 2018-09-29
Edited: 2018-09-29
// ==UserScript==
// @name Google Restore Underline
// @namespace GRU
// @description Restores underlining to Google title results.
// @version 122.13.15.0145
// @run-at  document-ready
// @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://www.google.ca/images/google_favicon_128.png
// ==/UserScript==

$(document).ready(function () {

    $('#res a').css('text-decoration','underline');

});
§
Posted: 2018-09-29
Edited: 2018-09-29
// ==UserScript==
// @name          Underline Google Search Result Links
// @namespace     http://userstyles.org
// @description   Adds the underline back to links in Google search results
// @author        jengolbeck
// @homepage      https://userstyles.org/styles/99209
// @include       http://www.google.com*
// @include       https://www.google.com*
// @run-at        document-start
// @version       0.20140313175851
// ==/UserScript==
(function() {var css = [
    "@namespace url(http://www.w3.org/1999/xhtml);",
    "#rcnt a { ",
    "   text-decoration : underline !important",
    "}"
].join("\n");
if (typeof GM_addStyle != "undefined") {
    GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
    PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
    addStyle(css);
} else {
    var node = document.createElement("style");
    node.type = "text/css";
    node.appendChild(document.createTextNode(css));
    var heads = document.getElementsByTagName("head");
    if (heads.length > 0) {
        heads[0].appendChild(node);
    } else {
        // no head yet, stick it whereever
        document.documentElement.appendChild(node);
    }
}
})();
§
Posted: 2018-09-29

S.O.S.

Please help...

§
Posted: 2018-09-30
// ==UserScript==
// @name Google links old style
// @include     http://www.google.*/
// @include     http://www.google.*/?*
// @include     http://www.google.*/#*
// @include     http://www.google.*/search*
// @include     http://www.google.*/webhp*
// @include     https://www.google.*/
// @include     https://www.google.*/?*
// @include     https://www.google.*/#*
// @include     https://www.google.*/search*
// @include     https://www.google.*/webhp*
// @include     https://encrypted.google.*/
// @include     https://encrypted.google.*/?*
// @include     https://encrypted.google.*/#*
// @include     https://encrypted.google.*/search*
// @include     https://encrypted.google.*/webhp*
// @grant       none
// ==/UserScript==
+function(){
    var s = document.createElement('style');
    s.textContent = '#res h3,#res a{text-decoration:underline!important;}';
    document.head.appendChild(s);
}();

don't know if any bug

§
Posted: 2018-10-03

isnt this a css thing?

whhy want underline? it bad

§
Posted: 2019-01-15
Edited: 2019-01-15

Array.from(document.getElementsByClassName("LC20lb")).forEach(e => { e.style.textDecoration = "underline" })

Post reply

Sign in to post a reply.