Default Value in Filter Box on My CRM

I need the default value of oppo_status in the OpportunityFilterBox to be "In Progress" in the context of My CRM and Team CRM, but "--All--" in all other context.
I have tried a few scripts in the screen Custom Content, but no result. I tried adding condition in the field Create Script, but I get an error. Please see scripts below. Any feedback would be greatly appreciated.

Screen Custom Content:

<script>
crm.ready(function(){
var Tval = crm.getArgs("T");
if(Tval=="User"||Tval=="Channel")
{
oppo_status.value("Open");
}
else
{
oppo_status.value("--All--");
}
})
</script>

--OR--

<script>
crm.ready(function(){
var Tval= getQuerystringNameValue("T");
if(Tval=="TeamDesk" || Tval=="Channel")
{
oppo_status.value("Open");
}
else
{
oppo_status.value("--All--");
}
})
</script>

Field Create Script:

var T = crm.getArg("T");
if(T=="User"||T=="Channel")
{
DefaultValue = "Open";
}
else
{
DefaultValue = "--All--";
}