{"id":210020,"date":"2014-01-23T11:48:03","date_gmt":"2014-01-23T07:48:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=210020"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=210020","title":{"rendered":"<span class=\"post_title\">X-Notifier. \u041f\u0438\u0448\u0435\u043c \u043e\u043f\u043e\u0432\u0435\u0449\u0430\u043b\u043a\u0443 \u0434\u043b\u044f \u0442\u0440\u0435\u043a\u0435\u0440\u0430 \u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 \u043d\u0430 \u0425\u0430\u0431\u0430\u0440\u0430\u0445\u0430\u0431\u0440<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" align=\"right\" src=\"http:\/\/habr.habrastorage.org\/post_images\/471\/55a\/aab\/47155aaab99765863efd7f63570cef2a.gif\"\/><br \/>  \u0415\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/xnotifier\/\">X-Notifier<\/a>. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u043f\u0438\u0441\u044c\u043c\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u0445, \u0434\u0430 \u043e \u0447\u0435\u043c \u0443\u0433\u043e\u0434\u043d\u043e \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0414\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/xnotifier.tobwithu.com\/scripts.php\">\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a> (Gmail, \u042f\u043d\u0434\u0435\u043a\u0441.\u041f\u043e\u0447\u0442\u0430, Google+, Facebook, Twitter \u0438 \u043f\u0440\u043e\u0447\u0438\u0445). \u041d\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430, \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u043f\u043e\u0440\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u0435!<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e \u043c\u0435\u0442\u043e\u0434\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c\u0438 \u0432 \u044d\u0442\u043e, \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u044d\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0421\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 Firefox \u0438 Google Chrome, \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 <a href=\"#restrictions\"> \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438<\/a>. \u0422\u0430\u043a \u0436\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u0434\u043d\u0438\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043e\u043f\u043e\u0432\u0435\u0449\u0430\u043b\u043a\u0443, \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"#download\">\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e<\/a>.<\/p>\n<h5>\u0418\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0446\u0435\u043b\u0438<\/h5>\n<p>  \u0415\u0441\u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u043e, \u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435. \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0443\u043a\u0438 \u0438 \u0432\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0438 \u0442\u0440\u0435\u043a\u0435\u0440\u0430 \u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432. \u0412\u0441\u0435 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e!<br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0444\u043e\u0440\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/id.tmtm.ru\/login\/\">https:\/\/id.tmtm.ru\/login\/<\/a> (\u043b\u0438\u0448\u043d\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u0443\u0431\u0440\u0430\u043d\u044b):  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u043e\u0440\u043c\u0430<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/c61\/b47\/3e3\/c61b473e36dc945fca41cf982e5788d2.jpg\"\/><\/p>\n<pre><code class=\"html\">&lt;form novalidate=&quot;&quot; data-remote=&quot;true&quot; method=&quot;post&quot; id=&quot;login_form&quot; class=&quot;s-form login_form validateble&quot;       action=&quot;\/ajax\/login\/&quot;&gt;      &lt;input type=&quot;hidden&quot; value=&quot;180351c318af67fa0ec59ecad9ebae72&quot; name=&quot;state&quot;&gt;     &lt;input type=&quot;hidden&quot; value=&quot;habrahabr&quot; name=&quot;consumer&quot;&gt;      &lt;div class=&quot;s-field s-with-error&quot;&gt; &lt;input type=&quot;email&quot; data-validate_url=&quot;\/ajax\/validate\/email\/&quot; id=&quot;email_field&quot; tabindex=&quot;1&quot; autofocus=&quot;&quot; data-required=&quot;true&quot; name=&quot;email&quot; placeholder=&quot;E-mail&quot; value=&quot;&quot;&gt;     &lt;\/div&gt;      &lt;div class=&quot;s-field s-with-error&quot;&gt;         &lt;input type=&quot;password&quot; tabindex=&quot;2&quot; name=&quot;password&quot; data-required=&quot;true&quot; placeholder=&quot;\u041f\u0430\u0440\u043e\u043b\u044c&quot; value=&quot;&quot;&gt;     &lt;\/div&gt;      &lt;div class=&quot;s-field&quot;&gt;         &lt;input type=&quot;hidden&quot; name=&quot;captcha&quot;&gt;         &lt;input type=&quot;hidden&quot; id=&quot;recaptcha_challenge_field&quot; name=&quot;recaptcha_challenge_field&quot;&gt;         &lt;input type=&quot;text&quot; name=&quot;recaptcha_response_field&quot; id=&quot;recaptcha_response_field&quot; data-required=&quot;true&quot;                placeholder=&quot;\u0421\u0438\u043c\u0432\u043e\u043b\u044b \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438&quot; value=&quot;&quot; autocomplete=&quot;off&quot; tabindex=&quot;3&quot;&gt;         &lt;div class=&quot;icon_captcha&quot;&gt;&lt;\/div&gt;          &lt;script src=&quot;\/\/www.google.com\/recaptcha\/api\/challenge?k=6LftHuoSAAAAAORONRXn_6xb2f_QCtXqfbRPfY2e&quot;                 type=&quot;text\/javascript&quot;&gt;         &lt;\/script&gt;                  &lt;input type=&quot;hidden&quot; value=&quot;recaptcha&quot; name=&quot;captcha_type&quot;&gt;     &lt;\/div&gt; &lt;\/form&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0432\u0438\u0434\u0438\u043c 3 \u0432\u0438\u0434\u0438\u043c\u044b\u0445 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 (email, password, recaptcha_response_field), \u0441 \u043d\u0438\u043c\u0438 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u0410 \u0442\u0430\u043a \u0436\u0435 5 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 (state, consumer, captcha, recaptcha_challenge_field, captcha_type). \u041f\u043e\u043b\u0435 <code>state<\/code> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u043a\u0438\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u043d\u0430, <code>consumer<\/code> \u0434\u043b\u044f \u043d\u0430\u0441 \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0432\u043d\u043e <code>habrahabr<\/code>, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>captcha<\/code> \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0443\u0441\u0442\u043e\u0435, <code>recaptcha_challenge_field<\/code> \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043a\u0430\u043f\u0447\u0438, <code>captcha_type<\/code> \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0432\u043d\u043e <code>recaptcha<\/code>.<br \/>  \u0421 \u0444\u043e\u0440\u043c\u043e\u0439 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430. \u042d\u0442\u043e \u043f\u0430\u043d\u0435\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0430\u043d\u0435\u043b\u044c<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a9f\/ccf\/d5c\/a9fccfd5c303270e844d0ae63c16021d.jpg\"\/>  <\/p>\n<pre><code class=\"html\">&lt;div class=&quot;userpanel silver&quot;&gt;     &lt;div class=&quot;bottom&quot;&gt;         &lt;a href=&quot;http:\/\/habrahabr.ru\/tracker\/&quot;&gt;\u0442\u0440\u0435\u043a\u0435\u0440&lt;\/a&gt;         &lt;a class=&quot;count&quot; href=&quot;http:\/\/habrahabr.ru\/tracker\/&quot;&gt;+2&lt;\/a&gt;          &lt;a href=&quot;http:\/\/habrahabr.ru\/conversations\/&quot;&gt;\u0434\u0438\u0430\u043b\u043e\u0433\u0438&lt;\/a&gt;                     &lt;a href=&quot;http:\/\/habrahabr.ru\/users\/BloodUnit\/favorites\/&quot;&gt;\u0438\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435&lt;\/a&gt;     &lt;\/div&gt;   &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0443\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0439\u0442\u0438\u0441\u044c \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u043e\u0439, \u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0442\u0440\u0435\u043a\u0435\u0440\u0430 \u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c.<br \/>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<h5>API<\/h5>\n<p>  \u0423 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0435\u0441\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 API, \u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a \u043d\u0435\u043c\u0443 \u043c\u043d\u0435 \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0435\u0435 \u043d\u0435\u0442. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0447\u0442\u043e \u043d\u0430\u0448\u043b\u043e\u0441\u044c, \u044d\u0442\u043e <a href=\"http:\/\/xnotifier.tobwithu.com\/dp\/node\/875\">\u0437\u0430\u043c\u0435\u0442\u043a\u0430<\/a> \u043a\u0430\u043a \u0432\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u043e\u0433\u0438 \u0438 <a href=\"http:\/\/xnotifier.tobwithu.com\/dp\/node\/7\">\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043e\u0441\u0442<\/a> \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0430\u0434\u0434\u043e\u043d\u0430, \u043d\u043e \u043e\u043d \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0445\u0430\u0431\u0440 \u043d\u0435 \u0438\u0437 \u0442\u0430\u043a\u0438\u0445. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/addons.mozilla.org\/ru\/seamonkey\/files\/browse\/236615\/file\/components\/Handler.js#top\">\u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a> \u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c, \u0438 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c\u2026<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<br \/>  \u0412\u0441\u0435\u0433\u043e \u0438\u0445 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f 5:  <\/p>\n<ul>\n<li><i>init()<\/i> \u2014 \u043c\u0435\u0442\u043e\u0434 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435<\/li>\n<li><i>getCount(aData)<\/i> \u2014 \u043c\u0435\u0442\u043e\u0434 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u0441\u0442\u0440\u043e\u043a\u0443(\u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e HTML), \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a. \u0415\u0441\u043b\u0438 \u0441\u0447\u0435\u0442\u0447\u0438\u043a &gt;= 0, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u043e\u0439<\/li>\n<li><i>checkLogin(aData, aHttp)<\/i> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u043d\u0430, aData \u0441\u0442\u0440\u043e\u043a\u0430(\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e HTML), aHttp \u043e\u0431\u044a\u0435\u043a\u0442 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/XMLHttpRequest\">XMLHttpRequest<\/a><\/li>\n<li><i>process(aData, aHttp)<\/i> \u2014 \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u044d\u0442\u0430\u043f\u0435(\u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u0441\u043f\u0438\u0441\u043e\u043a) \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043b\u0430\u0433\u0438\u043d\u0430, aData \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445(\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e HTML), aHttp \u043e\u0431\u044a\u0435\u043a\u0442 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/XMLHttpRequest\">XMLHttpRequest<\/a><\/li>\n<li><i>dlog(name, data)<\/i> \u2014 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043b\u043e\u0433, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0432\u0430 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/li>\n<\/ul>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u044d\u0442\u0430\u043f\u043e\u0432, \u0447\u0438\u0441\u043b\u043e \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f:  <\/p>\n<ul>\n<li><i>ST_CHECK = 0<\/i> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/li>\n<li><i>ST_PRE = 100<\/i> \u2014 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u043b\u043e\u0433\u0438\u043d\u0443<\/li>\n<li><i>ST_PRE_RES = 101<\/i> \u2014 \u043f\u0440\u0438\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435<\/li>\n<li><i>ST_LOGIN = 200<\/i> \u2014 \u043b\u043e\u0433\u0438\u043d<\/li>\n<li><i>ST_LOGIN_RES = 201<\/i> \u2014 \u043f\u0440\u0438\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435<\/li>\n<li><i>ST_DATA = 300<\/i> \u2014 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439<\/li>\n<li><i>ST_DATA_RES = 301<\/i> \u2014 \u043f\u0440\u0438\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435<\/li>\n<\/ul>\n<p>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u0442\u0430\u043f\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a ST_LOGIN \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c \u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u043d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0445 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c.<\/p>\n<h5>\u041f\u0438\u0448\u0435\u043c<\/h5>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u044d\u0442\u0430\u043f \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function init() {     this.initStage = ST_PRE; \/\/ \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043f\u0435\u0440\u0432\u044b\u043c \u044d\u0442\u0430\u043f \u044d\u0442\u043e ST_LOGIN, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0437\u0433\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043f\u0447\u0443, \u0442\u043e \u043c\u044b \u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443     this.loginData = [&quot;https:\/\/id.tmtm.ru\/ajax\/login\/&quot;, &quot;email&quot;, &quot;password&quot;, &quot;consumer=habrahabr&captcha_type=recaptcha&captcha=&quot;]; \/\/ \u041f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 URL \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0444\u043e\u0440\u043c\u044b, \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0442\u0440\u0435\u0439\u0442\u0438\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 name \u0434\u043b\u044f e-mail \u0438 \u043f\u0430\u0440\u043e\u043b\u044f, \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b      this.dataURL = &quot;http:\/\/habrahabr.ru\/&quot;; \/\/ URL \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430     this.viewURL = &quot;http:\/\/habrahabr.ru\/tracker\/&quot;; \/\/ URL \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435     this.cookieDomain = &quot;habrahabr.ru&quot;; \/\/ \u0414\u043e\u043c\u0435\u043d \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0441\u0442\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043a\u0443\u043a\u0438 } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f, \u0432\u0441\u0435 \u044d\u0442\u0430\u043f\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function process(aData, aHttp) {     switch (this.stage) {         \/* \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u043b\u043e\u0433\u0438\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0445\u0430\u0431\u0440 \u0441\u0433\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430\u043c state *\/         case ST_PRE:             this.getHtml(&quot;https:\/\/auth.habrahabr.ru\/login\/&quot;);             return false;         \/* \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441 \u0444\u043e\u0440\u043c\u043e\u0439, \u043f\u0430\u0440\u0441\u0438\u043c state \u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 recaptcha,             \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443 *\/         case ST_PRE_RES:             var recaptchaScriptLink = aData.match(\/(\\\/\\\/www.google.com\\\/recaptcha\\\/api\\\/challenge\\S+?)&quot;\/);             var state = aData.match(\/state=([\\w\\n]+)\/);             if (recaptchaScriptLink && state) {                 this.originPostData = this.loginData[LOGIN_POST];                 this.loginData[LOGIN_POST] += &quot;&state=&quot; + encodeURIComponent(state[1]);                 this.referer = this.loginData[LOGIN_URL] + &quot;?&quot; + &quot;&state=&quot; + encodeURIComponent(state[1]) + &quot;&consumer=habrahabr&quot;;                 this.getHtml(&quot;https:&quot; + recaptchaScriptLink[1]);                 return false;             }             this.onError();             break;         \/* \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043a\u0430\u043f\u0447\u0443 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u043a\u043d\u043e \u0432\u0432\u043e\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e *\/         case ST_PRE_RES + 1:             var recaptchaUid = aData.match(\/challenge\\s*:\\s*'(\\S+?)'\/);             if (recaptchaUid) {                 this.loginData[LOGIN_POST] += &quot;&recaptcha_challenge_field=&quot; + encodeURIComponent(recaptchaUid[1]);                 this.openCaptchaDialog(this.id, this.user, &quot;https:\/\/www.google.com\/recaptcha\/api\/image?c=&quot; + recaptchaUid[1]);                 return false;             }             this.onError();             break;         \/* \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441 *\/         case ST_PRE_RES + 2:             this.loginData[LOGIN_POST] += &quot;&recaptcha_response_field=&quot; + encodeURIComponent(aData);             this.stage = ST_LOGIN;             return this.process(aData, aHttp);             break;         \/* \u041f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 *\/         case ST_LOGIN:             this.getHtml(this.loginData[LOGIN_URL], this.loginData[LOGIN_POST], {                 Referer: this.referer             });             return false;         \/* \u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438              \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 *\/         case ST_LOGIN_RES:             this.loginData[LOGIN_POST] = this.originPostData;             var habrRedirectLink = aData.match(\/'(.*?)'\/);             if (habrRedirectLink) {                 this.getHtml(habrRedirectLink[1]);             }             this.stage = ST_DATA;             return true;     }     return this.baseProcess(aData, aHttp); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432.  <\/p>\n<ul>\n<li>Javascript \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u0438\u0435 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043a\u0430\u043f\u0447\u0443<\/li>\n<li>\u0415\u0441\u043b\u0438 \u044d\u0442\u0430\u043f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>false<\/code>, \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/li>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043c\u0435\u0442\u043e\u0434\u044b <code>this.getHtml<\/code> \u0438 <code>this.openCaptchaDialog<\/code>, \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443<\/li>\n<li><a name=\"restrictions\"><\/a>\u041d\u0430 \u044d\u0442\u0430\u043f\u0435 <code>ST_LOGIN<\/code>, \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Referer, \u0438\u043d\u0430\u0447\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442. Google Chrome \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 (\u0438 \u044d\u0442\u043e <a href=\"http:\/\/www.w3.org\/TR\/XMLHttpRequest\/#the-setrequestheader%28%29-method\">\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442<\/a>, \u0445\u043e\u0442\u044f \u0438 \u0432 Working Draft), \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f <b>\u0447\u0435\u0440\u0435\u0437 \u043f\u043b\u0430\u0433\u0438\u043d<\/b> \u0432 \u043d\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d\u044b \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u0442\u043e \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e!<\/li>\n<li>\u041d\u0430 \u044d\u0442\u0430\u043f\u0435 <code>ST_LOGIN<\/code>, \u0425\u0430\u0431\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u043c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a: <br \/> \n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">window.location.href = 'https:\/\/habrahabr.ru\/ac\/entrance\/?token=5a15a5d48c7fdeaed5ab20e852107dc6&state=26593fdea0963d8241aab3f20a6893b4&time=1390388377&sign=bb8f45d63c768ed6aebc5ae2bb22de3b'; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/li>\n<\/ul>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043b\u043e\u0433\u0438\u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function checkLogin(aData, aHttp) {     switch (this.stage) {         \/* \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c HTML \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b *\/         case ST_CHECK:             this.getHtml(this.dataURL);             return false;         \/* \u0418\u0449\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043b\u043e\u0433\u0438\u043d\u0430 \u043d\u0430 \u043d\u0435\u0439, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c, \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d\u044b *\/         case ST_CHECK + 1:             var loginLink = aData.match(\/&lt;a.+?class=&quot;login&quot;\/);             if (!loginLink) {                 this.stage = ST_DATA;                 this.getHtml(this.dataURL);                 return true;             } else {                 this.stage = this.initStage;                 return this.process(&quot;&quot;);             }     }     this.onError();     return true; } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0442\u043e\u0434, \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">function getCount(aData) {     var userMenu = aData.match(\/userpanel[\\s\\S]*?charge_string\/);     if (!userMenu) {         return -1;     } else {         var counter = 0;         var counterRegex = \/class=&quot;count&quot;[^&gt;]*&gt;\\+?(\\d*)\/g         var counterResult;         while ((counterResult = counterRegex.exec(userMenu[0])) !== null) {             counter += +counterResult[1] || 0;         }         return counter;     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0443\u0442 \u043f\u043e\u044f\u0441\u043d\u044f\u0442\u044c \u0434\u0430\u0436\u0435 \u043e\u0441\u043e\u0431\u043e \u043d\u0435\u0447\u0435\u0433\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u043c\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438, \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<h5>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0431\u044b\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0430\u0439\u0442\u0430 \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0421\u043b\u0435\u0434\u0443\u044f \u044d\u0442\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0441\u0430\u0439\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u042f\u043d\u0434\u0435\u043a\u0441.\u041f\u043e\u0447\u0442\u044b \u0443\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 30 \u0441\u0442\u0440\u043e\u043a).<br \/>  <a name=\"download\"><\/a><br \/>  <i>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430 \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/github.com\/olsh\/XNotifier-Habrahabr\">\u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0430 GitHub<\/a><\/i>. \u0424\u043e\u0440\u043a\u0438 \u0438 \u043f\u0443\u043b\u043b \u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f.<br \/>  <a href=\"http:\/\/xnotifier.tobwithu.com\/dp\/\">\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/a>.<br \/>  <a href=\"http:\/\/xnotifier.tobwithu.com\/scripts.php\">\u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/a>.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/210020\/\"> http:\/\/habrahabr.ru\/post\/210020\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" align=\"right\" src=\"http:\/\/habr.habrastorage.org\/post_images\/471\/55a\/aab\/47155aaab99765863efd7f63570cef2a.gif\"\/><br \/>  \u0415\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/xnotifier\/\">X-Notifier<\/a>. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u043f\u0438\u0441\u044c\u043c\u0430\u0445, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u0445, \u0434\u0430 \u043e \u0447\u0435\u043c \u0443\u0433\u043e\u0434\u043d\u043e \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0414\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/xnotifier.tobwithu.com\/scripts.php\">\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a> (Gmail, \u042f\u043d\u0434\u0435\u043a\u0441.\u041f\u043e\u0447\u0442\u0430, Google+, Facebook, Twitter \u0438 \u043f\u0440\u043e\u0447\u0438\u0445). \u041d\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430, \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u043f\u043e\u0440\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u0435!  <\/p>\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-210020","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210020","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=210020"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210020\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}