PageSourceSearch

https://www.mbalib.com/web/vueStatic/common.js?t=20220401

js mbalib.com collected 2026-09-24 08:35:43 UTC 1,351 bytes, 42 lines download raw bytes

1function weixinGeneratescheme(url, apiServer){
2    let openlink = '';
3    $.ajax({
4        url: apiServer + '/weixin/generatescheme',
5        type:'POST',
6        async: false,
7        dataType: 'json',
8        data: {
9            url: encodeURIComponent(url)
10        },
11        success:function(result){
12            if(result.openlink){
13                openlink = result.openlink;
14            }
15        }
16    });
17    return openlink;
18}
19
20(function() {
21    function wfGetUrlParam(name) {
22        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
23    
24        var r = window.location.search.substr(1).match(reg); //匹配目标参数
25    
26        if (r != null) return unescape(r[2]);
27        return null; //返回参数值
28    }
29    
30    function wfSetCookie(c_name, value, minute, domain) {
31    var exdate = new Date();
32    //exdate.setDate(exdate.getDate()+expiredays);
33    exdate.setTime(exdate.getTime() + 60 * 1000 * minute);
34    document.cookie = c_name + "=" + escape(value) + ";path=/;domain=" + domain +
35        ((minute == null) ? "" : ";expires=" + exdate.toGMTString());
36    }
37    
38    var from_source = wfGetUrlParam('from_source');
39    if(from_source){
40        wfSetCookie('from_source', from_source, '60', '.mbalib.com');
41    }
42})();

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.