Script Summary: A Form filler for forms on the web. Provides a small red button at the top left within webpages that have forms, click it to first save the form values, later click it again to fill in the form with the saved info. Or paste raw values into a form from an email or text file. Also can record a mouse click on a page and have it replay any time you visit that page, any form on that page will get filled-in before the click is replayed. This script's menu is available via the shortcut alt-m.
Update: Runs in Chrome (drop .user.js file in extensions tab, then drag and drop download tab at bottom into extensions tab.) and Firefox (click install above). Menu is now accessible with alt-m or by selecting "Simple Form Saver..." from within GreaseMonkey tools/button.
Checkboxes, radio buttons, text inputs, drop down selections and text areas are all saved when the little red icon (a red dot or square) that this script places at the top left of relevant webpages is clicked. Each of the three mouse button clicks invokes a different action, see tool-tip when hovering over the icon for instructions. The icon stays within the window frame even when the page had been scrolled down. On the red dot, left click saves the form. On the red square: click, fills out form, right click saves, and middle click deletes stored data for that webpage and adds site to the ignore list; to re-enable the site see the GM "User Script" submenu option and choose "Save/Re-Save Form".
The top left icon is an unobtrusive red dot for webpages where there are sufficient form items to be useful for saving. The icon is a red square with a hole, on webpages on which you have already saved the form information on a previous occasion.
If no icon appears there are no form items on the page.
Enable writing to status bar by setting "dom.disable_window_status_change" to false in about:config (pseudo site name) so the script can inform you about its progress without using pop-up windows. Also see "config:about" and filter with "hostFormsList" to see script's data store or to reset and clear this scripts persistent data.
To turn off annoying autoscroll on middle-click, the target thingy which appears on middle click, untick it in firefox options->advance. Also, "middlemouse.contentLoadURL" in about:config can be set to false to prevent middle click from trying to open as a link whatever happens to be in your clipboard.
To ensure that when you right click on the red dot icon the context menu does not appear, set dom.event.contextmenu.enabled to true in about:config
When you have finished setting values in about:config make sure to restart your browser sometime so that the values will not be lost in a crash
The data is saved as usual, however, if firefox crashes or an old tab overwrites data later, the changes made since it previously started are lost. So to ensure important form data is saved, restart firefox. In firefox data is saved to the permanent store, the file system, when it exits.
To paste form values into a webpage from an email or another source, eg, a text document; copy the name-values (eg, "name: John Smith")
from the email or text file and then in firefox select "Tools->Greasemonkey->User Script Command", from that submenu select "Paste Data Into Form",
(shortcut for this is "Alt-T, G, C, P"). An explanatory paragraph with a white translucent area will open upon the form webpage.
Paste the data into the translucent area and either hit Control-Enter or double click on it with the mouse. The form should now have all the values
you pasted filled-in on the webpage itself.
There are some config values that optionally affect the pasting of data into a form:
To indicate that multiple fields will be filled in from only one line of the email/textfile use the asterisk, so for example, if
line 3 of the email/textfile is "name:John Smith" which is two contiguous fields in the form eg, "first-name: , last-name: " then set the config value to "3, 2, 1 4"
To indicate that the date & time given is with the zone affixed (eg, UTC or EST) and so can be converted into a standard format of 4 fields,
dd/mm/yyyy hour:minute am/pm zone, append "Ds" &/or "T" , so for exmaple: "3, 1, 2DsT, 4", specifies that the third set of fields comes from
the second (2) line of the email which is in standard date format (eg, "April 24, 2016 11:11 UTC") is to be converted to the "dd/mm/yyyy hour:minute am/pm zone"
format and each of these 4 parts of the format are inserted into 4 fields of the form. The "s" following the "D" indicates that the date is to be in the U.S. "slash" format.
Note: there is also a third configuration variable that may be relevant, see below "Pasting with the Input field Names".
To paste just the values without the names, choose instead the menu option "Edit stored Form data" (or short-cut "Alt-T, G C, E"), all the text in the input area should already be selected, if not, select it and then paste in the values without the names. The order of the values must be as on the form. Each value must be separated by a space, if however, there are to be spaces within the values then those values must be enclosed in double quotes(eg, "north america"). Now having edited the stored values, to enter them into the form click on the red icon at top left of the page or select from the GreaseMonkey menu "Fill-in Form"