Erro de política de segurança de conteúdo na criação de extensões do Google Chrome

Estou fazendo uma extensão do Chrome que abrirá todos os links em uma página em novas guias.

Aqui estão meus arquivos de código:

manifest.json

{
  "name": "A browser action which changes its icon when clicked.",
  "version": "1.1",
    "permissions": [
    "tabs", "<all_urls>"
  ],
 "browser_action": {     
    "default_title": "links",      // optional; shown in tooltip
    "default_popup": "popup.html"        // optional
  },
 "content_scripts": [
    {
    "matches": [ "<all_urls>" ],
      "js": ["background.js"]
    }
  ],
  "manifest_version": 2
}

popup.html

<!doctype html>
<html>
  <head>
    <title>My Awesome Popup!</title>
    <script>
function getPageandSelectedTextIndex() 
  { 
    chrome.tabs.getSelected(null, function(tab) { 
    chrome.tabs.sendRequest(tab.id, {greeting: "hello"}, function (response) 
    { 
        console.log(response.farewell); 
    }); 
   }); 
        } 
chrome.browserAction.onClicked.addListener(function(tab) { 
        getPageandSelectedTextIndex(); 
});
         </script>
  </head>
  <body>
    <button onclick="getPageandSelectedTextIndex()">
      </button>
  </body>
</html>

background.js

chrome.extension.onRequest.addListener(
  function(request, sender, sendResponse) {
    console.log(sender.tab ?
                "from a content script:" + sender.tab.url :
                "from the extension");
    if (request.greeting == "hello")
    updateIcon();  

});
function updateIcon() {
  var allLinks = document.links;
  for (var i=0; i<allLinks.length; i++) {
    alllinks[i].style.backgroundColor='#ffff00';

}
}

Inicialmente eu queria destacar todos os links da página ou marcá-los de alguma forma; mas recebo o erro "Recusou-se a executar script in-line devido à Política de segurança de conteúdo".

Quando pressiono o botão dentro do popup, recebo este erro:Refused to execute inline event handler because of Content-Security-Policy.

Por favor, ajude-me a corrigir esses erros, para que eu possa abrir todos os links em novas guias usando minha extensão do Google Chrome.

questionAnswers(1)

yourAnswerToTheQuestion