Skip to content

Commit

Permalink
style: metadata spacing for mozilla (#20454)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Sep 9, 2022
1 parent 34878f8 commit 1ee49b7
Show file tree
Hide file tree
Showing 811 changed files with 811 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/en-us/mozilla/add-ons/contact_us/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Landing
- Mozilla
---

{{AddonSidebar}}

Use the links below to get help, to keep up to date with add-ons news, and to give us feedback.
Expand Down
1 change: 1 addition & 0 deletions files/en-us/mozilla/add-ons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Landing
- Mozilla
---

{{AddonSidebarMain}}

Add-ons allow developers to extend and modify the functionality of Firefox. They are written using standard Web technologies - JavaScript, HTML, and CSS - plus some dedicated JavaScript APIs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ slug: Mozilla/Add-ons/WebExtensions/Add_a_button_to_the_toolbar
tags:
- WebExtensions
---

{{AddonSidebar}}

Toolbar buttons are one of the main UI components available to extensions. Toolbar buttons live in the main browser toolbar and contain an icon. When the user clicks the icon, one of two things can happen:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ slug: Mozilla/Add-ons/WebExtensions/Anatomy_of_a_WebExtension
tags:
- WebExtensions
---

{{AddonSidebar}}

An extension consists of a collection of files, packaged for distribution and installation. In this article, we will quickly go through the files that might be present in an extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- action
browser-compat: webextensions.api.action.ColorArray
---

{{AddonSidebar()}}

## Type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- disable
browser-compat: webextensions.api.action.disable
---

{{AddonSidebar()}}

Disables the browser action for a tab, meaning that it cannot be clicked when that tab is active.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- action
browser-compat: webextensions.api.action.enable
---

{{AddonSidebar()}}

Enables the browser action for a tab. By default, browser actions are enabled for all tabs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getBadgeBackgroundColor
browser-compat: webextensions.api.action.getBadgeBackgroundColor
---

{{AddonSidebar()}}

Gets the background color of the browser action's badge.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getBadgeText
browser-compat: webextensions.api.action.getBadgeText
---

{{AddonSidebar()}}

Gets the browser action's badge text.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- getBadgeTextColor
browser-compat: webextensions.api.action.getBadgeTextColor
---

{{AddonSidebar()}}

Gets the text color for the browser action's badge.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getPopup
browser-compat: webextensions.api.action.getPopup
---

{{AddonSidebar()}}

Gets the HTML document set as the popup for this browser action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getTitle
browser-compat: webextensions.api.action.getTitle
---

{{AddonSidebar()}}

Gets the browser action's title.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- action
browser-compat: webextensions.api.action.ImageDataType
---

{{AddonSidebar()}}

Pixel data for an image. Must be an [`ImageData`](/en-US/docs/Web/API/ImageData) object (for example, from a {{htmlelement("canvas")}} element).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- action
browser-compat: webextensions.api.action
---

{{AddonSidebar}}

Adds a button to the browser's toolbar.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- isEnabled
browser-compat: webextensions.api.action.isEnabled
---

{{AddonSidebar()}}

Returns `true` if the browser action is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onClicked
browser-compat: webextensions.api.action.onClicked
---

{{AddonSidebar()}}

Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- openPopup
browser-compat: webextensions.api.action.openPopup
---

{{AddonSidebar()}}

Open the browser action's popup.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- setBadgeBackgroundColor
browser-compat: webextensions.api.action.setBadgeBackgroundColor
---

{{AddonSidebar()}}

Sets the background color for the badge. Tabs without a specific badge background color will inherit the global badge background color, which defaults to `[217, 0, 0, 255]` in Firefox.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- setBadgeText
browser-compat: webextensions.api.action.setBadgeText
---

{{AddonSidebar()}}

Sets the badge text for the browser action. The badge is displayed on top of the icon.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- setBadgeTextColor
browser-compat: webextensions.api.action.setBadgeTextColor
---

{{AddonSidebar()}}

Sets the text color for the browser action's badge. Tabs without a specific badge text color will inherit the global badge text color.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- setIcon
browser-compat: webextensions.api.action.setIcon
---

{{AddonSidebar()}}

Sets the icon for the browser action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- setPopup
browser-compat: webextensions.api.action.setPopup
---

{{AddonSidebar()}}

Sets the HTML document that is opened as a popup when the user clicks on the browser action's icon. Tabs without a specific popup will inherit the global popup, which defaults to the [`default_popup`](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action) specified in the manifest.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- setTitle
browser-compat: webextensions.api.action.setTitle
---

{{AddonSidebar}}

Sets the browser action's title. The title is displayed in a tooltip over the browser action's icon. You can pass a `tabId` in or a `windowId` as an optional parameter — if you do this then the title is changed only for the specified tab or window. Tabs or windows without a specific title inherit the global title text, which defaults to the [`default_title`](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action) or [`name`](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/name) specified in the manifest.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- alarms
browser-compat: webextensions.api.alarms.Alarm
---

{{AddonSidebar()}}

Information about a single alarm. This object is returned from {{WebExtAPIRef('alarms.get()')}} and {{WebExtAPIRef('alarms.getAll()')}}, and is passed into the {{WebExtAPIRef('alarms.onAlarm')}} listener.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- clear
browser-compat: webextensions.api.alarms.clear
---

{{AddonSidebar()}}

Cancels an alarm, given its name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- clearAll
browser-compat: webextensions.api.alarms.clearAll
---

{{AddonSidebar()}}

Cancels all active alarms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- alarms
browser-compat: webextensions.api.alarms.create
---

{{AddonSidebar()}}

Creates a new alarm for the current browser session. An alarm may fire once or multiple times. An alarm is cleared after it fires for the last time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- get
browser-compat: webextensions.api.alarms.get
---

{{AddonSidebar()}}

Gets an alarm, given its name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getAll
browser-compat: webextensions.api.alarms.getAll
---

{{AddonSidebar()}}

Gets all active alarms for the extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tags:
- alarms
browser-compat: webextensions.api.alarms
---

{{AddonSidebar}}

Schedule code to run at a specific time in the future. This is like [`setTimeout()`](/en-US/docs/Web/API/setTimeout) and [`setInterval()`](/en-US/docs/Web/API/setInterval), except that those functions don't work with background pages that are loaded on demand.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onAlarm
browser-compat: webextensions.api.alarms.onAlarm
---

{{AddonSidebar()}}

Fired when any alarm set by the extension goes off.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- WebExtensions
browser-compat: webextensions.api.bookmarks.BookmarkTreeNode
---

{{AddonSidebar()}}

An object of type `bookmarks.BookmarkTreeNode` represents a node in the bookmark tree, where each node is a bookmark, a bookmark folder, or a separator. Child nodes are ordered by an `index` within their respective parent folders.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- WebExtensions
browser-compat: webextensions.api.bookmarks.BookmarkTreeNodeType
---

{{AddonSidebar()}}

The **`bookmarks.BookmarkTreeNodeType`** type is used to describe whether a node in the bookmark tree is a bookmark, a folder, or a separator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- WebExtensions
browser-compat: webextensions.api.bookmarks.BookmarkTreeNodeUnmodifiable
---

{{AddonSidebar()}}

The **`bookmarks.BookmarkTreeNodeUnmodifiable`** type is used to indicate the reason that a node in the bookmark tree (where each node is either a bookmark or a bookmark folder) cannot be changed. This is used as the value of the {{WebExtAPIRef("bookmarks.BookmarkTreeNode", "bookmarks.BookmarkTreeNode.unmodifiable", "unmodifiable")}} field on bookmark nodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- WebExtensions
browser-compat: webextensions.api.bookmarks.create
---

{{AddonSidebar()}}

Creates a bookmark or folder as a child of the {{WebExtAPIRef("bookmarks.BookmarkTreeNode", "BookmarkTreeNode")}} with the specified `parentId`. To create a folder, omit or leave empty the {{WebExtAPIRef("bookmarks.CreateDetails", "CreateDetails", "url")}} parameter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- WebExtensions
browser-compat: webextensions.api.bookmarks.CreateDetails
---

{{AddonSidebar()}}

The `CreateDetails` type is used to describe the properties of a new, bookmark, bookmark folder, or separator when calling the {{WebExtAPIRef("bookmarks.create()")}} method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- get
browser-compat: webextensions.api.bookmarks.get
---

{{AddonSidebar()}}

Given the ID of a {{WebExtAPIRef("bookmarks.BookmarkTreeNode")}} or an array of such IDs, the **`bookmarks.get()`** method retrieves the matching nodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getChildren
browser-compat: webextensions.api.bookmarks.getChildren
---

{{AddonSidebar()}}

**`bookmarks.getChildren()`** retrieves all the immediate children of a given bookmark folder, identified as a {{WebExtAPIRef("bookmarks.BookmarkTreeNode", "BookmarkTreeNode")}} ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getRecent
browser-compat: webextensions.api.bookmarks.getRecent
---

{{AddonSidebar()}}

The `bookmarks.getRecent()` method retrieves a specified number of the most recently added bookmarks as an array of {{WebExtAPIRef('bookmarks.BookmarkTreeNode', 'BookmarkTreeNode')}} objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getSubTree
browser-compat: webextensions.api.bookmarks.getSubTree
---

{{AddonSidebar()}}

The **`bookmarks.getSubTree()`** method asynchronously retrieves a {{WebExtAPIRef("bookmarks.BookmarkTreeNode")}}, given its ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- getTree
browser-compat: webextensions.api.bookmarks.getTree
---

{{AddonSidebar()}}

**`bookmarks.getTree()`** returns an array containing the root of the bookmarks tree as a {{WebExtAPIRef("bookmarks.BookmarkTreeNode")}} object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tags:
- WebExtensions
browser-compat: webextensions.api.bookmarks
---

{{AddonSidebar}}

The [WebExtensions](/en-US/docs/Mozilla/Add-ons/WebExtensions) {{WebExtAPIRef("bookmarks")}} API lets an extension interact with and manipulate the browser's bookmarking system. You can use it to bookmark pages, retrieve existing bookmarks, and edit, remove, and organize bookmarks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- move
browser-compat: webextensions.api.bookmarks.move
---

{{AddonSidebar()}}

The **`bookmarks.move()`** method moves the specified {{WebExtAPIRef("bookmarks.BookmarkTreeNode", "BookmarkTreeNode")}} to the specified destination within the tree of bookmarks. This lets you move a bookmark to a new folder and/or position within the folder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onChanged
browser-compat: webextensions.api.bookmarks.onChanged
---

{{AddonSidebar()}}

Fired when there is a change to:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onChildrenReordered
browser-compat: webextensions.api.bookmarks.onChildrenReordered
---

{{AddonSidebar()}}

Fired when the children of a folder have changed their order due to the order being sorted in the UI. This is not called as a result of a call to {{WebExtAPIRef("bookmarks.move()")}} or a drag operation in the UI.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onCreated
browser-compat: webextensions.api.bookmarks.onCreated
---

{{AddonSidebar()}}

Fired when a bookmark item (a bookmark or a folder) is created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onImportBegan
browser-compat: webextensions.api.bookmarks.onImportBegan
---

{{AddonSidebar()}}

Fired when the browser has started importing a set of bookmarks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onImportEnded
browser-compat: webextensions.api.bookmarks.onImportEnded
---

{{AddonSidebar()}}

Fired when the browser has finished importing a set of bookmarks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onMoved
browser-compat: webextensions.api.bookmarks.onMoved
---

{{AddonSidebar()}}

Fired when a bookmark or folder is moved to a different parent folder or position within a folder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tags:
- onRemoved
browser-compat: webextensions.api.bookmarks.onRemoved
---

{{AddonSidebar()}}

Fired when a bookmark or folder is removed. When a folder is removed recursively, a single notification is fired for the folder, and none for its contents.
Expand Down
Loading

0 comments on commit 1ee49b7

Please sign in to comment.