title: Greasemonkey script to change a value on a page
body: <p>I want to change this value:</p>
  
  <pre><code>&lt;param name="fullScreen" value="0"&gt;
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>&lt;param name="fullScreen" value="1"&gt;
  </code></pre>
  
  <p>On a page. I have been experimenting with Greasemonkey with this script:</p>
  
  <pre><code>// ==UserScript==
  // @name           Fullscreen
  // @namespace      http://localhost
  // @include        http://jahantv.com*
  // @include        *jahantv*
  // ==/UserScript==
  
  var i, x = document.evaluate('//*[@name="fullScreen"][@value="0"]', document,
  null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  for ( i=0 ; i &lt; x.snapshotLength; i++ )
      x.snapshotItem(i).setAttribute("value", "1"); 
  </code></pre>
  
  <p>But it is not functioning. There must be a simple way of doing this. My knowledge of javascript is <strong>very</strong> limited, therefore I would appreciate any reply with details.</p>
  
  <p>EDIT: If anyone want to try it out, go to this page <a href="http://jahantv.com/Persian/Iran/Iranian/OnLine/Live/Streaming/TVs/ariana-TV.html" rel="nofollow">http://jahantv.com/Persian/Iran/Iranian/OnLine/Live/Streaming/TVs/ariana-TV.html</a> and run the script, and kindly mind the ridicoulas design of that site.</p>