I am using this javascript
<script>
var windowloc = window.location;
var pink ="http://my.blogspot.com/search/label/Pink%20Template";
var blue ="http://my.blogspot.com/search/label/blue%20Template";
var yellow ="http://my.blogspot.com/search/label/yellow%20Template";
if((windowloc==pink)||(windowloc==blue)||(windowloc==yellow)){
//execute JavaScript
}
</script>
there are many more variables and I would much prefer it if the JS if was something along the lines where "+colorss+" can be an array of specified possibilities, I have tried the below
EDIT it must contain http://my.blogspot.com/search/label/ THEN a specified variable and then %20Template.
<script>
var windowloc = window.location;
var colorss = "'Pink'||'yellow'||'blue'";
if(windowloc=='http://my.blogspot.com/search/label/'+colorss+'%20Template'){
//execute JavaScript
}
</script>
You can do this using regexp:
Or if you want to match the whole URL: