Opera Speed Dial API
Contents
Description | Permissions | Learn more |
---|---|---|
Use the opr.speeddial module to access a Speed Dial entry and update its properties | speeddial | Speed Dial Extensions |
Types
speeddial
(object)
Properties
title (string)
Title of the Speed Dial entry.
url (string)
URL to which the Speed Dial entry points to.
Methods
get
opr.speeddial.get(function callback)
Retrieves details about the extension’s Speed Dial entry.
Parameters
callback (function)
Callback
The callback
parameter would return an object with the Speed Dial’s title and URL.
For example:
opr.speeddial.get(function(result) {
console.log(
'The URL is: ' + result.url +
' and the title is ' + result.title
);
});
update
opr.speeddial.update(object SpeedDial)
Modifies the properties of the Speed Dial entry, namely its URL and title.
Parameters
SpeedDial (object)
url (optional string)
The URL the Speed Dial entry points to.
title (optional string)
The title of the Speed Dial.
For example:
opr.speeddial.update({
url: 'http://dev.opera.com',
title: 'Dev Opera'
});