PageSourceSearch

https://st.drweb.cn/static/js/redir-https.js

js drweb.cn collected 2026-10-02 17:09:01 UTC 305 bytes, 17 lines download raw bytes

1// https redir on client
2
3
4
5    var proto_re = new RegExp("^http:");
6    if( proto_re.test( window.location.href ) )
7    {
8	var u = new String( window.location.href );
9	u1 = u.replace( proto_re, 'https:' );
10	if( u1 != u )
11	{
12	    window.location.replace( u1 );
13	    //window.location = u1;
14	}
15    }
16
17    

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.