Change parameter of the URL requested on a button click
<p>I apologize in advance for not being able to supply more information, if this is not possible with the limited info, I will delete the question.</p>

<p>So, I have a script that generates kind of a search engine that depends on the script (also dinamically generated) which is quite complicated and I don't have any impact on it.</p>

<p>When you click on the apply (search) button, the search process is triggered and you can see the results on the new URL that has a few parameters.</p>

<pre><code>E. g.: http://www..example.com/...&amp;ThisParameter=XYZ&amp;SecondParameter=foo&amp;ThirdParameter=bar
</code></pre>

<p>My question is - is it possible to change <code>"ThisParameter=XYZ"</code> to something else, e. g. <code>"ThisParameter=Something"</code>. </p>

<p>The problem is that I don't know how the URL is constructed and can'i impact it, so I would need a code that would just take any URL generated and change this part mentioned.</p>

<p>Thank you for your opinions in advance!</p>

<p>EDIT</p>

<p>I have found the part of the script that impacts the URL generated. When I change it in DOM, it does redirect me to the desired page.</p>

<pre><code>var options = {"FOO":123,"BAR":"ABC","ThisParameter":"STH","EXAMPLE":123, ...}
</code></pre>

<p>And this is the output when you choose "copy path":</p>

<pre><code>_options[0].ThisParameter
</code></pre>
