readable Quora

Wider screen, bigger font-size, eye-protecting background color.

目前為 2022-04-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name        readable Quora
// @author      qianjunlang
// @description Wider screen, bigger font-size, eye-protecting background color.
// @match       *.quora.com/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @version     3.5
// @run-at      document-idle
// @license MIT License
// @namespace https://greasyfork.org/users/861664
// ==/UserScript==


    $("#root").css({"background": "#d4ebc7", });//"#EBF4BD",//"#CCE8CF",
    $(".qu-bg--raised").css({
        "background":"#deecc2", //dbeec6
        "-webkit-font-smoothing": "antialiased",
    });
    $(".qu-bg--red").css("background-color", "#9a68af");

//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    if(
        window.location.href == "https://www.quora.com/" ||
        window.location.href.indexOf("/search?q=") >=0
    ){
        $("#root").css({"width": (window.innerWidth - 10) + "px","overflow":"hidden",});
        $(".ioqSAj").css({"width": (window.innerWidth * 2) + "px",});



        $("#mainContent").css({"width": parseInt(
            window.innerWidth * (window.location.href.indexOf("/search?q=")<0 ? 0.63 : 0.83)
        )+"px",});

        return;
    }

//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    $(".q-box.qu-display--inline-flex.qu-mr--large.Link___StyledBox-t2xg9c-0.KlcoI.SiteHeader___StyledLink-us2uvv-1.ZMeFq.qu-cursor--pointer.qu-hover--textDecoration--underline").hide();

    $(".ioqSAj").css({"width": (window.innerWidth -60) + "px",});
    $(".ioqSAj div.q-box").css({"margin-left": 10 + "px",});
    $(".ioqSAj div.q-box").find("div").css({"margin-left": 0,});

    $("#mainContent").css({
        "width": parseInt(window.innerWidth * 1.8)+"px",
        "font-size": "21px",
        "line-height": "27px",
        "font-family":" Gadugi, copperplate, Calibri, Helvetica, Verdana, YouYuan,'Source Han Sans', Arial, Verdana, Sans-serif",
        "-webkit-font-smoothing": "antialiased",
    });

    $(".qu-mb--large div div.q-box").css({
        "font-size":"14px",
        "font-family":" 'Trebuchet MS', Geneva, Tahoma, Gadugi, copperplate, Calibri, Helvetica, Verdana, YouYuan,'Source Han Sans', Arial, Verdana, Sans-serif",
        "-webkit-font-smoothing": "none",
    });