I tried the solution with the
chrome.scripting.executeScript
part to get some data - which works great, but is there also a solution to write to the local storage of a tab?