Skip to content

Instantly share code, notes, and snippets.

@gilbertoquinteroA
Created July 23, 2018 07:18
Show Gist options
  • Save gilbertoquinteroA/882080787d0ecdbec95a08b3fb9d4758 to your computer and use it in GitHub Desktop.
Save gilbertoquinteroA/882080787d0ecdbec95a08b3fb9d4758 to your computer and use it in GitHub Desktop.
function onCreated(node) {
console.log(node);
console.log("done");
}
var createBookmark = browser.bookmarks.create({
title: "GOOGLE URL",
url: "https://www.google.com/"
});
createBookmark.then(onCreated);
<!DOCTYPE html>
<html>
<head>
<title>test</title>
</head>
<body>
</body>
</html>
{
"name": "add site random",
"version": "1.0",
"description": "this is my first extension in production",
"manifest_version": 2,
"background": {
"scripts": ["app.js"]
},
"permissions": [
"notifications",
"activeTab"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment