How do I prevent spaces from being URL encoded for a `javascript:` URL?
<p>I'm trying to use the following as a URL that executes javascript:</p>

<pre><code>javascript:var field = document.getElementsByName("actions[hide]"); + for (i = 0; i &amp;lt; field.length; i++)field[i].click();
</code></pre>

<p>However, the spaces get URL encoded when I bookmark it, replaced with <code>%20</code>, which (for a reason unknown to me) causes the JS code not to work.</p>

<pre><code>javascript:var%20field%20=%20unescape%20document.getElementsByName("actions[hide]");%20+%20for%20(i%20=%200;%20i%20&amp;lt;%20field.length;%20i++)field[i].click();
</code></pre>
