Google Keep 全屏编辑

像Notepad一样使用Google Keep

当前为 2018-11-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Fullscreen Google Keep
  3. // @name:zh-CN Google Keep 全屏编辑
  4. // @namespace http://tampermonkey.net/
  5. // @description Edit Google Keep in Fullscreen (like using Notepad)
  6. // @description:zh-CN 像Notepad一样使用Google Keep
  7. // @author John Ren
  8. // @match http*://keep.google.com/*
  9. // @run-at document-start
  10. // @version 0.20181124235928
  11. // ==/UserScript==
  12. (function() {var css = [
  13. "/* Full-screen for new note */",
  14. "",
  15. "/* Main */",
  16. " .h1U9Be-xhiy4>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn>.IZ65Hb-TBnied {",
  17. " width: 100vw !important;",
  18. " height: 100vh !important;",
  19. " position: fixed !important;",
  20. " left: 0 !important;",
  21. " top: 0 !important;",
  22. " z-index: 999 !important;",
  23. " border-radius: 0px;",
  24. "}",
  25. "/* Title */",
  26. " .h1U9Be-xhiy4>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd>.IZ65Hb-YPqjbf.r4nke-YPqjbf {",
  27. " font-size: 1.4rem !important;",
  28. " font-weight: 400 !important;",
  29. " line-height: 1.75rem !important;",
  30. " padding-bottom: 12px !important;",
  31. " padding-top: 16px !important;",
  32. "}",
  33. "/* Scroll */",
  34. " .h1U9Be-xhiy4>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd {",
  35. " max-height: calc(100% - 40px) !important;",
  36. "}",
  37. "/* Content */",
  38. " .h1U9Be-xhiy4>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd>.IZ65Hb-YPqjbf.h1U9Be-YPqjbf {",
  39. " width: calc(92vw - 11px) !important;",
  40. " margin:2vw 4vw!important;",
  41. " font-size: 1.1rem !important;",
  42. " line-height: 2rem !important;",
  43. "}",
  44. "/* Tools */",
  45. " .h1U9Be-xhiy4>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn>.IZ65Hb-TBnied>.IZ65Hb-yePe5c {",
  46. " width: 100vw !important;",
  47. " position: absolute !important;",
  48. " bottom: 0 !important;",
  49. " left:0 !important;",
  50. "}",
  51. "/* Full-screen for editing note */",
  52. "",
  53. "/* Main */",
  54. " .IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb {",
  55. " width: 100vw !important;",
  56. " height: 100vh !important;",
  57. " position: fixed !important;",
  58. " left: 0 !important;",
  59. " top: 0 !important;",
  60. " z-index: 999 !important;",
  61. " border-radius: 0px;",
  62. "}",
  63. ".VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied {",
  64. " width:100% !important;",
  65. " height:100% !important;",
  66. " border-radius: 0px;",
  67. "}",
  68. "/* Title */",
  69. " .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd>.IZ65Hb-YPqjbf.r4nke-YPqjbf {",
  70. " font-size: 1.4rem !important;",
  71. "}",
  72. "/* Scroll */",
  73. " .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd {",
  74. " max-height: calc(100% - 40px) !important;",
  75. "}",
  76. "/* Content */",
  77. " .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd>.IZ65Hb-YPqjbf.h1U9Be-YPqjbf {",
  78. " width: calc(92vw - 11px) !important;",
  79. " margin:2vw 4vw!important;",
  80. " font-size: 1.1rem !important;",
  81. " line-height: 2rem !important;",
  82. "}",
  83. ".XKSfm-L9AdLc .h1U9Be-YPqjbf, .zJtgdf-swAEc-bN97Pc .h1U9Be-YPqjbf, body.dkl3Ye .h1U9Be-YPqjbf {",
  84. " padding-top: 12px;",
  85. "}",
  86. "/* Tools */",
  87. " .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-yePe5c {",
  88. " width:100% !important;",
  89. " position:absolute !important;",
  90. " bottom:0 !important;",
  91. " left:0 !important;",
  92. "}",
  93. "/* Info */",
  94. " .IZ65Hb-jfdpUb {",
  95. " padding:0px 15px !important",
  96. "}",
  97. "/* Fixed font size on dashboard */",
  98. ".IZ65Hb-YPqjbf.h1U9Be-YPqjbf.zfdrlf-WsjYwc-sLO9V {",
  99. " font-size: 0.8rem !important;",
  100. "}",
  101. "/* No scroll bar on dashboard */",
  102. " body::-webkit-scrollbar {",
  103. " width: 0px;",
  104. "}",
  105. "/* Fix Scroll bar in editor */",
  106. " .IZ65Hb-s2gQvd.r4nke-bJ69tf-ma6Yeb::-webkit-scrollbar {",
  107. " width:10px !important;",
  108. "}",
  109. ".IZ65Hb-s2gQvd::-webkit-scrollbar {",
  110. " width:0px !important;",
  111. "}"
  112. ].join("\n");
  113. if (typeof GM_addStyle != "undefined") {
  114. GM_addStyle(css);
  115. } else if (typeof PRO_addStyle != "undefined") {
  116. PRO_addStyle(css);
  117. } else if (typeof addStyle != "undefined") {
  118. addStyle(css);
  119. } else {
  120. var node = document.createElement("style");
  121. node.type = "text/css";
  122. node.appendChild(document.createTextNode(css));
  123. var heads = document.getElementsByTagName("head");
  124. if (heads.length > 0) {
  125. heads[0].appendChild(node);
  126. } else {
  127. // no head yet, stick it whereever
  128. document.documentElement.appendChild(node);
  129. }
  130. }
  131. })();