Can i copy content from webpage and fetch it in chrome extension. I am using-
chrome.tabs.executeScript( { code: "window.getSelection().toString();" })
I declared scripting in manifest.json but it giving me error Uncaught TypeError: chrome.tabs.executeScript is not a function
Is there other way to do this OR how i can do this using window.getSelection().toString();
chrome.tabs.executeScript( {
code: "window.getSelection().toString();"
})
I declared scripting in manifest.json but it giving me error Uncaught TypeError: chrome.tabs.executeScript is not a function`