{"sutochno.ru":{"link":"^sutochno.ru/front/searchapp/detail/(\\d+).*","url":": (()=>{debugger; if (!this.node.closest('.card__img, .card-map__img')) throw ''; return 'data:,'+$[1]})()","res":":\ndebugger;\nconst x = new XMLHttpRequest;\nx.open('GET', `https://sutochno.ru/api/json/objects/getObject?id=${$[1]}`, false);\nx.setRequestHeader('Api-Version', '1.10');\nx.setRequestHeader('Token', 'Hy6U3z61fflbgT2yJ/VdlQ2719');\nx.send();\nconst data = JSON.parse(x.responseText).data;\n\nconst res = data.object.media.map(i => [i.image_url, i.comment || '']);\n\nconst short = data.object.short_description;\nconst descr = data.object.properties.detail_description?.properties?.find(i => i.name === 'description').value || '';\n\nconst text = [\n `<b>${short}</b>`,\n descr,\n].join('\\n\\n');\n\nif (res.length) {\n res[0][1] = `<imagus-extension type=\"sidebar\">${text}</imagus-extension>`;\n}\n\nthis.TRG.IMGS_ext_data = res;\nreturn { loop: 'imagus://extension' };"}} |