addContentScriptsAPI for Webviews Dev channel snippet
var webview = document.querySelector('webview');
webview.addContentScripts([
{
"name": "myAwesomeRule",
// Specifies which pages this content script will be injected into.
"matches": ["http://somesite.com"],
// CSS files to be injected into matching pages.
"css": ["mystyles.css"],
// JS files to be injected into matching pages.
"js": ["jquery.js", "myscript.js"]
}
]);