Skip to content

Local Files

sixcious edited this page Jul 15, 2023 · 17 revisions

Infy can work offline and append your own local files on your computer. First, you need to enable this in your Browser's Extension Options. The steps differ depending on the browser you are using:

Chrome

  1. Navigate your browser to chrome://extensions
  2. Find Infy Scroll in the Extension List and click the Details Button
  3. Toggle on Allow access to file URLs

Edge

  1. Navigate your browser to edge://extensions
  2. Find Infy Scroll in the Extension List and click the Details Button
  3. Check Allow access to file URLs

Firefox

  1. Navigate your browser to about:addons
  2. Click Infy Scroll and then click the Details Tab
  3. Check

Appending an entire directory

It's possible to append an entire folder of files. First, you'll want to open up the first file into a tab in your browser.

Choosing the right action

If the files are all numbered in an incrementable sequence (e.g. 000, 001, ...), then you can simply use the Increment URL action and start with the first file. If the files aren't in a sequence, you can use the URL List action and follow the steps below to get all their paths.

Choosing the right append mode

This should be straightforward; if you're append images, videos, or audio files, use Media. If you're appending local html files, see the section below.

Getting the paths to all the files

In Windows, you can copy the full paths to all the files like so:

  1. Select all the files (Ctrl+A)
  2. On the very first file, hold Shift and Right Click it to bring up the context menu
  3. Select Copy as path from the context menu

You now have the paths to all the files in your clipboard. Before you can paste them into Infy's URL List text input, you need to manually remove the " characters. This can be done by pasting them into a text editor and using its "replace all" function, replacing " with an empty string. (I recommend using Notepad++.) In a future update, this step will no longer be needed as Infy can simply ignore the " characters.

Alternative path solution

In Windows, if you rename all the files to the same name, it will add a (x) to the file name, where x is a number starting with 1 and increments it. This can allow you to use the Increment URL action starting with the first file.

Appending Local HTML Files

In addition to appending local media/image files on your computer (using the Media Append Mode), it's also technically possible to load local HTML files (using the URL List or Increment URL Action and the Page or Element Append Modes, but you need to tell your browser it's OK to do so. It's a complex security issue, primarily because browsers don't want JavaScript code to be able to load your other local files without your permission.

So, the way you tell your browser to disable the security constraint is:

  • Chrome/Edge: Start the browser from the command line with the --allow-file-access-from-files flag
  • Firefox: Navigate to about:config and set privacy.file_unique_origin to false

(Note: I obviously can't recommend leaving this setting on permanently!)

Clone this wiki locally