chrome扩展-鼠标悬停单击

时间:2020-10-13 11:37:22

标签: javascript google-chrome-extension

我的网站上有很多按钮,我想编写一个扩展程序,当鼠标在其上移动时,无需每次都进行物理点击即可单击按钮。

我用python语法写了我需要的东西,因为我在JavaScript方面没有很好的经验。 如何用javascript编写? 非常感谢

for button in buttons list:
  if (button.mouse.move(function(event)) == true && button.background.color == transparent)
    button.mouse.click= 1

0 个答案:

没有答案