'Reading local file using bookmarklet

I am trying to read a local text file, only using Chrome Bookmarklet. I cannot use extensions or install any software, though I can use js libraries which can be used in a bookmarklet like jquery. This is the use-case I am trying to solve:

Say there is a list of keywords on a text file (one word in each line). I want to highlight these keywords on a page when bookmarklet is injected. These are the steps I am following:

  1. inject jquery
  2. read the local text file
  3. for each word, search the page and highlight/modify

I am stuck at the second step since I can't use fs. Can a bookmarklet read a local file for this scenario?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source