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


This question already has an answer here:


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

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


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

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

"permissions": [

Need Your Help

Unknown Publisher when I install application I wrote? 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?