1/*! 2 * webmcp-origin-trial.js â акÑиваÑÐ¸Ñ WebMCP origin-trial (third-party Ñокен). 3 * @version 20260619-1 4 * 5 * Токен заÑегиÑÑÑиÑован как THIRD-PARTY (payload isThirdParty:true) Ñ Match 6 * Sub-Domains (isSubdomain:true) Ð´Ð»Ñ https://carental.ru â покÑÑÐ²Ð°ÐµÑ ÐºÐ¾ÑÐµÐ½Ñ Ð¸ 7 * вÑе гоÑодÑкие ÑÐ°Ð±Ð´Ð¾Ð¼ÐµÐ½Ñ (sochi/anapa/...). 8 * 9 * Ðо докам Chrome (developer.chrome.com/docs/web-platform/origin-trials, Ñаздел 10 * "Provide a token programmatically") third-party Ñокен ÐРакÑивиÑÑеÑÑÑ ÑеÑез 11 * ÑÑаÑиÑеÑкий <meta>/inline/HTTP-header â ТÐÐЬÐРпÑогÑаммной инÑекÑией 12 * document.createElement('meta') ÐÐ ÐÐÐШÐÐÐÐ JS-Ñайла, подклÑÑÑнного <script src>. 13 * "the origin registered for the token must match the src of a <script element>". 14 * 15 * ÐÑÐ¾Ñ Ñайл â ÑÐ¾Ñ ÑамÑй внеÑний JS. ÐÑÑзиÑÑÑ ÐÐÐ defer, Ñано в <head>, ÐÐ 16 * /jss/webmcp.js (defer), ÑÑÐ¾Ð±Ñ document.modelContext ÑÑпел акÑивиÑоваÑÑÑÑ Ðº 17 * моменÑÑ ÑегиÑÑÑаÑии инÑÑÑÑменÑов в webmcp.js. 18 */ 19(function () { 20 'use strict'; 21 try { 22 if (document.querySelector('meta[http-equiv="origin-trial"][data-carental-webmcp]')) { 23 return; // idempotent â повÑоÑÐ½Ð°Ñ Ð·Ð°Ð³ÑÑзка не дÑблиÑÑÐµÑ 24 } 25 var TOKEN = 'A8MqGX6kaVNThKoaZ5Y+8oAtzE1GPgX5IjbYDp8jFxK4/xb1wZpXbTMRPpDFUy3HT9zXwMq+UF3FAXNPmiwXLAoAAAByeyJvcmlnaW4iOiJodHRwczovL2NhcmVudGFsLnJ1OjQ0MyIsImZlYXR1cmUiOiJXZWJNQ1AiLCJleHBpcnkiOjE3OTQ4NzM2MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9'; 26 var meta = document.createElement('meta'); 27 meta.setAttribute('http-equiv', 'origin-trial'); 28 meta.setAttribute('content', TOKEN); 29 meta.setAttribute('data-carental-webmcp', '1'); 30 (document.head || document.documentElement).appendChild(meta); 31 } catch (e) { /* silent â progressive enhancement, не ÑонÑем ÑÐ°Ð¹Ñ */ } 32})();
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.