{"id":286770,"date":"2017-05-24T06:50:03","date_gmt":"2017-05-24T02:50:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=286770"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2017-05-24T02:50:03","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=286770","title":{"rendered":"\u041f\u043e\u0434\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u0432\u043e\u0434\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 Google Chrome"},"content":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442.<\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0444\u0438\u0447\u0443 \u0445\u0440\u043e\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043e\u0434\u043d\u0430\u0436\u0434\u044b.<br \/>  \u041a\u0430\u043a \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u2014 \u0440\u0435\u0448\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438.<\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u043a\u0430\u0436\u0443 <a href=\"https:\/\/wasiher.github.io\/chrome_console_input_catch\/\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0443\u0441\u043e\u043b\u0438\u0442\u044c (\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0425\u0440\u043e\u043c\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b):  <\/p>\n<pre><code>var gn = Object.getOwnPropertyNames.bind(Object)  var f = function(o) {     if(f.caller && f.caller.toString &&         f.caller.toString().indexOf('object&&ArrayBuffer.isView(o)&&o.length&gt;9999') &gt; 0) {         console.log(f.caller)     }     return gn(o); } Object.getOwnPropertyNames = f <\/code><\/pre>\n<p><a name=\"habracut\"><\/a>\u0415\u0441\u043b\u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 \u0432\u044b\u0448\u0435, \u0442\u043e \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043d\u0430\u0447\u043d\u0435\u0442 \u0432\u044b\u043f\u0430\u0434\u0430\u0442\u044c \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f.<\/p>\n<p>  \u0412\u043e\u0442 \u044d\u0442\u0430:<\/p>\n<pre><code class=\"javascript\">(function getCompletions(type) {     var object;     if (type === 'string')         object = new String('');     else if (type === 'number')         object = new Number(0);     else if (type === 'boolean')         object = new Boolean(false);     else         object = this;     var result = [];     try {         for (var o = object; o; o = Object.getPrototypeOf(o)) {             if ((type === 'array' || type === 'typedarray') && o === object && ArrayBuffer.isView(o) && o.length &gt; 9999)                 continue;             var group = {                 items: [],                 __proto__: null             };             try {                 if (typeof o === 'object' && o.constructor && o.constructor.name)                     group.title = o.constructor.name;             } catch (ee) {}             result[result.length] = group;             var names = Object.getOwnPropertyNames(o);             var isArray = Array.isArray(o);             for (var i = 0; i &lt; names.length; ++i) {                 if (isArray && \/^[0-9]\/.test(names[i]))                     continue;                 group.items[group.items.length] = names[i];             }         }     } catch (e) {}     return result; } ) <\/code><\/pre>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0441 \u0435\u0435 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u0443\u0433\u043b \u0425\u0440\u043e\u0443\u043c \u0432\u044b\u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0441\u0430\u0433\u0433\u0435\u0448\u0435\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u043c\u0435\u043d\u044e \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<br \/>  <img decoding=\"async\" src=\"https:\/\/pp.userapi.com\/c639521\/v639521713\/208ee\/v3ROs8wtd0c.jpg\" alt=\"image\"\/><br \/>  \u041c\u043e\u0436\u0435\u0442\u0435 \u0441\u043c\u0435\u043b\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 Object.getOwnPropertyNames \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0443\u0434\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u043c\u0443\u0441\u043e\u0440, \u0435\u0441\u043b\u0438 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435. \u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0432\u0432\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0435. (\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0442\u0443 \u0441\u0430\u043c\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0445\u0440\u043e\u043c\u0430).<\/p>\n<p>  \u0412\u0441\u0435 \ud83d\ude42<br \/>  <img decoding=\"async\" src=\"https:\/\/pp.userapi.com\/c543101\/v543101484\/5bc8\/DK-lQ5nQY60.jpg\" alt=\"image\"\/><br \/>  \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/github.com\/wasiher\/chrome_console_input_catch\">\u0432\u043e\u0442<\/a><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/329320\/\"> https:\/\/habrahabr.ru\/post\/329320\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442.<\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0444\u0438\u0447\u0443 \u0445\u0440\u043e\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043e\u0434\u043d\u0430\u0436\u0434\u044b.<br \/>  \u041a\u0430\u043a \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u2014 \u0440\u0435\u0448\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438.<\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u043a\u0430\u0436\u0443 <a href=\"https:\/\/wasiher.github.io\/chrome_console_input_catch\/\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0443\u0441\u043e\u043b\u0438\u0442\u044c (\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0425\u0440\u043e\u043c\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b):  <\/p>\n<pre><code>var gn = Object.getOwnPropertyNames.bind(Object)  var f = function(o) {     if(f.caller &#038;& f.caller.toString &#038;&         f.caller.toString().indexOf('object&#038;&ArrayBuffer.isView(o)&#038;&o.length&gt;9999') &gt; 0) {         console.log(f.caller)     }     return gn(o); } Object.getOwnPropertyNames = f <\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-286770","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/286770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286770"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/286770\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}