How to get session data for a specific page via chrome extension?

<>

This question already has an answer here:

Answers


Use chrome.tabs.executeScript() to execute code in a tab like this:

chrome.tabs.executeScript(null, {file: "content_script.js"});

content_script.js:

var sessionData = document.getElementById('sessionData').value;
console.log('session data is '+sessionData);
alert(sessionData.lang);

NOTE : You need activeTab permissions to execute code in an active tab

"permissions": [
  "activeTab"
]

Need Your Help

Unknown Publisher when I install application I wrote?

vb.net visual-studio installation

When I install my application on my computer I get a warning that the publisher is not verified. How can I change that? or do I need to worry about that when I distribute my application?