Form-O-Fill Tutorials

Tour 9: Context object

Context Object
Welcome!

Before starting: Have you read this important message?

Hello and welcome to one of the more advanced topics.

The context object is a collection of methods available mainly in before functions.

It contains tools to find out on information about the page Form-O-Fill is currently working on (context.url)

You can query the page for HTML fragments (context.findHtml()) and you can save and load values (context.storage.save / load.

Let's start with the .url

If you press the Form-O-Fill browser icon now (top right) you should see the values the context.url key contains.

These values are all you would expect when calling window.location in the page. In fact they are exactly that.

They can be used to change data inside before funcions based on some parts of that object literal.

As usual let's have a look at the rules.

Please open the options panel via a right click on the extension icon next to the adress bar.