Kool Tech Tricks<p>💾 Инструменты для сохранения веб-страниц в один HTML-файл</p><p>Встроенная в браузер функция "Сохранить как..." оставляет кучу файлов, и страница отображается некорректно. Есть инструменты, которые сохраняют копию страницы, упаковывая все изображения, таблицы стилей (CSS), скрипты (JavaScript) в один HTML-файл.</p><p>1. Расширение для браузера SingleFile (<a href="https://github.com/gildas-lormeau/SingleFile#readme" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/gildas-lormeau/Sing</span><span class="invisible">leFile#readme</span></a>). Сохранённый файл является полной копией страницы с браузера — в неё включены скрипты (JavaScript), авторизация, модификации других расширений. Доступно для Firefox (<a href="https://addons.mozilla.org/firefox/addon/single-file" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">addons.mozilla.org/firefox/add</span><span class="invisible">on/single-file</span></a>) (ПК и Android), Chromium (<a href="https://chromewebstore.google.com/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">chromewebstore.google.com/deta</span><span class="invisible">il/singlefile/mpiodijhokgodhhofbcjdecpffjipkle</span></a>), Safari (<a href="https://apps.apple.com/app/singlefile-for-safari/id6444322545" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">apps.apple.com/app/singlefile-</span><span class="invisible">for-safari/id6444322545</span></a>), а также в качестве консольной программы (<a href="https://github.com/gildas-lormeau/single-file-cli#readme" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/gildas-lormeau/sing</span><span class="invisible">le-file-cli#readme</span></a>).</p><p>2. Консольная программа Monolith (<a href="https://github.com/Y2Z/monolith#readme" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Y2Z/monolith#readme</span><span class="invisible"></span></a>). Лучше всего подходит для сохранения статичных сайтов, так как не может самостоятельно выполнять код JavaScript (для этого требуется воспользоваться внешним браузером), а для авторизации нужно передать файлы cookie. Программа написана на языке Rust и доступна для всех платформ.</p><p><a href="https://lor.sh/tags/datahoarding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>datahoarding</span></a> <a href="https://lor.sh/tags/digitalpreservation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>digitalpreservation</span></a> <a href="https://lor.sh/tags/webarchiving" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webarchiving</span></a> <a href="https://lor.sh/tags/webextension" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webextension</span></a> <a href="https://lor.sh/tags/cli" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cli</span></a> <a href="https://lor.sh/tags/%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D0%BD%D0%B0%D1%8F%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B0" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>команднаястрока</span></a> <a href="https://lor.sh/tags/%D0%B0%D1%80%D1%85%D0%B8%D0%B2%D0%B0%D1%86%D0%B8%D1%8F" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>архивация</span></a></p>