使用javascript / jquery在whatsapp网站上搜索名称

时间:2020-04-17 08:49:04

标签: javascript jquery google-chrome-extension

我想使用javascript或jquery用字符串更新whatsapp网站的搜索输入,以便它显示所有找到的联系人的列表。就像我输入搜索联系人的时间一样。基本的js和jquery似乎不起作用。像innertext,innerhtml,text,html。我尝试将焦点与execCommand一起使用。

document.querySelector("inputSelector").focus();
document.execCommand('insertText', false, "name");

0 个答案:

没有答案