Uzyskaj dostęp do elementów DOM poprzez rozszerzenie chrome

Próbuję uzyskać dostęp do niektórych elementów DOM ze strony internetowej:

<html>
  <button id="mybutton">click me</button>
</html>

Chcę uzyskać dostęp do innerHTML („kliknij mnie”) przez rozszerzenie chrome:

chrome.browserAction.onClicked.addListener(function(tab) {
    var button = document.getElementById("mybutton");
    if(button == null){
        alert("null!");
    }
    else{
        alert("found!");
    }
});

Kiedy klikam rozszerzenie, okienko wyskakujące mówi: „null”. Mój manifest.json:

{
    "name": "HackExtension",
    "description": "Hack all the things",
    "version": "2.0",
    "permissions": [
    "tabs", "http://*/*"
    ],
    "background": {
    "scripts": ["contentscript.js"],
    "persistent": false
    },
    "browser_action": {
    "scripts": ["contentscript.js"],
    "persistent": false
    },
    "manifest_version": 2
}

questionAnswers(1)

yourAnswerToTheQuestion