help.html 19 KB

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