PageSourceSearch

https://rmail.com/js/super_script.js

js rmail.com collected 2026-10-01 16:19:43 UTC 935 bytes, 23 lines download raw bytes

1(function($) {
2    $(document).ready(function() {
3        // Defined the selector in a variable for cleaner code
4        var targetElements = ".post_details_content_box_content, p, h1, h2, h3, li, h4";
5
6        $(targetElements).each(function() {
7            var $this = $(this);
8            var html = $this.html();
9
10            // Performance Check: Only manipulate DOM if the symbol actually exists
11            if (html.indexOf('®') !== -1) {
12                
13                // Logic:
14                // 1. First Regex: Removes existing <sup> tags around ® to "reset" it (prevents <sup><sup>®</sup></sup>)
15                // 2. Second Regex: Wraps all ® in <sup>
16                var newHtml = html.replace(/<sup>\s*®\s*<\/sup>/gi, '®')
17                                  .replace(/®/g, '<sup>®</sup>');
18                
19                $this.html(newHtml);
20            }
21        });
22    });
23})(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.