help.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>SingleFile help</title>
  6. <link rel="stylesheet" href="help.css">
  7. <meta name="viewport" content="width=device-width,initial-scale=1">
  8. </head>
  9. <body>
  10. <div>
  11. <div id="titleBorder">
  12. <h2>SingleFile</h2>
  13. <h4>Save a complete page into a single HTML file</h4>
  14. </div>
  15. <span id="index">
  16. <a href="#getting-started">Getting started</a> -
  17. <a href="#general-notes">Additional notes</a> -
  18. <a href="#options">Options description</a> -
  19. <a href="#notes">Technical notes</a> -
  20. <a href="#known-issues">Known issues</a> -
  21. <a href="#unknown-issues">Troubleshooting unknown issues</a> -
  22. <a href="#contributors">Contributors</a>
  23. </span>
  24. <hr>
  25. <ol>
  26. <li>
  27. <a id="getting-started">Getting started</a>
  28. <ul>
  29. <li>Wait until the page is fully loaded, you may need to scroll down the entire page to be sure all elements are
  30. loaded.</li>
  31. <li>Click on the SingleFile button
  32. <img src="../resources/icon_16.png" class="icon"> in the extension toolbar to save the page.</li>
  33. </ul>
  34. </li>
  35. <li>
  36. <a id="general-notes">Additional notes</a>
  37. <ul>
  38. <li>To save multiple tabs, select them first and click on the SingleFile button
  39. <img src="../resources/icon_16.png" class="icon">.</li>
  40. <li>
  41. Open the context menu by right-clicking the SingleFile button
  42. <img src="../resources/icon_16.png" class="icon"> in the extension toolbar or on the webpage. It allows you to
  43. save:
  44. <ul>
  45. <li>the current tab,</li>
  46. <li>or the selected content,</li>
  47. <li>or the selected frame.</li>
  48. </ul>
  49. </li>
  50. <li>
  51. You can also process multiple tabs in one click and save:
  52. <ul>
  53. <li>the selected tabs,</li>
  54. <li>or the unpinned tabs,</li>
  55. <li>or all the tabs.</li>
  56. </ul>
  57. </li>
  58. <li>
  59. The context menu also allows you to activate the auto-save of:
  60. <ul>
  61. <li>the current tab,</li>
  62. <li>or the unpinned tabs,</li>
  63. <li>or all the tabs.</li>
  64. </ul>
  65. </li>
  66. <li>With auto-save active, pages are automatically saved every time after being loaded (or before being unloaded
  67. if not).
  68. </li>
  69. <li>Right-click on the SingleFile button and select "Options" to open the options page.</li>
  70. <li>
  71. The default save folder is the download folder configured in your browser, cf. about:preferences in Firefox and
  72. chrome://settings in Chrome.
  73. </li>
  74. <li>You can use the shortcut Ctrl+Shift+X to save current or selected tabs in Chrome. Go to
  75. <a href="chrome://extensions/shortcuts">chrome://extensions/shortcuts</a> to change it.</li>
  76. </ul>
  77. </li>
  78. <li>
  79. <a id="options">Options description</a>
  80. <p>You can customize SingleFile through the options page. Right-click on SingleFile button
  81. <img src="../resources/icon_16.png" class="icon"> in the browser toolbar and select "Options"/"Manage extension"
  82. in
  83. the context menu to open the options page.</p>
  84. <p>User interface</p>
  85. <ul>
  86. <li>
  87. <span class="option">add entry in the context menu of the webpage</span>
  88. <p>Check this option to display an entry for SingleFile in the context menu of the webpage. The context menu of
  89. the
  90. SingleFile button
  91. <img src="../resources/icon_16.png" class="icon"> in the extension toolbar is displayed wether this option is
  92. checked
  93. or not.
  94. </p>
  95. <p class="notice">It is recommended to
  96. <u>check</u> this option</p>
  97. </li>
  98. <li>
  99. <span class="option">overlay a shadow on the page during processing</span>
  100. <p>Check this option to overlay a shadow on the page when SingleFile is retrieving page resources. This reminds
  101. you
  102. that you should not close the tab.
  103. </p>
  104. <p class="notice">It is recommended to
  105. <u>check</u> this option</p>
  106. </li>
  107. <li>
  108. <span class="option">display an infobar when viewing a saved page</span>
  109. <p>Check this option to display the ℹ button at the top right of the page when viewing a saved page. By clicking
  110. this
  111. icon, you can get more information about the saved date and open the original URL.
  112. </p>
  113. <p class="notice">It is recommended to
  114. <u>check</u> this option</p>
  115. </li>
  116. </ul>
  117. <p>File name</p>
  118. <ul>
  119. <li>
  120. <span class="option">template</span>
  121. <p>The template allows you to customize the file name of saved pages. You can use any valid character and "/" to
  122. create sub-folders (with the option "save pages in background" active). You can also use the variables in
  123. the list below anywhere in the template.</p>
  124. <ul>
  125. <li><code>{page-title}</code>: the title of the page</li>
  126. <li><code>{page-language}</code>: the language of the page</li>
  127. <li><code>{page-description}</code>: the description of the page</li>
  128. <li><code>{page-author}</code>: the author of the page</li>
  129. <li><code>{page-creator}</code>: the creator of the page</li>
  130. <li><code>{page-publisher}</code>: the publisher of the page</li>
  131. <li><code>{datetime-iso}</code>: the save date and time in the ISO format (e.g. "2018-09-15T22_38_26_317Z")</li>
  132. <li><code>{datetime-utc}</code>: the save date and time in UTC format (e.g. "Sat, 15 Sep 2018 22_38_26 GMT")</li>
  133. <li><code>{datetime-locale}</code>: the localized value of the date and time (e.g. "9_16_2018, 12_54_31 AM")</li>
  134. <li><code>{date-iso}</code>: the save date in the ISO format (e.g. "2018-09-15")</li>
  135. <li><code>{date-locale}</code>: the localized value of the save date (e.g. "16_09_2018")</li>
  136. <li><code>{time-iso}</code>: the save time in the ISO format (e.g. "22_38_26_317")</li>
  137. <li><code>{time-locale}</code>: the localized value of the save time (e.g. "00_38_26")</li>
  138. <li><code>{day-utc}</code>: the day of the save date in UTC format (e.g. "15")</li>
  139. <li><code>{day-locale}</code>: the localized value of the day (e.g. "15")</li>
  140. <li><code>{month-utc}</code>: the month of the save date in UTC format (e.g. "9")</li>
  141. <li><code>{month-locale}</code>: the localized value of the month (e.g. "9")</li>
  142. <li><code>{year-utc}</code>: the year of the save date in UTC format (e.g. "2018")</li>
  143. <li><code>{year-locale}</code>: the localized value of the year (e.g. "2018")</li>
  144. <li><code>{url-href}</code>: the URL of the page (e.g. "http_example.com")</li>
  145. <li><code>{url-pathname}</code>: the path name of the URL (e.g. "category_index.html")</li>
  146. <li><code>{url-last-segment}</code>: the last part of the pathname (without the extension) or the host if not
  147. found (e.g. "index")</li>
  148. <li><code>{url-protocol}</code>: the protocol of the URL (e.g. "https")</li>
  149. <li><code>{url-host}</code>: the host name + the port of the URL (e.g. "example.com_8080")</li>
  150. <li><code>{url-hostname}</code>: the host name of the URL (e.g. "example.com")</li>
  151. <li><code>{url-port}</code>: the port of the URL (e.g. "8080")</li>
  152. <li><code>{url-username}</code>: the user name of the URL (e.g. "john_doe")</li>
  153. <li><code>{url-password}</code>: the password of the URL (e.g. "qwerty123")</li>
  154. <li><code>{url-search}</code>: the search string of the URL (e.g. "filter-date=today")</li>
  155. <li><code>{url-hash}</code>: the hash of the URL (e.g. "chapter-2")</li>
  156. <li><code>{tab-id}</code>: the unique identifier of the tab (e.g. "326")</li>
  157. <li><code>{digest-sha-256}</code>: the SHA-256 hash value of the entire page content (e.g.
  158. e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855)</li>
  159. <li><code>{digest-sha-384}</code>: the SHA-384 hash value of the entire page content</li>
  160. <li><code>{digest-sha-512}</code>: the SHA-512 hash value of the entire page content</li>
  161. </ul>
  162. <p>Note that invalid characters are automatically transformed and collapsed to underscores. File names cannot
  163. exceed 192 characters and are truncated if longer. The invalid characters are: [, ~, \, ?, %, *, :, |, ", &lt;,
  164. &gt;, and control characters from 0 to 31 in the ASCII table.</p>
  165. <p>Template Examples</p>
  166. <ul>
  167. <li><code>{page-title} ({date-iso} {time-locale}).html</code> will produce filenames like "Introduction to
  168. SingleFile (2018-09-15 11_06_03 PM).html" for a page having "Introduction to SingleFile" as title.</li>
  169. <li><code>archives/{url-last-segment} - {date-iso}</code> will produce filenames like "welcome - 2018-09-15" for
  170. a page hosted on https://example.com/welcome.html. The saved files will be saved in the sub-directory
  171. "archives".</li>
  172. <li><code>archives/{year-locale}/{month-locale}/{day-locale}/{page-title}.html</code> will produce filenames
  173. like "Introduction to SingleFile.html" stored into 3 sub-directories in the "archives" folder, one for each
  174. part of the save date (e.g. "2018/9/15/Introduction to SingleFile.html").</li>
  175. </ul>
  176. </li>
  177. <li>
  178. <span class="option">open the "Save as" dialog to confirm the file name</span>
  179. <p>Check this option to display the "Save as" dialog in order to confirm the file name before saving the page. If
  180. the
  181. option "save pages in background" is unchecked then a prompt dialog will be displayed instead of the "Save as"
  182. dialog.
  183. </p>
  184. <p class="notice">It is recommended to
  185. <u>uncheck</u> this option</p>
  186. </li>
  187. </ul>
  188. <p>HTML content</p>
  189. <ul>
  190. <li>
  191. <span class="option">compress HTML content</span>
  192. <p>Check this option to remove all HTML comments, and unneeded spaces or returns. This helps to reduce the size
  193. of
  194. the file without altering the document.</p>
  195. <p class="notice">It is recommended to
  196. <u>check</u> this option</p>
  197. </li>
  198. <li>
  199. <span class="option">remove HTML imports</span>
  200. <p>Check this option to remove all link elements used to import HTML documents. This can help to reduce the size
  201. of the
  202. file
  203. without altering the document most of the time.</p>
  204. <p class="notice">It is recommended to
  205. <u>check</u> this option</p>
  206. </li>
  207. <li>
  208. <span class="option">remove hidden elements</span>
  209. <p>Check this option to remove all hidden elements. This option can help to reduce the size of the file
  210. without altering the document.</p>
  211. <p class="notice">It is recommended to
  212. <u>check</u> this option</p>
  213. </li>
  214. <li>
  215. <span class="option">remove frames</span>
  216. <p>Check this option to remove all frame and iframe elements. This can considerably reduce the size of the file
  217. without altering the document most of the time. Checking this option may also decrease the time needed to save a
  218. page</p>
  219. </li>
  220. </ul>
  221. <p>Images</p>
  222. <ul>
  223. <li>
  224. <span class="option">group duplicate images together</span>
  225. <p>Check this option to avoid saving multiple times duplicate images. Checking this this option should not alter
  226. the document in modern browsers and can considerably reduce the size of the file. Checking this this option
  227. option may also increase the CPU consumption and the time needed to save a page</p>
  228. <p class="notice">It is recommended to
  229. <u>check</u> this option</p>
  230. </li>
  231. <li>
  232. <span class="option">save deferred images</span>
  233. <p>Check this option to save all the deferred images that are not displayed. This may help to save all the
  234. images
  235. without scrolling the page. This feature does its best effort and is not guaranteed to work on all sites.</p>
  236. <p class="notice">It is recommended to
  237. <u>check</u> this option</p>
  238. </li>
  239. <li>
  240. <span class="option">remove images for alternative screen resolutions</span>
  241. <p>Check this option to remove images that are alternatives in lower and/or higher resolutions to the ones
  242. displayed
  243. by default. Checking this this option can considerably reduce the size of the file in some cases.</p>
  244. </li>
  245. </ul>
  246. <p>Stylesheets</p>
  247. <ul>
  248. <li>
  249. <span class="option">compress CSS content</span>
  250. <p>Check this option to minify CSS stylesheets. This the size of the file without altering the
  251. document.
  252. It also prevents images from being saved several times by using CSS variables.
  253. </p>
  254. <p class="notice">It is recommended to
  255. <u>check</u> this option</p>
  256. </li>
  257. <li>
  258. <span class="option">remove unused styles</span>
  259. <p>Check this option to remove all CSS rules and styles that do not match any element. Checking this option
  260. should
  261. not alter the document and can considerably reduce the size of the file. Checking this option may
  262. also
  263. increase the CPU consumption and the time needed to save a page.</p>
  264. <p class="notice">It is recommended to
  265. <u>check</u> this option</p>
  266. </li>
  267. <li>
  268. <span class="option">remove alternative fonts to woff/otf and unused fonts</span>
  269. <p>Check this option to remove fonts that are alternatives to the Web Open Font or OpenType formats, and CSS
  270. fonts that are not used. Checking this this option should not alter the document and can considerably reduce the
  271. size of the file.</p>
  272. <p class="notice">It is recommended to
  273. <u>check</u> this option</p>
  274. </li>
  275. <li>
  276. <span class="option">remove stylesheets for alternative devices to screens</span>
  277. <p>Check this option to remove stylesheets that are not used for the screen display like stylesheets for print
  278. preview and speech synthesizers. Checking this this option can help to reduce the size of the file.</p>
  279. </li>
  280. </ul>
  281. <p>Other resources</p>
  282. <ul>
  283. <li>
  284. <span class="option">remove scripts</span>
  285. <p>Check this option to remove all scripts. Unchecking this option may alter the document and lead to security
  286. issues.</p>
  287. <p class="notice">It is recommended to
  288. <u>check</u> this option</p>
  289. </li>
  290. <li>
  291. <span class="option">remove video sources</span>
  292. <p>Check this option to empty the "src" attribute of all video elements.</p>
  293. <p class="notice">It is recommended to
  294. <u>check</u> this option</p>
  295. </li>
  296. <li>
  297. <span class="option">remove audio sources</span>
  298. <p>Check this option to empty the "src" attribute of all audio elements.</p>
  299. <p class="notice">It is recommended to
  300. <u>check</u> this option</p>
  301. </li>
  302. </ul>
  303. <p>Auto-save</p>
  304. <ul>
  305. <li>
  306. <span class="option">auto-save after page load or on page unload</span>
  307. <p>Check this option to auto-save pages after being loaded. If you browse to another page before the page is
  308. fully
  309. loaded then the page will be saved just before being unloaded. With this option active, you are guaranteed pages
  310. will
  311. always be saved but some frame contents may be missing (if you unchecked "remove frames") when pages are saved
  312. before
  313. being unloaded.
  314. </p>
  315. </li>
  316. <li>
  317. <span class="option">auto-save after page load</span>
  318. <p>Check this option to auto-save pages after being loaded.</p>
  319. </li>
  320. <li>
  321. <span class="option">auto-save on page unload</span>
  322. <p>Check this option to auto-save pages before being unloaded instead of saving pages after being loaded. With
  323. this
  324. option active, you are guaranteed pages will always be saved but some frame contents may be missing (if you
  325. unchecked
  326. "remove frames").
  327. </p>
  328. </li>
  329. <li>
  330. <span class="option">auto-save waiting delay after load (sec.)</span>
  331. <p>Specify the amount of time in seconds to wait before saving a page when the "auto-save on page load or on page
  332. unload"
  333. or "auto-save on page load" is checked.
  334. </p>
  335. </li>
  336. </ul>
  337. <p>Misc.</p>
  338. <ul>
  339. <li>
  340. <span class="option">save pages in background</span>
  341. <p>Uncheck this option if you get invalid file names like "37bec68b-446a-46a5-8642-19a89c231b46.html" or
  342. interrupted downloads when saving pages. Unchecking this option prevent saving files in sub-directories.
  343. </p>
  344. <p class="notice">It is recommended to
  345. <u>check</u> this option</p>
  346. </li>
  347. <li>
  348. <span class="option">display stats in the console after processing</span>
  349. <p>Check this option to display stats about processing in the JavaScript developer tools of your browser.
  350. Checking
  351. this option may increase the CPU consumption and the time needed to save a page.
  352. </p>
  353. <p class="notice">It is recommended to
  354. <u>uncheck</u> this option</p>
  355. </li>
  356. <li>
  357. <span class="option">set a maximum size for embedded resources (Mb)</span>
  358. <p>Specify the maximum size of embedded resources (i.e. images, stylesheets, scripts and iframes) in megabytes.
  359. </p>
  360. </li>
  361. <li>
  362. <span class="option">save raw page</span>
  363. <p>Check this option to save the page without interpreting JavaScript. Checking this option may alter the
  364. document.</p>
  365. <p class="notice">It is recommended to
  366. <u>uncheck</u> this option</p>
  367. </li>
  368. </ul>
  369. <p>Form buttons</p>
  370. <ul>
  371. <li>
  372. <span class="option">Reset</span>
  373. <p>Reset all options to their default values.</p>
  374. </li>
  375. </ul>
  376. </li>
  377. <li>
  378. <a id="notes">Technical notes</a>
  379. <ul>
  380. <li>All images are converted into
  381. <a href="http://en.wikipedia.org/wiki/Base64">base64</a>.
  382. </li>
  383. <li>All resources except frame contents are injected in the document using
  384. <a href="http://en.wikipedia.org/wiki/Data_URI_scheme">data URI scheme</a>.
  385. </li>
  386. <li>Frame contents are injected as text in the document by using the srcdoc attribute.
  387. </li>
  388. </ul>
  389. </li>
  390. <li>
  391. <a id="known-issues">Known issues</a>
  392. <ul>
  393. <li>
  394. All browsers
  395. <ul>
  396. <li>For security reasons, you cannot save pages hosted on https://chrome.google.com or
  397. https://addons.mozilla.org.</li>
  398. <li>The last saved path cannot be remembered by default. To circumvent this limitation, disable the option "Save
  399. pages in background".</li>
  400. </ul>
  401. </li>
  402. <li>
  403. Chrome/Opera
  404. <ul>
  405. <li>You must enable the option "Allow access to file URLs" in the extension page to display the infobar when
  406. viewing
  407. a saved page, or to save a page stored on the filesystem.</li>
  408. </ul>
  409. </li>
  410. <li>
  411. Firefox
  412. <ul>
  413. <li>You cannot save selected tabs via the context menu because it is not possible to select multiple tabs.</li>
  414. </ul>
  415. </li>
  416. <li>
  417. Edge
  418. <ul>
  419. <li>The file name looks like "4e5a13fd-6638-4a37-a34b-a3c104ac66b1".</li>
  420. </ul>
  421. </li>
  422. </ul>
  423. </li>
  424. <li>
  425. <a id="unknown-issues">Troubleshooting unknown issues</a>
  426. <p>Please follow these steps if you find an unknown issue:</p>
  427. <ul>
  428. <li>Reset SingleFile options.</li>
  429. <li>If resetting options did not fix the issue, try to disable all other extensions to see if there is a conflict.</li>
  430. <li>If there is a conflict then try to determine against which extension(s).</li>
  431. <li>Please report the issue
  432. <a href="https://github.com/gildas-lormeau/SingleFile/issues">here</a> with a short description describing how to
  433. reproduce
  434. the issue, Browser version, OS name and version.</li>
  435. </ul>
  436. <p>Suggestions are welcome :)</p>
  437. </li>
  438. <li>
  439. <a id="contributors">Contributors</a>
  440. <ul>
  441. <li>Chinese translation done by yfdyh000 (<a href="https://github.com/yfdyh000">GitHub profile</a>)</li>
  442. <li>Japanese translation, done by Shitennouji (四天王寺) (<a href="https://github.com/Shitennouji">GitHub profile</a>)</li>
  443. <li>Polish translation done by xesarni (<a href="https://github.com/xesarni">GitHub profile</a>)</li>
  444. <li>Russian translation done by rstp14 (<a href="https://github.com/rstp14">GitHub profile</a>)</li>
  445. </ul>
  446. </li>
  447. </ol>
  448. </div>
  449. </body>
  450. </html>