diff --git a/src/common/personalUrls.js b/src/common/personalUrls.js index 1ae3510..1e14ce0 100644 --- a/src/common/personalUrls.js +++ b/src/common/personalUrls.js @@ -1,6 +1,6 @@ import browserInfo from "browser-info"; const browserName = browserInfo().name; -const suffix = browserName === "Chrome" ? "fc" : browserName === "Opera" ? "fo" : ""; +const suffix = browserName === "Chrome" ? "fc" : ""; export const email = `sienori.firefox+st${suffix}@gmail.com`; export const paypalLink = `https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&no_shipping=1&business=sienori.firefox@gmail.com&item_name=Simple Translate for ${browserName} - Donation`; diff --git a/src/manifest-opera.json b/src/manifest-opera.json deleted file mode 100644 index ab4bbcc..0000000 --- a/src/manifest-opera.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "manifest_version": 2, - "version": "2.0.1", - - "name": "__MSG_extName__", - "description": "__MSG_extDescription__", - "default_locale": "en", - - "permissions": ["", "storage", "contextMenus"], - - "options_ui": { - "page": "options/index.html", - "open_in_tab": true - }, - - "icons": { - "512": "icons/512.png", - "128": "icons/128.png", - "64": "icons/64.png", - "48": "icons/48.png", - "32": "icons/32.png" - }, - - "background": { - "scripts": ["background/background.js"] - }, - - "browser_action": { - "default_icon": { - "512": "icons/512.png", - "128": "icons/128.png", - "64": "icons/64.png", - "48": "icons/48.png", - "38": "icons/38.png", - "32": "icons/32.png", - "19": "icons/19.png", - "16": "icons/16.png" - }, - "default_popup": "popup/index.html" - }, - - "content_scripts": [ - { - "all_frames": true, - "matches": ["http://*/*", "https://*/*", ""], - "js": ["content/content.js"] - } - ], - - "web_accessible_resources": ["icons/512.png"], - - "commands": { - "_execute_browser_action": { - "description": "__MSG_openPopupDescription__", - "suggested_key": { - "default": "Alt+Shift+T" - } - }, - "translateSelectedText": { - "description": "__MSG_translateTextMenu__", - "suggested_key": { - "default": "Alt+T" - } - }, - "translatePage": { - "description": "__MSG_translatePageMenu__" - } - } -} diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 99af092..52a4e25 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -7,7 +7,6 @@ const { getHTMLPlugins, getOutput, getCopyPlugins, - getOperaCopyPlugins, getFirefoxCopyPlugins, getEntry } = require("./webpack.utils"); @@ -90,15 +89,6 @@ module.exports = [ ...getCopyPlugins("chrome", config.devDirectory, config.chromePath) ] }, - { - ...generalConfig, - entry: getEntry(config.operaPath), - output: getOutput("opera", config.devDirectory), - plugins: [ - ...getHTMLPlugins("opera", config.devDirectory, config.operaPath), - ...getOperaCopyPlugins("opera", config.devDirectory, config.operaPath) - ] - }, { ...generalConfig, entry: getEntry(config.firefoxPath), diff --git a/webpack.config.dist.js b/webpack.config.dist.js index 92bd547..773c4d4 100644 --- a/webpack.config.dist.js +++ b/webpack.config.dist.js @@ -10,7 +10,6 @@ const { getOutput, getCopyPlugins, getZipPlugin, - getOperaCopyPlugins, getFirefoxCopyPlugins, getEntry } = require("./webpack.utils"); @@ -99,18 +98,6 @@ module.exports = [ getZipPlugin(`${config.extName}-for-chrome-${extVersion}`, config.distDirectory) ] }, - { - ...generalConfig, - output: getOutput("opera", config.tempDirectory), - entry: getEntry(config.operaPath), - plugins: [ - new CleanWebpackPlugin(["dist", "temp"]), - new UglifyJsPlugin(), - ...getHTMLPlugins("opera", config.tempDirectory, config.operaPath), - ...getOperaCopyPlugins("opera", config.tempDirectory, config.operaPath), - getZipPlugin(`${config.extName}-for-opera-${extVersion}`, config.distDirectory) - ] - }, { ...generalConfig, entry: getEntry(config.firefoxPath), diff --git a/webpack.utils.js b/webpack.utils.js index 03b09aa..b346f84 100644 --- a/webpack.utils.js +++ b/webpack.utils.js @@ -56,23 +56,6 @@ const getCopyPlugins = (browserDir, outputDir = "dev", sourceDir = "src") => [ ]) ]; -const getOperaCopyPlugins = (browserDir, outputDir = "dev", sourceDir = "src") => [ - new CopyWebpackPlugin([ - { - from: `${sourceDir}/icons`, - to: path.resolve(__dirname, `${outputDir}/${browserDir}/icons`) - }, - { - from: `${sourceDir}/_locales`, - to: path.resolve(__dirname, `${outputDir}/${browserDir}/_locales`) - }, - { - from: `${sourceDir}/manifest-opera.json`, - to: path.resolve(__dirname, `${outputDir}/${browserDir}/manifest.json`) - } - ]) -]; - const getFirefoxCopyPlugins = (browserDir, outputDir = "dev", sourceDir = "src") => [ new CopyWebpackPlugin([ { @@ -110,7 +93,6 @@ module.exports = { getHTMLPlugins, getOutput, getCopyPlugins, - getOperaCopyPlugins, getFirefoxCopyPlugins, getZipPlugin, getEntry