help.html 19 KB

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