document.querySelector("button").onclick = run;
$('h3').siblings('p').wrap('<div class="content"></div>');
$('h3').nextUntil('h3').wrap('<div class="content"></div>');
$('h3').each(function() {
$(this).nextUntil('h3').wrapAll('<div class="content"></div>');
});
downloadItem = chrome.contextMenus.create
(
{
id: "utilsExtDownloadMenuItem",
parentId: rootItem,
title: "Загрузить...",
contexts: ["all"],
onclick: downloadContent
},
function(){}
);
........
function downloadContent(info, tab)
{
........
}