Click here to Skip to main content
15,906,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<button title="" data-original-title="" rel="tooltip" data-title="Boost this device" data-placement="right" data-trigger="hover" class="btn btn-xs btn-link boost"></button>

would prefer a userscript to do it but don't know how to do it running firefox on ubuntu with greasemonkey

ok so i made a mistake it's every 3 hours and I have no coding experience. That is the reason I asked for a script.
Posted
Updated 2-Dec-14 21:18pm
v2
Comments
Sinisa Hajnal 3-Dec-14 2:14am    
Why? Why not have a timer on the page to do it?

1 solution

Hi,

First of all, it is not recommended to perform button click from script however, we can call the embedded function with certain time duration.
HTML
<html>
	<head>
 	<script>
	function buttonClick()
		{
			document.getElementById("output").innerHTML += "Clicked!  ";
			setTimeout(function(){
				buttonClick()
			}, 1000);
		}
		
     </script>
 </head>
	<body>
	<button onclick="buttonClick()">Click Me </button>
	
	</body>
</html>

for your scenario the time duration should be 7200000.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900