diff --git a/.env b/.env index d4642daf..3cd5c69a 100644 --- a/.env +++ b/.env @@ -7,21 +7,13 @@ REACT_APP_VERSION=1.8.5 REACT_APP_HOMEPAGE=https://github.com/fishjar/kiss-translator REACT_APP_OPTIONSPAGE=https://fishjar.github.io/kiss-translator/options.html -REACT_APP_OPTIONSPAGE2=https://kiss-translator.rayjar.com/options REACT_APP_OPTIONSPAGE_DEV=http://localhost:3000/options.html REACT_APP_LOGOURL=https://fishjar.github.io/kiss-translator/images/logo192.png -REACT_APP_LOGOURL2=https://kiss-translator.rayjar.com/images/logo192.png REACT_APP_RULESURL=https://fishjar.github.io/kiss-rules/kiss-rules.json REACT_APP_RULESURL_ON=https://fishjar.github.io/kiss-rules/kiss-rules-on.json REACT_APP_RULESURL_OFF=https://fishjar.github.io/kiss-rules/kiss-rules-off.json -REACT_APP_VERSIONFILE=https://fishjar.github.io/kiss-translator/version.txt -REACT_APP_VERSIONFILE2=https://kiss-translator.rayjar.com/version.txt - REACT_APP_USERSCRIPT_DOWNLOADURL=https://fishjar.github.io/kiss-translator/kiss-translator.user.js -REACT_APP_USERSCRIPT_DOWNLOADURL2=https://kiss-translator.rayjar.com/kiss-translator.user.js - REACT_APP_USERSCRIPT_IOS_DOWNLOADURL=https://fishjar.github.io/kiss-translator/kiss-translator-ios-safari.user.js -REACT_APP_USERSCRIPT_IOS_DOWNLOADURL2=https://kiss-translator.rayjar.com/kiss-translator-ios-safari.user.js diff --git a/src/common.js b/src/common.js index 1d975666..a2f0ebe9 100644 --- a/src/common.js +++ b/src/common.js @@ -213,8 +213,7 @@ export async function run(isUserscript = false) { if ( isUserscript && (href.includes(process.env.REACT_APP_OPTIONSPAGE_DEV) || - href.includes(process.env.REACT_APP_OPTIONSPAGE) || - href.includes(process.env.REACT_APP_OPTIONSPAGE2)) + href.includes(process.env.REACT_APP_OPTIONSPAGE)) ) { runSettingPage(); return; diff --git a/src/index.js b/src/index.js index ab730149..ade9accf 100644 --- a/src/index.js +++ b/src/index.js @@ -36,19 +36,10 @@ function App() { Install/Update Userscript for Tampermonkey/Violentmonkey - {/* - Install/Update Userscript for Tampermonkey/Violentmonkey 2 - */} Install/Update Userscript for iOS Safari - {/* - Install/Update Userscript for iOS Safari 2 - */} Open Options Page - {/* - Open Options Page 2 - */} {loading ? ( diff --git a/src/views/Options/index.js b/src/views/Options/index.js index 78c15348..c096b9ff 100644 --- a/src/views/Options/index.js +++ b/src/views/Options/index.js @@ -81,15 +81,9 @@ export default function Options() { Install/Update Userscript for Tampermonkey/Violentmonkey - {/* - Install/Update Userscript for Tampermonkey/Violentmonkey 2 - */} Install/Update Userscript for iOS Safari - {/* - Install/Update Userscript for iOS Safari 2 - */} );