Skip to content

Commit

Permalink
content script dom element injection
Browse files Browse the repository at this point in the history
  • Loading branch information
sarinmsari committed Jul 8, 2023
1 parent 7fd9bb3 commit f2b380f
Show file tree
Hide file tree
Showing 16 changed files with 67,037 additions and 2,894 deletions.
2,870 changes: 7 additions & 2,863 deletions dist/background.js

Large diffs are not rendered by default.

33,510 changes: 33,510 additions & 0 deletions dist/content.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"action": {
"default_popup": "popup.html"
},
"options_page": "./options.html",
"content_scripts": [
{
"matches": ["https://*.google.com/*"],
"js": ["content.js"]
}
],
"icons": {
"16": "icon.png",
"32": "icon.png",
Expand Down
4 changes: 2 additions & 2 deletions src/content.html → dist/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<script defer src="options.js"></script></head>
<body>
<div id="content-target"></div>
<div id="options-target"></div>
</body>
</html>
Loading

0 comments on commit f2b380f

Please sign in to comment.