您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
宽屏显示 + 护眼色 + 回答页大字号。 Wide screen, big font-size, eye-protecting background color.
当前为
- // ==UserScript==
- // @name readable Quora
- // @author qianjunlang
- // @description 宽屏显示 + 护眼色 + 回答页大字号。 Wide screen, big font-size, eye-protecting background color.
- // @match *.quora.com/*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
- // @version 4.01
- // @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-image", "linear-gradient(to right, #e3622f, #ff7b00 , #ffc65a , violet 83%, rgb(185, 043, 039) 100% )");// "#9a68af"
- $($(".qu-px--small")[0]).hide();
- $("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").css({
- "width": parseInt(window.innerWidth -25) +"px",
- "position":"absolute",
- "left":"5px",
- });
- $(".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)",
- "position": "relative",
- "left":"14px",
- });
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- 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;
- }
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- $(".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",
- });