PageSourceSearch

https://www.grab.fr/wp-content/plugins/zero-spam/modules/davidwalsh/assets/js/davidwalsh.js?ver=5.5.7

js grab.fr collected 2026-09-24 21:04:51 UTC 1,379 bytes, 47 lines download raw bytes

1/**
2 * Zero Spam for WordPress David Walsh jQuery plugin.
3 *
4 * Handles adding the required functionality for spam detections.
5 */
6(function ($) {
7  $.fn.ZeroSpamDavidWalsh = function () {
8    // Check if the required WPZS key is defined.
9    if (typeof ZeroSpamDavidWalsh.key == "undefined") {
10      return this;
11    }
12
13    // Check if the element is on the page.
14    if (!this.length) {
15      return this;
16    }
17
18    // Add an attribute to the element to show its been initialized by WPZS.
19    this.attr("data-zerospam-davidwalsh", "protected");
20
21    // Check if the WPZS hidden input already exists.
22    if ($('[name="zerospam_david_walsh_key"]', this).length) {
23      // Hidden input already exists, update its value.
24      $('[name="zerospam_david_walsh_key"]', this).val(ZeroSpamDavidWalsh.key);
25    } else {
26      // Hidden input isn't present, add it.
27      $(
28        '<input type="hidden" name="zerospam_david_walsh_key" value="' +
29          ZeroSpamDavidWalsh.key +
30          '" />'
31      ).appendTo(this);
32    }
33  };
34
35  $(function () {
36    var selectors =
37      ".frm-fluent-form, .mepr-signup-form, .mc4wp-form, #mepr_loginform";
38    if (
39      typeof ZeroSpamDavidWalsh.selectors != "undefined" &&
40      ZeroSpamDavidWalsh.selectors
41    ) {
42      selectors += "," + ZeroSpamDavidWalsh.selectors;
43    }
44
45    jQuery(selectors).ZeroSpamDavidWalsh();
46  });
47})(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.