I am trying to get a Greasemonkey script to click a specific button every XY seconds. The button I would like to click has this HTML:
<input value="CSV保存" onclick="getCSVData()" type="submit">
I searched for a solution and found:
setInterval(click, 5000);
function click()
{
$("#button id").click();
}
But what is my "button id" here?
The script basically should download a CSV file every 5 minutes.
Edit: The latest code I tried:
// ==UserScript==
// @name autoclick
// @namespace yy
// @description yy
// @include http://...
// @version 1
// ==/UserScript==
setInterval(click, 1000);
function click()
{
$("[value = 'CSV保存']").click();
}
Also I used notepad++ with "Big5(traditonal)" coding, because of the Chinese ideographs. (perhaps a mistake?)
Thanks again!