长话短说,Google 没有为 Google Keep 提供 API。因此,我试图将适合我需求的东西“破解”在一起。我想出的是一个适用于 Chrome 的 JavaScript 用户脚本,可以在https://keep.google.com
. 根据我的需要,用户脚本会遍历每个注释并单击提醒按钮,然后填写各个部分以添加提醒。
我坚持让click
事件为 DIV 触发。单个注释的 HTML 如下。开始的行<div aria-label="Remind me"...
是div
用户单击以显示提醒弹出窗口的行。问题是我无法弄清楚如何生成click
事件以显示提醒弹出窗口。
<div class="IZ65Hb-n0tgWb IZ65Hb-WsjYwc-nUpftc RNfche" style="width: 240px;" tabindex="0">
<div aria-label="Select note" class="VIpgJd-LgbsSe IZ65Hb-NGme3c" role="button" style="-webkit-user-select: none;" tabindex="0">
<div class="IZ65Hb-NGme3c-bN97Pc"></div>
</div>
<div class="IZ65Hb-TBnied HLvlvd-h1U9Be" style="background-color: rgb(250, 250, 250);">
<div class="IZ65Hb-s2gQvd">
<div class="IZ65Hb-hYUzqc" style="height: 0px; width: 240px;"></div>
<div class="notranslate IZ65Hb-YPqjbf r4nke-YPqjbf LwH6nd" style="display: none;">
Title
</div>
<div class="notranslate IZ65Hb-YPqjbf r4nke-YPqjbf" contenteditable="false" style="display: none;"></div>
<div class="notranslate IZ65Hb-YPqjbf h1U9Be-YPqjbf LwH6nd" style="display: none;">
Note
</div>
<div class="notranslate IZ65Hb-YPqjbf h1U9Be-YPqjbf rTEl-SX9D7d-Y5a8lc" contenteditable="false">
this is a bingo<br>
<br>
</div>
<div class="IZ65Hb-x00ATb" style="display: none;"></div>
<div class="IZ65Hb-Tswv1b">
Edited 9:17 PM
</div>
<div class="IZ65Hb-kODWGd" style="display: none;"></div>
</div>
<div class="IZ65Hb-yePe5c">
<div class="VIpgJd-LgbsSe fmcmS-LgbsSe IZ65Hb-iib5kc" role="button" style="-webkit-user-select: none;" tabindex="0">
Done
</div>
<div class="IZ65Hb-INgbqf" role="toolbar">
<div aria-label="Remind me" class="VIpgJd-LgbsSe Bz112c-LgbsSe zyxPWd INgbqf-LgbsSe" role="button" style="-webkit-user-select: none;" tabindex="0"></div>
<div aria-label="Share" class="VIpgJd-LgbsSe Bz112c-LgbsSe euCgFf INgbqf-LgbsSe" role="button" style="-webkit-user-select: none;" tabindex="0"></div>
<div aria-label="Change color" class="VIpgJd-LgbsSe Bz112c-LgbsSe VsHK1d INgbqf-LgbsSe" role="button" style="-webkit-user-select: none;" tabindex="0"></div>
<div aria-label="Add image" class="VIpgJd-LgbsSe Bz112c-LgbsSe Ge5tnd-HiaYvf INgbqf-LgbsSe" role="button" style="-webkit-user-select: none;" tabindex="0"></div>
<div aria-label="Archive" class="VIpgJd-LgbsSe Bz112c-LgbsSe JqEhuc INgbqf-LgbsSe" role="button" style="-webkit-user-select: none;" tabindex="0"></div>
<div aria-label="More" class="VIpgJd-LgbsSe Bz112c-LgbsSe xl07Ob INgbqf-LgbsSe" role="button" style="-webkit-user-select: none;" tabindex="0"></div>
</div>
<div class="IZ65Hb-zyxPWd-bVEB4e" style="display: none;">
<div class="IZ65Hb-zyxPWd-bVEB4e-V67aGc"></div>
<div aria-label="Delete reminder" class="VIpgJd-LgbsSe Bz112c-LgbsSe IZ65Hb-zyxPWd-bVEB4e-VkLyEc" role="button" style="-webkit-user-select: none;" tabindex="0"></div>
</div>
<div class="s7EWJd-bVEB4e" style="display: none;"></div>
</div>
</div>
</div>