Kinds of information that IMDb Weaver provides:
Hover mouse over headshot thumbnails to enlarge them.
On any IMDb Title page:
To adjust your IMDB Weaver preferences, click the "Prefs" button in the lower-right corner of any imdb.com page.
The settings can also be accessed directly via the Mozilla config page,
by selecting Help->About:?->about:config.
To constrain this list to IMDb Weaver preferences only, type: "imdb weaver"
into the Filter field.
The preference names have the greasemonkey-determined prefix:
Determines in which corner of the screen the Prefs menu button appears.
Valid values are:
|highlightTitleTypes||true||Highlight titles by type. (Applicable to Name pages and Find results.)|
|removeAds||true||Block various forms of advertising. This feature is able to block ads that are served directly from imdb.com that generic ad blockers tend to miss. Note that IMDb continues to add exciting new forms of advertising that this script might miss. (I highly recommend Adblock Plus for general purpose ad blocking.)|
|title-attributes||true||Display rating/runtime/language directly below title. This information is gathered from elsewhere on the page for convenience reference.|
|title-ShowAges||true||Add [Show Ages] button in the Cast title bar to compute the age of each cast member, as of the time of the title release.|
|title-StartResearch||true||Add [Research] button in the Cast title bar, which opens the Research dialog box.|
|title-headshotMagnifier||true||Hovering the mouse magnifies cast pictures.|
|title-headshotMagnification||12||Controls the level of magnification of headshots. This value times 32, is the number of pixels of the longest edge of a given photo.|
|name-headshotMagnifier||true||Hovering the mouse magnifies pictures in Works With section.|
|name-ShowAge||true||Display the current age of the person in the birth details section.|
|name-ShowAgeAtTitleRelease||true||If arriving from a title page, display the age of the person, as of the date of that title release, in the birth details section.|
|firstMatchAccessKey||A||Alt-Shift keystroke to navigate to first title matched on the search results page.|
|ajaxOperationLimit||10||Limits how many items are processed at one time where it involves retrieving additional pages in the background. This is a performance tuning parameter. For example, computing the age of each cast member on a title page requires the retrieval of each persons name page. (Set to -1 for unlimited -- browser may prompt if you want to kill a long running script.)|
Controls the level of information that the script sends to the Error Console.
Ranked from least to most verbose:
Upon loading a given IMDb page
(i.e., a Title page, a Name page), is extended with accessor methods;
"bean methods" in Java parlance.
These "getters" encapsulate the logic needed for retrieving
various kinds of information on page.
For example, in code that deals with Title pages you can see references like:
In code that deals with Name pages you can see:
This accessor logic is implemented in terms of XPath expressions, which is a pattern language for accessing page elements. It is more reliable and much less fragile than coding parent/child navigations directly on the DOM objects. (Despite concerns, XPath operations require negligible processing time.)
AJAX techniques are used to retrieve information from related pages. For example, "Show Ages" retrieves the relevant Name pages in the background in order to calculate the age, at time of title release, of each cast member. Each retrieved document body is incorporated into the title document being viewed as invisible iframes. When a page is requested it is cached, therefore subsequent references are "free" while still viewing the same page.
For a relatively concise example of these things coming together see the showCastAges() function, which executes from IMDb Title pages.