Skip to content

Commit

Permalink
update something to publish to chrome store
Browse files Browse the repository at this point in the history
  • Loading branch information
conlacda committed May 6, 2024
1 parent 98764d2 commit 433c9e2
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 14 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ Click one of the ![](images/bug.svg) buttons you see above and a custom test pag
* Upload to Chrome store, firefox
* Write tests to make sure it works
* Follow [best practices to claim badge](https://support.google.com/chrome_webstore/answer/1050673?hl=en&visit_id=638494791511429235-3837272215&p=cws_badges&rd=1#cws_badges&zippy=%2Cunderstand-chrome-web-store-badges)
* Add badge when hover on status
* Add dropdown list at the custom test page
* Add firefox extension

## Reference
* [Chrome extension samples](https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/api-samples/alarms)
* [Chrome webstore documentation](https://developer.chrome.com/docs/webstore/)

## Develop
### .env
Expand Down
Binary file added browser-extension/chrome-extension.zip
Binary file not shown.
21 changes: 21 additions & 0 deletions browser-extension/chrome-extension/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 conlacda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
20 changes: 16 additions & 4 deletions browser-extension/chrome-extension/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
<html>
<body>
<h1>Useful atcoder</h1>
<script src="popup/background.js"></script>
</body>
<style>
.container img,
.container h3 {
display: inline-block;
vertical-align: middle;
}
</style>

<body>
<div class="container" style="width: 130px;">
<img src="icons/icon-16.png" />
<h3>Useful atcoder</h3>
</div>
<script src="popup/popup.js"></script>
</body>

</html>
11 changes: 2 additions & 9 deletions browser-extension/chrome-extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "Useful atcoder",
"description": "Useful extension for atcoder",
"version": "1.0",
"description": "An useful extension for atcoder",
"version": "0.0.1",
"action": {
"default_popup": "index.html",
"default_icon": {
Expand All @@ -12,9 +12,7 @@
"128": "icons/icon-128.png"
}
},
"permissions": [],
"content_scripts": [
// Common
{
"js": [
"scripts/shared/jquery_.js",
Expand All @@ -25,7 +23,6 @@
"*://atcoder.jp/*"
]
},
// Add test cases to problem statement
{
"js": [
"scripts/testcase/main.js"
Expand All @@ -34,7 +31,6 @@
"*://atcoder.jp/contests/*/tasks/a*"
]
},
// Mark solved problems in task list
{
"js": [
"scripts/mark-solved-problem/const.js",
Expand All @@ -46,7 +42,6 @@
"*://atcoder.jp/contests/*/tasks/"
]
},
// Run on the submission-details page
{
"js": [
"scripts/submission-details/problem-info.js",
Expand All @@ -61,7 +56,6 @@
"*://atcoder.jp/contests/*/submissions/me*"
]
},
// Debug on the custom test page
{
"js": [
"scripts/custom-test/custom-test.js"
Expand All @@ -70,7 +64,6 @@
"*://atcoder.jp/contests/*/custom_test?submissionId=*&testcase=*&problem=*"
]
},
// Rating estimator during contest
{
"js": [
"scripts/rating-estimator/main.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
console.log("calculate rating");

0 comments on commit 433c9e2

Please sign in to comment.