new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

web-contents/properties

9 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

contents.userAgent property

A string property that determines the user agent for this web page.

contents.getType() - get WebContents type

Returns string - the type of the webContent. Can be 'backgroundPage', 'window', 'browserView', 'remote', 'webview' or 'offscreen'.

contents.setImageAnimationPolicy(policy) - set image animation policy

Sets the image animation policy for this webContents. The policy only affects new images; existing images that are currently being animated are unaffected. This is a known limitation in Chromium; you can force image animation to be recalculated with 'img.src = img.src' which will result in no network traffic but will update the animation policy. This corresponds to the animationPolicy accessibility feature in Chromium. Parameters: policy (string) - can be 'animate', 'animateOnce' or 'noAnimation'.

contents.audioMuted property

A boolean property that determines whether this page is muted.

contents.zoomLevel property

A number property that determines the zoom level for this web contents. The original size is 0 and each increment above or below represents zooming 20% larger or smaller to default limits of 300% and 50% of original size, respectively. The formula for this is scale := 1.2 ^ level.

contents.zoomFactor property

A number property that determines the zoom factor for this web contents. The zoom factor is the zoom percent divided by 100, so 300% = 3.0.

contents.zoomMode property

A string property that determines the zoom mode for this web contents.

contents.id property

A Integer representing the unique ID of this WebContents. Each ID is unique among all WebContents instances of the entire Electron application.

contents.hostWebContents property

A WebContents | null property that represents a WebContents instance that might own this WebContents.

Give your agent this brain