I'm at the moment looking for a class or something that would make it possible to synchronously communicate with the Javascript of a tab.
It's a pain to dynamically manipulate a website with the default API. It would be so great if we could do something like this:
var tabs = require('sdk/tabs');
var exampleElement = tabs.activeTab.document.getElementById('exampleId');
console.log(exampleElement.innerHTML);
exampleElement.style.width = '200px';
So is there a class/lib that allows me to do this or can you tell me how I could make something like that possible? I'm really new to this...