In this case, Let's take Google Search as example:
if (oSession.uriContains("&q=")) {
var str = oSession.fullUrl;
var sAppend = "test1+test2+test3";
if (!oSession.uriContains(sAppend))
{
oSession.fullUrl = str.replace( "&q=","&q="+sAppend);
}
}
For those who are confused, It says, If &q= is present in the URI, replace/append &q= with &q=test1+test2+test3
Problem: It appends test1+test2+test3 instantly, when it sees &q= in the URL.
Basically, how do I make it wait until I click the submit/search button
Thank you.
if (oSession.uriContains("&q=")) {
var str = oSession.fullUrl;
var sAppend = "test1+test2+test3";
if (!oSession.uriContains(sAppend))
{
oSession.fullUrl = str.replace( "&q=","&q="+sAppend);
}
}
For those who are confused, It says, If &q= is present in the URI, replace/append &q= with &q=test1+test2+test3
Problem: It appends test1+test2+test3 instantly, when it sees &q= in the URL.
Basically, how do I make it wait until I click the submit/search button
Thank you.