@@ -37,51 +34,12 @@ export default function ContentApp() {
-
-
-
+
-
-
+
-
-
+
- This is a content script running React, TypeScript, and
- Tailwind.css.
+ Saved: {text}
-
- Learn more about creating cross-browser extensions by{' '}
-
- .
-
-
-
-
- )
+ );
}
diff --git a/apps/an-extension/content/content.tsx b/apps/an-extension/content/content.tsx
index 01569724..d9e5a4ed 100644
--- a/apps/an-extension/content/content.tsx
+++ b/apps/an-extension/content/content.tsx
@@ -1,4 +1,3 @@
-import React from 'react'
import ReactDOM from 'react-dom/client'
import ContentApp from './ContentApp'
import('./base.css')
@@ -7,13 +6,10 @@ import('./content.css')
setTimeout(initial, 1000)
function initial() {
- // Create a new div element and append it to the document's body
const rootDiv = document.createElement('div')
rootDiv.id = 'extension-root'
document.body.appendChild(rootDiv)
- // Use `createRoot` to create a root, then render the component
- // Note that `createRoot` takes the container DOM node, not the React element
const root = ReactDOM.createRoot(rootDiv)
root.render()
}
diff --git a/apps/an-extension/index.html b/apps/an-extension/index.html
new file mode 100644
index 00000000..bb4c07c7
--- /dev/null
+++ b/apps/an-extension/index.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+ God Bless Vanilla JavaScript!!!
+
+
+