Skip to content

Instantly share code, notes, and snippets.

@tarasn
Last active August 29, 2015 14:18
Show Gist options
  • Save tarasn/c682df1d169fba9bc7fa to your computer and use it in GitHub Desktop.
Save tarasn/c682df1d169fba9bc7fa to your computer and use it in GitHub Desktop.
// The code below need to be pasted immediately after this line "static function OnBeforeRequest(oSession: Session) {"
function RequestContains (uri:String) {
return oSession.uriContains(uri) || oSession.oRequest.headers.ExistsAndContains("Referer", uri);
}
if (
false
|| RequestContains("ClientState.ashx")
|| RequestContains("keepAlive.ashx")
|| RequestContains("InteractiveMessagesService.svc")
)
oSession["ui-hide"] = "true";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment