PageSourceSearch

https://www.midwestfirst.com/wp-content/plugins/cloak-front-end-email/cloakfrontendemail.js?ver=1

js midwestfirst.com collected 2026-10-07 23:15:13 UTC 3,192 bytes, 75 lines download raw bytes

1jQuery(document).ready(function() {
2
3    //Check for Phantomjs, Slimerjs, Selenium agent
4    if(/PhantomJS/.test(window.navigator.userAgent) || /SlimerJS/.test(window.navigator.userAgent) || window.document.documentElement.getAttribute("webdriver") || navigator.webdriver) {
5        console.log("Headless environment detected.");
6    }else{
7        //get all cfe-emails on page except dashboard
8        cfeemails = [];
9        jQuery('.cfe-wrapper span').each(function(i,elem) {
10            if (jQuery(elem).attr('class') != 'cfe-jsemail-cfe-dashboard') {
11                cfeemails.push(jQuery(elem).attr('class').replace('cfe-jsemail-', ''));
12            }
13        });
14
15        //if only dashboard
16        if(jQuery('.cfe-jsemail-cfe-dashboard').length > 0) {
17           jQuery.ajax({
18                type : "post",
19                dataType : "text",
20                url : cfe_object.ajaxurl,
21                data : {
22                    action: "cfe_js_admin_email",
23                    nonce:  jQuery('.secure-cloak').val()
24                },
25                success: function(data) {
26                    var s = '';
27                    var a = data;
28                    var subject_line = jQuery('.cfe-jsemail-cfe-dashboard').data('subject');
29                    if(subject_line) {
30                        s = '?subject=' + subject_line;
31                    }
32                    var h = 'mailto:' + a + s;
33                    jQuery('.cfe-jsemail-cfe-dashboard').html('<a href="'+ h +'">'+ a +'</a>');
34                },
35                error: function() {
36                    console.log('Ajax Error occured');
37                }
38            });
39        }
40
41        //if other emails are on page
42        if(cfeemails.length > 0) {
43                jQuery.ajax({
44                    type : "post",
45                    dataType : "json",
46                    url : cfe_object.ajaxurl,
47                    data : {
48                        action: "cfe_get_all_emails",
49                        emails: cfeemails,
50                        nonce:  jQuery('.secure-cloak').val()
51                    },
52                    success: function(data) {
53                        i = 0; //set iterator
54                        //loop through emails and replace enable javascript
55                        jQuery.each(data, function(i,elem){
56                            var s = '';
57                            var a = data[i].option_value;
58                            var subject_line = jQuery('.cfe-jsemail-' + data[i].option_name).data('subject');
59                            if(subject_line) {
60                                s = '?subject=' + subject_line;
61                            }
62                            var h = 'mailto:' + a + s;
63                            jQuery('.cfe-jsemail-' + data[i].option_name).html('<a href="'+ h +'">'+ a +'</a>');
64                            i++;
65                        });
66                    },
67                    error: function() {
68                        console.log('Ajax Error occured');
69                    }
70                });
71        }
72
73    }//end of else
74
75}); //end of jQuery

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.