Foreground Libraries Pro only MV2

Foreground libraries are executed everytime you open or reload a webpage, and in each frame of the page in case there are multiple iframes.

These libraries are executed in the context of the webpage, and have access to the DOM elements.

Foreground libraries are useful to perform actions on DOM elements or other automated tasks on a specific page. You can also load libraries that help you manipulate DOM easier.

Fake Data comes bundled with one foreground library: jQueryopen in new window.


Keep in mind that foreground libraries are loaded in the global scope and they also have access to any chrome.* API. So make sure you know what files you are uploading.

How to load a Foreground library

In order to load a foreground library into Fake Data, please follow these steps

  • Open Fake Data's options page.
  • Go to Settings -> Developer Options -> Loaded Libraries -> Foreground Libraries.
  • Click on Choose File and select your .js file from your computer, then press on the green button to upload it.
  • After this, you will need to reload any web page that you already have opened in order to have the library executed into them.

Below is a demo video showing how to upload a foreground library and how it executes on a web page:


A broken foreground library might cause Fake Data to not work properly if errors are thrown. If you experience any issue after adding a library, remove it and reload the web pages that were affected.