-
Notifications
You must be signed in to change notification settings - Fork 16
Feature firefox #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feature firefox #48
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d8a852b
Updating manifest in order to support Firefox WebExtensions
wistcc 15dbfe3
Changing chrome.tabs.executeScriptAsync to chrome.tabs.executeScript …
wistcc 809ddaf
Showing icon on Firefox web extension
wistcc 50f1344
Creating new builds configurations for Firefox
wistcc 0acf13c
Fixing lint errors
wistcc c232aa9
Changing chrome.storage.async to chrome.storage.local because firefox…
wistcc 92f65c9
content_security_policy is more strict for FireFox
be7ded4
This has to be HTTPS too
d45ce69
Merge pull request #1 from martynchamberlin/MC/firefox-https
wistcc 07d582f
Updating the readme
wistcc 395cb48
Tidy up Webpack files
7693eb4
Fixing typo
wistcc 607e02f
Merge pull request #2 from martynchamberlin/MC/cleanup-webpack
wistcc 39b51ff
Refactor everything the right way
51b2fd1
Merge pull request #3 from martynchamberlin/MC/cleanup-webpack
wistcc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ npm-debug.log | |
|
||
build/ | ||
dev/ | ||
buildFirefox/ | ||
devFirefox/ | ||
|
||
*.zip | ||
*.crx | ||
|
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"version": "0.0.8", | ||
"name": "Chess Browser Extension", | ||
"manifest_version": 2, | ||
"description": "Customize your Chess.com Experience", | ||
"browser_action": { | ||
"default_title": "Chess.com Browser Extension", | ||
"default_popup": "popup.html", | ||
"default_icon": { | ||
"48": "img/icon-48.png" | ||
} | ||
}, | ||
"icons": { | ||
"128": "img/icon-128.png" | ||
}, | ||
"applications": { | ||
"gecko": { | ||
"id": "[email protected]" | ||
} | ||
}, | ||
"web_accessible_resources": [ | ||
"inject.html", | ||
"img/*", | ||
"fonts/*", | ||
"content.js" | ||
], | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"https://www.chess.com/*" | ||
], | ||
"js": [ | ||
"inject.js" | ||
], | ||
"all_frames": true | ||
} | ||
], | ||
"background": { | ||
"page": "background.html" | ||
}, | ||
"permissions": [ | ||
"contextMenus", | ||
"management", | ||
"tabs", | ||
"storage", | ||
"https://www.chess.com/*" | ||
], | ||
"content_security_policy": "default-src 'self'; script-src 'self' https://localhost:3000 'unsafe-eval'; object-src 'self'; connect-src https://localhost:3000 https://www.chess.com; style-src 'self' blob:; img-src 'self' https://images.chesscomfiles.com data:; font-src 'self' data:;" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"version": "0.0.8", | ||
"name": "Chess Browser Extension", | ||
"manifest_version": 2, | ||
"description": "Customize your Chess.com Experience", | ||
"browser_action": { | ||
"default_title": "Chess.com Browser Extension", | ||
"default_popup": "popup.html", | ||
"default_icon": { | ||
"48": "img/icon-48.png" | ||
} | ||
}, | ||
"icons": { | ||
"16": "img/icon-16.png", | ||
"48": "img/icon-48.png", | ||
"128": "img/icon-128.png" | ||
}, | ||
"applications": { | ||
"gecko": { | ||
"id": "[email protected]" | ||
} | ||
}, | ||
"web_accessible_resources": [ | ||
"inject.html", | ||
"content.js" | ||
], | ||
"content_scripts": [ | ||
{ | ||
"matches": ["https://www.chess.com/*"], | ||
"js": ["inject.js"], | ||
"all_frames": true | ||
} | ||
], | ||
"background": { | ||
"page": "background.html" | ||
}, | ||
"permissions": [ "contextMenus", "tabs", "storage", "https://www.chess.com/*" ], | ||
"content_security_policy": "default-src 'self'; script-src 'self'; connect-src https://www.chess.com; style-src * 'unsafe-inline'; img-src 'self' https://images.chesscomfiles.com data:; font-src 'self' data:;" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const tasks = require('./tasks'); | ||
|
||
tasks.replaceWebpack(); | ||
console.log('[Copy assets]'); | ||
console.log('-'.repeat(80)); | ||
tasks.copyAssets('buildFirefox'); | ||
|
||
console.log('[Webpack Build]'); | ||
console.log('-'.repeat(80)); | ||
exec('webpack --config webpack/prodFirefox.config.js --progress --profile --colors'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* eslint import/no-extraneous-dependencies: 0 */ | ||
const tasks = require('./tasks'); | ||
const createWebpackServer = require('webpack-httpolyglot-server'); | ||
const devConfigFirefox = require('../webpack/devFirefox.config'); | ||
|
||
tasks.replaceWebpack(); | ||
console.log('[Copy assets]'); | ||
console.log('-'.repeat(80)); | ||
tasks.copyAssets('devFirefox'); | ||
|
||
console.log('[Webpack Dev]'); | ||
console.log('-'.repeat(80)); | ||
console.log('If you\'re developing Inject page,'); | ||
console.log('please allow `https://localhost:3000` connections in Firefox,'); | ||
console.log('and load unpacked extensions with `./devFirefox` folder. (see https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Your_first_WebExtension)\n'); | ||
createWebpackServer(devConfigFirefox, { | ||
host: 'localhost', | ||
port: 3000, | ||
protocol: 'https' | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this. You've earned it!