PageSourceSearch

https://www.so-net.ne.jp/shared/js/polyfill/element.prototype.after.js

js so-net.ne.jp collected 2026-10-01 08:32:48 UTC 817 bytes, 24 lines download raw bytes

vendor: 817 bytes, lines 1-24
1//from: https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/after()/after().md
2(function (arr) {
3  arr.forEach(function (item) {
4    if (item.hasOwnProperty('after')) {
5      return;
6    }
7    Object.defineProperty(item, 'after', {
8      configurable: true,
9      enumerable: true,
10      writable: true,
11      value: function after() {
12        var argArr = Array.prototype.slice.call(arguments),
13          docFrag = document.createDocumentFragment();
14
15        argArr.forEach(function (argItem) {
16          var isNode = argItem instanceof Node;
17          docFrag.appendChild(isNode ? argItem : document.createTextNode(String(argItem)));
18        });
19
20        this.parentNode.insertBefore(docFrag, this.nextSibling);
21      }
22    });
23  });
24})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);

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.