Chrome extension permission for “about:blank” page
问题 My chrome extension is not using content_scripts because I do not want to inject the code into every page. Instead, when the user clicks on the button a popup window opens and injects code into the page. So, in the manifest.json there is a permissions block: "permissions": [ "activeTab" ] And in the popup.js there is this code: chrome.windows.getCurrent( function(win) { chrome.tabs.query({ 'windowId': win.id, 'active': true }, function(tabArray) { // inject css & js only on initial click