• About
  • Advertise
  • Privacy & Policy
  • Contact
Tech News, Magazine & Review WordPress Theme 2017
  • Home
  • Computers
  • Games
  • Internet
  • Image
  • Top downloads
No Result
View All Result
  • Home
  • Computers
  • Games
  • Internet
  • Image
  • Top downloads
No Result
View All Result
Flickroom
No Result
View All Result
Home Others

chrome.extension – Flickroom

Share on FacebookShare on Twitter
The chrome.extension API has utilities that can be used by any extension page. It includes support for exchanging messages between an extension and its content scripts or between extensions, as described in contingent in Message Passing. description of the error that has taken place. hardening for the life of a recall if an ansychronous extension api has resulted in an mistake. If no erroneousness has occured lastError will be undefined. true for message scripts running inside incognito tabs, and for extension pages running inside an incognito process. The latter only applies to extensions with ‘split ‘ incognito_behavior.

Reading: chrome.extension – Flickroom

Contents

  • 1 getBackgroundPage
    • 1.1 Returns
  • 2 getExtensionTabs
    • 2.1 Parameters
    • 2.2 Returns
  • 3 getURL
    • 3.1 Parameters
    • 3.2 Returns
  • 4 getViews
    • 4.1 Parameters
    • 4.2 Returns
  • 5 isAllowedFileSchemeAccess
    • 5.1 Parameters
    • 5.2 Returns
  • 6 isAllowedIncognitoAccess
    • 6.1 Parameters
    • 6.2 Returns
  • 7 sendRequest
    • 7.1 Parameters
    • 7.2 Returns
    • 7.3 Parameters

getBackgroundPage

chrome.extension.getBackgroundPage()

Foreground only

Returns the JavaScript ‘window ‘ aim for the background page running inside the current extension. Returns nothing if the extension has no setting page .

Returns

  • Window | undefined

getExtensionTabs

chrome.extension.getExtensionTabs(
  windowId?:

number

,
)

≤MV2

Foreground only

Deprecated

Please use extension.getViews {type: "tab"}. Returns an array of the JavaScript ‘window ‘ objects for each of the tab running inside the stream reference. If windowId is specified, returns entirely the ‘window ‘ objects of tabs attached to the specified window .

Parameters

  • windowId count optional

Returns

  • Window array of global window objects

getURL

chrome.extension.getURL(
  path:

string

,
)

≤MV2

Deprecated since Chrome 58

Please use runtime.getURL. Converts a relative path within an reference install directory to a fully-qualified URL .

Parameters

  • path string A path to a resource within an extension expressed relative to its install directory .

Returns

  • chain The fully-qualified URL to the resource .

getViews

chrome.extension.getViews(
  fetchProperties?:

object

,
)

Foreground only

Returns an array of the JavaScript ‘window ‘ objects for each of the pages running inside the current elongation .

Parameters

  • fetchProperties object optional
    • tabId numeral optional

      Chrome 54+

      Find a scene according to a yellow journalism idaho. If this field is omitted, returns all views .

    • character ViewType optional The type of view to get. If omitted, returns all views ( including background pages and tab ). valid values : ‘tab ‘, ‘notification ‘, ‘popup ‘ .
    • windowId act optional The window to restrict the research to. If omitted, returns all views .

Returns

  • Window array of global objects

isAllowedFileSchemeAccess

chrome.extension.isAllowedFileSchemeAccess(
  callback?:

function

,
)

Promise

Read more: Level up learning in 2022 with Kahoot! | Kahoot!

Retrieves the state of the extension ‘s access to the ‘file : // ‘ scheme. This corresponds to the user-controlled per-extension ‘Allow access to File URLs ‘ set accessible via the chrome : //extensions page .

Parameters

  • recall function optional The callback argument looks like : (isAllowedAccess: boolean) => void
    • isAllowedAccess boolean true if the elongation can access the ‘file : // ‘ scheme, false differently .

Returns

  • Promise

    Pending

    This merely returns a Promise when the callback argument is not specified, and with MV3+. The type inside the Promise is the same as the 1st argument to callback .

isAllowedIncognitoAccess

chrome.extension.isAllowedIncognitoAccess(
  callback?:

function

,
)

Promise

Retrieves the department of state of the extension ‘s access to Incognito-mode. This corresponds to the user-controlled per-extension ‘Allowed in Incognito ‘ mise en scene accessible via the chrome : //extensions foliate .

Parameters

  • recall function optional The callback parameter looks like : (isAllowedAccess: boolean) => void
    • isAllowedAccess boolean true if the extension has access to Incognito mode, false differently .

Returns

  • Promise

    Pending

    This alone returns a Promise when the callback parameter is not specified, and with MV3+. The type inside the Promise is the same as the 1st argument to callback .

sendRequest

chrome.extension.sendRequest(
  extensionId?:

string

,
  request:

any

,
  callback?:

function

,
)

Promise

≤MV2

Deprecated

Please practice runtime.sendMessage. Sends a single request to other listeners within the extension. similar to runtime.connect, but only sends a single request with an optional response. The extension.onRequest event is fired in each page of the extension .

Parameters

  • extensionId string optional The extension ID of the elongation you want to connect to. If omitted, default option is your own elongation .
  • request any
  • recall function optional

    Pending

    The callback parameter looks like : (response: any) => void

    • response any The JSON response object sent by the coach of the request. If an error occurs while connecting to the propagation, the recall will be called with no arguments and runtime.lastError will be set to the error message .

Returns

  • Promise

    Pending

    This only returns a Promise when the callback parameter is not specified, and with MV3+. The character inside the Promise is the like as the 1st argumentation to callback .

chrome.extension.setUpdateUrlData(
  data:

string

,
)

Read more: What Is My IP? Quickly See My IP Address and My IP Location

Sets the value of the ap CGI parameter used in the annex ‘s update URL. This respect is ignored for extensions that are hosted in the Chrome Extension Gallery .

Parameters

  • string
Source : https://flickroom.net
Category : Web Browsers

Related Posts

Conversion of Prefix to Postfix expression – Flickroom

Google Issues Warning For 2 Billion Chrome Users

Conversion of Prefix to Postfix expression – Flickroom

Hidden Google: 10 Fun Search Tricks

Conversion of Prefix to Postfix expression – Flickroom

Here are the best new Safari extensions to download for iOS 15 and iPadOS 15 (Updated)

Conversion of Prefix to Postfix expression – Flickroom

How to Download Apple Safari on Computer and PC?

Conversion of Prefix to Postfix expression – Flickroom

Internet Download Manager for Chrome Extension 2022 (IDM)

Conversion of Prefix to Postfix expression – Flickroom

Google’s Help Documents Aren’t Always Up To Date

No Result
View All Result
Flickroom

Knowledge of science, technology and life

Follow Us

NEWS

  • Niobi
  • 2 Verified Hotel Reviews of Savis Hotel | https://flickroom.net
  • What is the WordPress .htaccess File?
  • How to install VPSSIM – A lightweight but simple control panel right on SSH
No Result
View All Result
  • Home

© 2021 Flickroom.net