Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/479.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用JavaScript在Google Keep中模拟onclick事件_Javascript_Html_Userscripts_Google Keep - Fatal编程技术网

使用JavaScript在Google Keep中模拟onclick事件

使用JavaScript在Google Keep中模拟onclick事件,javascript,html,userscripts,google-keep,Javascript,Html,Userscripts,Google Keep,长话短说,谷歌没有为谷歌Keep提供API。所以我正试图“拼凑”出符合我需要的东西。我想到的是一个运行在https://keep.google.com。根据我的需要,userscript将遍历每个注释并单击提醒按钮,然后填写各个部分以添加提醒 我一直在获取要为DIV触发的click事件。下面是单个注释的HTML。开始的那一行看。我也在找同样的,运气好吗?@Gana:没有。从来没有让它工作过。 <div class="IZ65Hb-n0tgWb IZ65Hb-WsjYwc-nUpftc RN

长话短说,谷歌没有为谷歌Keep提供API。所以我正试图“拼凑”出符合我需要的东西。我想到的是一个运行在
https://keep.google.com
。根据我的需要,userscript将遍历每个注释并单击提醒按钮,然后填写各个部分以添加提醒


我一直在获取要为DIV触发的
click
事件。下面是单个注释的HTML。开始的那一行<代码>看。我也在找同样的,运气好吗?@Gana:没有。从来没有让它工作过。
<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>