title: a program that finds a function on a javascript webpage and run that in a loop
body: <p>So I'm trying to write a program that finds a java script function in a webpage (the page is written in java script) and a loop that runs the function until the user pushes a button.</p>
  
  <p>I think the best way to write this is an add-on so it can have its necessary accesses to browser.</p>
  
  <p>It must consist of two parts, first a block finder, something like easy filter in AdBlockPlus or block element in AdBlock+ which finds a java script function; and then a function that repeatedly runs the java script function that it found on the first step with a 500ms delay until the user tell it to stop, perhaps with a specific key.</p>
  
  <p>I know the general but I haven’t got a clue how to start. And I only know how to program in c++.
  I’m not in a rush, I’ve got like 20 days but that’s not enough for trial and error so I had to ask you guys these questions. </p>
  
  <p>My questions are:</p>
  
  <p>Is it even possible to write the code with this algorithm?</p>
  
  <p>Which browser should I choose for writing this add-on?</p>
  
  <p>What I need to learn for writing this add-on?</p>