title: Run greasemonkey script after javascript
body: <p>I'm trying to modify a variable - which is created in javascript - and run a function to change some visual stuff on a page. But my greasemonkey script is - i guess - running before the javascript, i'm getting an error says function is not defined.</p>
  
  <p>How can I force to run my script after the javascript runs?</p>
  
  <p>Actually what I'm trying to do is very simple. There is a variable called cursort, what I want to do is change that to "data-price" and sort the list again using updateSort(). Here is the code:</p>
  
  <pre><code>var cursort = "data-price";
  updateSort();
  </code></pre>