ブックマークをコンソールに出力する chrome 拡張機能があります。しかし、出力する代わりに、コンテンツ スクリプトを使用して、これらすべてのブックマークをリモート サーバーに送信したいと考えています。
これどうやってするの ?manifest.json ファイルに含める特別なアクセス許可はありますか?
function getBookmarks()
{
........ (*get the bookmarks and store them in an array BookArray)
var xhr = new XMLHttpRequest();
xhr.open("GET", "server_domain", true);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
(*send the entire array to the server *)
}
}
xhr.send();