readable Quora

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

当前为 2022-04-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name readable Quora
  3. // @author qianjunlang
  4. // @description Wider screen, bigger font-size, eye-protecting background color.
  5. // @match *.quora.com/*
  6. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  7. // @version 3.5
  8. // @run-at document-idle
  9. // @license MIT License
  10. // @namespace https://greasyfork.org/users/861664
  11. // ==/UserScript==
  12.  
  13.  
  14. $("#root").css({"background": "#d4ebc7", });//"#EBF4BD",//"#CCE8CF",
  15. $(".qu-bg--raised").css({
  16. "background":"#deecc2", //dbeec6
  17. "-webkit-font-smoothing": "antialiased",
  18. });
  19. $(".qu-bg--red").css("background-color", "#9a68af");
  20.  
  21. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  22.  
  23. if(
  24. window.location.href == "https://www.quora.com/" ||
  25. window.location.href.indexOf("/search?q=") >=0
  26. ){
  27. $("#root").css({"width": (window.innerWidth - 10) + "px","overflow":"hidden",});
  28. $(".ioqSAj").css({"width": (window.innerWidth * 2) + "px",});
  29.  
  30.  
  31.  
  32. $("#mainContent").css({"width": parseInt(
  33. window.innerWidth * (window.location.href.indexOf("/search?q=")<0 ? 0.63 : 0.83)
  34. )+"px",});
  35.  
  36. return;
  37. }
  38.  
  39. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  40.  
  41. $(".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();
  42.  
  43. $(".ioqSAj").css({"width": (window.innerWidth -60) + "px",});
  44. $(".ioqSAj div.q-box").css({"margin-left": 10 + "px",});
  45. $(".ioqSAj div.q-box").find("div").css({"margin-left": 0,});
  46.  
  47. $("#mainContent").css({
  48. "width": parseInt(window.innerWidth * 1.8)+"px",
  49. "font-size": "21px",
  50. "line-height": "27px",
  51. "font-family":" Gadugi, copperplate, Calibri, Helvetica, Verdana, YouYuan,'Source Han Sans', Arial, Verdana, Sans-serif",
  52. "-webkit-font-smoothing": "antialiased",
  53. });
  54.  
  55. $(".qu-mb--large div div.q-box").css({
  56. "font-size":"14px",
  57. "font-family":" 'Trebuchet MS', Geneva, Tahoma, Gadugi, copperplate, Calibri, Helvetica, Verdana, YouYuan,'Source Han Sans', Arial, Verdana, Sans-serif",
  58. "-webkit-font-smoothing": "none",
  59. });
  60.  
  61.  
  62.