PageSourceSearch

https://lalanbik.re/modules/supersoniks/js/ssks_altcha.js?tm9s9v

js lalanbik.re collected 2026-10-07 16:13:24 UTC 1,206 bytes, 37 lines download raw bytes

1(function($, Drupal, drupalSettings) {
2  Drupal.behaviors.ssks_altcha = {
3    attach: function(context, settings) {
4
5      const $altchaWidget = $('altcha-widget');
6        const warningUrl = drupalSettings.ssks_altcha && drupalSettings.ssks_altcha.warning_url ? Drupal.settings.ssks_altcha.warning_url : null;
7
8      $(once("init-altcha", $altchaWidget)).each(function() {
9        const $input = $(this).find('input');
10        $(once("init-altcha-input", $input)).each(function() {
11          $(this).on('click', function(ev) {
12            if (!ev.originalEvent.isTrusted) {
13              // Clic simulé par script => bloqué
14
15                if (warningUrl) {
16                    $.ajax({
17                        method: "GET",
18                        url: warningUrl.replace(/http:/g, "https:"),
19                        complete: function(response) {
20                            // ras
21                        },
22                    });
23                }
24
25              ev.stopImmediatePropagation();
26              ev.preventDefault();
27              return false;
28            }
29
30            // Clic manuel : continuer
31           })
32        });
33      });
34
35    },
36  };
37})(jQuery, Drupal, drupalSettings);

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.