{"comment":{"url":"https://api.github.com/repos/SthephanShinkufag/Dollchan-Extension-Tools/comments/14500778","html_url":"https://github.com/SthephanShinkufag/Dollchan-Extension-Tools/commit/5240372159a412df7a82adfd62c626493a6d8af0#commitcomment-14500778","id":14500778,"user":{"login":"SthephanShinkufag","id":1059874,"avatar_url":"https://avatars.githubusercontent.com/u/1059874?v=3","gravatar_id":"","url":"https://api.github.com/users/SthephanShinkufag","html_url":"https://github.com/SthephanShinkufag","followers_url":"https://api.github.com/users/SthephanShinkufag/followers","following_url":"https://api.github.com/users/SthephanShinkufag/following{/other_user}","gists_url":"https://api.github.com/users/SthephanShinkufag/gists{/gist_id}","starred_url":"https://api.github.com/users/SthephanShinkufag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SthephanShinkufag/subscriptions","organizations_url":"https://api.github.com/users/SthephanShinkufag/orgs","repos_url":"https://api.github.com/users/SthephanShinkufag/repos","events_url":"https://api.github.com/users/SthephanShinkufag/events{/privacy}","received_events_url":"https://api.github.com/users/SthephanShinkufag/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"5240372159a412df7a82adfd62c626493a6d8af0","created_at":"2015-11-19T14:23:39Z","updated_at":"2015-11-19T14:23:39Z","body":"Код ГОРАЗДО удобнее читать. Раньше такая мешанина везде была &mdssh; циклопические one-line'ры из тернарных операций, html-кода, черт ногу сломит.\r\nА сейчас няшно, аж самому нравится. Хочу все html-строки так перевести, даже небо, даже аллаха. Только надо аккуратно, из-за спейсов надо заменять обращения ^Child и ^Sibling на ^ElementChild и ^ElementSubling, да. Могут быть подводные камни.\r\n\r\n```js\r\n\t\tmain.insertAdjacentHTML('afterbegin', `\r\n\t\t<div id=\"de-win-${ name }\" class=\"${ winAttr }; display: none;\">\r\n\t\t\t<div class=\"de-win-head\">\r\n\t\t\t\t<span class=\"de-win-title\">\r\n\t\t\t\t\t${ name === 'cfg' ? 'Dollchan Extension Tools' : Lng.panelBtn[name][lang] }\r\n\t\t\t\t</span>\r\n\t\t\t\t<span class=\"de-win-buttons\">\r\n\t\t\t\t\t<svg class=\"de-btn-toggle\"><use xlink:href=\"#de-symbol-win-arrow\"/></svg>\r\n\t\t\t\t\t<svg class=\"de-btn-close\"><use xlink:href=\"#de-symbol-win-close\"/></svg>\r\n\t\t\t\t</span>\r\n\t\t\t</div>\r\n\t\t\t<div class=\"de-win-body${ bodyAttr }\"></div>\r\n\t\t\t${ name !== 'fav' ? '' : `\r\n\t\t\t\t<div class=\"de-resizer de-resizer-left\"></div>\r\n\t\t\t\t<div class=\"de-resizer de-resizer-right\"></div>` }\r\n\t\t</div>`);\r\n```"}}