Google Keep 全屏编辑

全屏编辑Google Keep,隐藏dashboard

  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 and hide the dashboard
  6. // @description:zh-CN 全屏编辑Google Keep,隐藏dashboard
  7. // @author John Ren
  8. // @match http*://keep.google.com/*
  9. // @run-at document-start
  10. // @version 1.05
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. // Hide dashboard and focus input
  15. if (!window.location.hash) {
  16. document.documentElement.style.opacity=0;
  17. document.documentElement.style.transition="all 200ms";
  18. window.addEventListener("load", function() {
  19. document.querySelector(".IZ65Hb-YPqjbf.h1U9Be-YPqjbf.LwH6nd").click();
  20. document.querySelector(".IZ65Hb-YPqjbf.h1U9Be-YPqjbf.LwH6nd").focus();
  21. });
  22. document.documentElement.style.opacity=1;
  23. }
  24. /* $(".notes-container").animate(
  25. {
  26. opacity: 1
  27. },
  28. 400,()=>{$(".notes-container").css("pointer-events", "auto");}
  29. ); */
  30.  
  31. // Inject style
  32. var css = `/* Full-screen for new note */
  33. /* Main */
  34. .h1U9Be-xhiy4>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn>.IZ65Hb-TBnied {
  35. width: 100vw !important;
  36. height: 100vh !important;
  37. position: fixed !important;
  38. left: 0 !important;
  39. top: 0 !important;
  40. z-index: 999 !important;
  41. border-radius: 0px;
  42. }
  43. /* Title */
  44. .IZ65Hb-QQhtn .r4nke-YPqjbf{
  45. font-size: 1.4rem !important;
  46. font-weight: 400 !important;
  47. line-height: 1.75rem !important;
  48. padding-bottom: 12px !important;
  49. padding-top: 16px !important;
  50. }
  51. /* Scroll */
  52. body::-webkit-scrollbar {
  53. width:0px !important;
  54. }
  55.  
  56. .IZ65Hb-s2gQvd {
  57. max-height: calc(100vh - 45px) !important;
  58. }
  59. /* Content */
  60. .IZ65Hb-QQhtn .h1U9Be-YPqjbf{
  61. padding:2vw 4vw!important;
  62. font-size: 1.2rem !important;
  63. line-height: 2rem !important;
  64. min-height:calc(100vh - 100px) !important;
  65. }
  66. /* Tools
  67. .IZ65Hb-fbudBf .IZ65Hb-yePe5c{
  68. position:absolute!important;
  69. bottom:0px!important;
  70. left:0px !important;
  71. right:0px 60vh !important;
  72. }*/
  73. .IZ65Hb-jfdpUb.xFQqWe {
  74. position: fixed;
  75. right: 0px;
  76. bottom: 65px;
  77. }
  78. /* Full-screen for editing note */
  79.  
  80. /* Main */
  81. .IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb {
  82. width: 100vw !important;
  83. height: 100vh !important;
  84. position: fixed !important;
  85. left: 0 !important;
  86. top: 0 !important;
  87. z-index: 999 !important;
  88. border-radius: 0px;
  89. }
  90. .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied {
  91. width:100% !important;
  92. height:100% !important;
  93. border-radius: 0px;
  94. }
  95. /* Title */
  96. .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd>.IZ65Hb-YPqjbf.r4nke-YPqjbf {
  97. font-size: 1.4rem !important;
  98. }
  99. /* Scroll */
  100. .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd {
  101. max-height: calc(100% - 40px) !important;
  102. }
  103. /* Content */
  104. .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-s2gQvd>.IZ65Hb-YPqjbf.h1U9Be-YPqjbf {
  105. width: calc(92vw - 11px) !important;
  106. margin:2vw 4vw!important;
  107. font-size: 1.1rem !important;
  108. line-height: 2rem !important;
  109. }
  110. .XKSfm-L9AdLc .h1U9Be-YPqjbf, .zJtgdf-swAEc-bN97Pc .h1U9Be-YPqjbf, body.dkl3Ye .h1U9Be-YPqjbf {
  111. padding-top: 12px;
  112. }
  113. /* Tools */
  114. .VIpgJd-TUo6Hb.XKSfm-L9AdLc.eo9XGd>.IZ65Hb-n0tgWb.IZ65Hb-QQhtn.oT9UPb>.IZ65Hb-TBnied>.IZ65Hb-yePe5c {
  115. width:100% !important;
  116. position:absolute !important;
  117. bottom:0 !important;
  118. left:0 !important;
  119. }
  120. /* Info */
  121. .IZ65Hb-jfdpUb {
  122. padding:0px 15px !important
  123. }
  124. /* Fixed font size on dashboard */
  125. /* No scroll bar on dashboard */
  126. body::-webkit-scrollbar {
  127. width: 0px;
  128. }
  129. /* Fix Scroll bar in editor */
  130. .IZ65Hb-s2gQvd.r4nke-bJ69tf-ma6Yeb::-webkit-scrollbar {
  131. width:10px !important;
  132. }
  133. .IZ65Hb-s2gQvd::-webkit-scrollbar {
  134. width:0px !important;
  135. }
  136. `
  137. if (typeof GM_addStyle != "undefined") {
  138. GM_addStyle(css);
  139. } else if (typeof PRO_addStyle != "undefined") {
  140. PRO_addStyle(css);
  141. } else if (typeof addStyle != "undefined") {
  142. addStyle(css);
  143. } else {
  144. var node = document.createElement("style");
  145. node.type = "text/css";
  146. node.appendChild(document.createTextNode(css));
  147. var heads = document.getElementsByTagName("head");
  148. if (heads.length > 0) {
  149. heads[0].insertAdjacentElement("afterBegin",node);
  150. } else {
  151. // no head yet, stick it whereever
  152. document.documentElement.insertAdjacentElement("afterBegin",node);
  153. }
  154. }
  155. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址