Answers for "content js"

3

google chrome extensions content scripts matches

in your manifest.json:

 "content_scripts": [
   {
     "matches": ["http://*.nytimes.com/*"],
     "css": ["myStyles.css"],
     "js": ["contentScript.js"]
   }
 ],
Posted by: Guest on August-13-2020
0

set text of dom element

document.getElementById("myBtn").textContent = 'Hello World';
Posted by: Guest on March-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language