PageSourceSearch

https://screentec.co.uk/wp-content/plugins/handl-utm-grabber/js/handl-utm-grabber.js?ver=6.9.4

js screentec.co.uk collected 2026-10-02 14:22:33 UTC 1,525 bytes, 55 lines download raw bytes

1jQuery(function($) {
2    var qvars = getUrlVars()
3
4    $.each([ 'utm_source','utm_medium','utm_term', 'utm_content', 'utm_campaign', 'gclid', 'email', 'username' ], function( i,v ) {
5
6        var cookie_field = GetQVars(v,qvars)
7
8        if ( cookie_field != '' )
9            Cookies.set(v, cookie_field, { expires: 30 });
10
11        var curval = Cookies.get(v)
12
13        if (curval != undefined) {
14            curval = decodeURIComponent(curval.replace(/[%]/g,' '))
15            if (v == 'username') {
16                //Maybe this should apply to all... We'll see...
17                curval = curval.replace(/\+/g, ' ')
18            }
19
20            jQuery('input[name=\"'+v+'\"]').val(curval)
21            jQuery('input#'+v).val(curval)
22            jQuery('input.'+v).val(curval)
23        }
24    });
25
26    $('.utm-out').each(function(){
27        var merged = $.extend( {}, handl_utm, getSearchParams(this.href) )
28        this.href = ""
29        if ( !$.isEmptyObject(merged) )
30            this.href += "?"+$.param(merged)
31    });
32});
33
34function getSearchParams(url,k){
35    var p={};
36    var a = document.createElement('a');
37    a.href = url;
38    a.search.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(s,k,v){p[k]=v})
39    return k?p[k]:p;
40}
41
42function GetQVars(v,qvars){
43    if (qvars[v] != undefined) {
44        return qvars[v]
45    }
46    return ''
47}
48
49function getUrlVars() {
50    var vars = {};
51    var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
52        vars[key] = value;
53    });
54    return vars;
55}

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.