PageSourceSearch

http://usi32.com/js/content-image-loader.js

js usi32.com collected 2026-09-30 17:14:05 UTC 1,244 bytes, 33 lines download raw bytes

1(function($) { 'use strict';
2  $(function() {
3    $('#article-contents a, .article-body-inner a').each(function() {
4      var $this = $(this);
5      var original = $this.html();
6      var url = original.replace(/^(?:https?:)?\/\//i, '//');
7
8      if (url !== $this.attr('href').replace(/^(?:https?:)?\/\//i, '//')) return true;
9
10      if (/^(?:https?:)?\/\/[^<]+?\.(?:jpe?g|png|gif)(?:\?[^<]*?)?$/i.test(url) === false) return true;
11
12      var domain = url.replace(/^\/\//i, '').replace(/\/.*$/i, '');
13      var html = '';
14
15      if (/imgur\.com$/.test(domain)) {
16        html = '<blockquote class="imgur-embed-pub" lang="en" data-id="' + url.replace(/^\/\/.+\//i, '').replace(/\..+$/i, '') + '">'
17             + '<a href="' + url + '"></a>'
18             + '</blockquote>'
19             + '<script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>';
20      } else {
21        html = '<div class="content-image-loader"><img class="content-image-loader__thumbnail" src="'
22             + url
23             + '" /><span class="content-image-loader__domain"><a href="'
24             + original
25             + '">'
26             + original
27             + '</a></span></div>';
28      }
29
30      $this.replaceWith(html);
31    });
32  });
33})(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.