readable Quora

宽屏显示 + 护眼色 + 回答页大字号 + 页面动画美化。 Wide screen, big font-size, eye-protecting background color, animation effect.

Stan na 04-04-2022. Zobacz najnowsza wersja.

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        readable Quora
// @author      qianjunlang
// @description 宽屏显示 + 护眼色 + 回答页大字号 + 页面动画美化。 Wide screen, big font-size, eye-protecting background color, animation effect.
// @match       *.quora.com/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @version     5.0
// @run-at      document-idle
// @license MIT License
// @namespace https://greasyfork.org/users/861664
// @compatible  edge
// @compatible  chrome
// ==/UserScript==


var color_time = 4;
var move_time = 2;
var zoom_time = 0.8;

function anima(){

    var top_banner = "div.q-box:last-child > div.q-fixed.qu-fullX.qu-zIndex--header.qu-bg--raised.qu-borderBottom.qu-boxShadow--medium.qu-borderColor--raised:nth-child(2) > div.q-box > div.q-flex.qu-alignItems--center";
    $(top_banner).css({
        "width": parseInt(window.innerWidth -30) +"px",

        "transform":"translateX("+ (10- $(top_banner).position().left) +"px)",
        "transition-timing-function": "ease",
        "transition": move_time + 's',
        "transition-delay": color_time + 's',
    });

    $(".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").css({
        "transform":"scale(0.8) translateX("+ (14) +"px)",
        "transition-timing-function": "ease-out",
        "transition": zoom_time + 's',
        "transition-delay": (color_time + move_time) + 's',
    });
}
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

$(document).ready(function(){
    $($(".qu-px--small")[0]).hide();
    $(".qu-bg--red").css({
        "background-image": "linear-gradient(to right, #e3622f, #ff7b00 , #ffc65a , violet 83%, rgb(185, 043, 039) 100% )", // "#9a68af"
    });
    $(".ioqSAj div.q-box").css({
        "margin-left": 10 + "px",
        "margin-right":0
    });
    $(".ioqSAj div.q-box").find("div").css({"margin-left":0, "margin-right":0});

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

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

    }else{
        $(".ioqSAj").css({"width": (window.innerWidth -42) + "px",});
        $("#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",
        });
    }

    $(".qu-bg--raised").css({
        "-webkit-font-smoothing": "antialiased",

        "background":"#deecc2", //dbeec6
        "transition-timing-function": "ease",
        "transition": color_time + 's',
    });
    $("#root").css({
        "width": (window.innerWidth - 10) + "px",
        "overflow":"hidden",

        "background": "#d4ebc7",//"#EBF4BD",//"#CCE8CF",
        "transition-timing-function": "ease",
        "transition": color_time + 's',
    });

    window.onload = anima();
});