diff --git a/src/pages/Popup/HomePage.tsx b/src/pages/Popup/HomePage.tsx
deleted file mode 100644
index 07fcd0c..0000000
--- a/src/pages/Popup/HomePage.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-import React, { useState, useEffect } from 'react'
-import { Box, Flex, Button } from 'theme-ui'
-import LocationInput from './LocationInput'
-import ConfigurationSelect from './ConfigurationSelect'
-import IPData from './IPData'
-import getIP from '../../utils/getIP'
-import { Power } from 'react-feather'
-
-const LocationPage = () => {
- const [on, setOn] = useState(true)
-
- // useEffect(() => {
- // chrome.storage.sync.get(['configuration', 'ipData'], (result) => {
- // result.configuration && setConfiguration(result.configuration)
- // if (result.ipData) {
- // setIP(result.ipData)
- // } else {
- // Promise.resolve(getIP()).then((ipData) => setIP(ipData))
- // }
- // })
- // }, [])
-
- return (
-
-
-
-
-
- )
-}
-
-export default LocationPage
diff --git a/src/pages/Popup/Navbar.js b/src/pages/Popup/Navbar.js
deleted file mode 100644
index c0a7102..0000000
--- a/src/pages/Popup/Navbar.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import * as React from 'react'
-import Logo from '../../assets/img/logo.svg'
-import Link from '../../assets/img/link.svg'
-
-const Navbar = () => (
-
-)
-
-export default Navbar
diff --git a/src/pages/Popup/Popup.tsx b/src/pages/Popup/Popup.tsx
index d4ad874..81d0966 100644
--- a/src/pages/Popup/Popup.tsx
+++ b/src/pages/Popup/Popup.tsx
@@ -1,21 +1,20 @@
import React, { useState } from 'react'
-import { ThemeProvider, Flex } from 'theme-ui'
+import { ThemeProvider, Flex, Box } from 'theme-ui'
import { theme } from '../../theme'
-import { Home, MapPin, Globe, Command, List, ExternalLink } from 'react-feather'
+import { MapPin, Globe, ExternalLink } from 'react-feather'
import TabItem from './TabItem'
import LocationPage from './LocationPage'
import UserAgentPage from './UserAgentPage'
-import WhitelistPage from './WhitelistPage'
const Popup = () => {
- const [tab, setTab] = useState('whitelist')
+ const [tab, setTab] = useState('location')
return (
{
flexDirection: 'column',
}}
>
- {/* setTab(0)} /> */}
{
active={tab === 'useragent'}
onClick={() => setTab('useragent')}
/>
- {/* setTab(3)} /> */}
- setTab('whitelist')}
- />
window.open('https://vytal.io')}
/>
-
-
-
+
+
+
+
+ Current tab won't be fully spoofed until after reload
+
+
)
diff --git a/src/pages/Popup/WhitelistPage.tsx b/src/pages/Popup/WhitelistPage.tsx
deleted file mode 100644
index cf06f13..0000000
--- a/src/pages/Popup/WhitelistPage.tsx
+++ /dev/null
@@ -1,89 +0,0 @@
-import React, { useState, useEffect } from 'react'
-import { Box, Input, Flex, Button, Close } from 'theme-ui'
-
-const WhitelistPage = ({ tab }: any) => {
- const [currentUrl, setCurrentUrl] = useState('')
- const [whitelist, setWhitelist] = useState([])
-
- const getCurrentUrl = async () => {
- const queryOptions = { active: true, lastFocusedWindow: true }
- const [tab] = await chrome.tabs.query(queryOptions)
- if (tab.url) {
- const domain = new URL(tab.url)
- const hostname = domain.hostname.replace('www.', '')
- if (hostname.includes('.')) {
- setCurrentUrl(hostname)
- }
- }
- }
-
- useEffect(() => {
- getCurrentUrl()
- chrome.storage.sync.get(['whitelist'], (result) => {
- result.whitelist && setWhitelist(result.whitelist)
- })
- }, [])
-
- useEffect(() => {
- chrome.storage.sync.set({ whitelist })
- }, [whitelist])
-
- const handleSubmit = (e: any) => {
- e.preventDefault()
- !whitelist.includes(e.target.url.value) &&
- setWhitelist((prevWhitelist) => [...prevWhitelist, e.target.url.value])
- // detachDebugger()
- }
-
- return (
-
- Whitelist
- handleSubmit(e)}>
-
-
-
- {whitelist.length ? (
-
- {whitelist.map((element, index) => {
- return (
-
- {element}{' '}
-
- setWhitelist(whitelist.filter((item) => item !== element))
- }
- />
-
- )
- })}
-
- ) : null}
-
- )
-}
-
-export default WhitelistPage
diff --git a/src/utils/userAgents2.ts b/src/utils/userAgents2.ts
deleted file mode 100644
index 7b61387..0000000
--- a/src/utils/userAgents2.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-const userAgents = [
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36',
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36',
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36',
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36',
- 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 Edg/100.0.1185.50',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 Edg/100.0.1185.44',
- 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32',
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36',
-]
-
-export default userAgents