Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmen committed Oct 3, 2023
1 parent 482d1fa commit d4e84f8
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 2,892 deletions.
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Dmitry Menovschikov

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: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
Just allows to turn on/off your extensions. Native es6 without third-party libs.
# Simple extensions manager for Google Chrome

Just allows to turn on/off your extensions. Vanilla JavaScript without third-party libs.

<table>
<tr>
<td><img src="./images/screenshots/light.webp" alt="Light theme screenshot"/></td>
<td><img src="./images/screenshots/dark.webp" alt="Dark theme screenshot" /></td>
</tr>
</table>

## Installation

1. Clone the repository
2. Open Google Chrome. Go to chrome://extensions/
3. Enable "Developer mode"
4. Click "Load unpacked" (just pick up repo folder)
5. Disable "Developer mode"
6. Pin extension to the Chrome toolbar
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added images/screenshots/dark.webp
Binary file not shown.
Binary file added images/screenshots/light.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<title>Simple extenstion manager</title>
<title>Simple extenstions manager</title>
<link rel="stylesheet" href="styles.css">
<script src="scripts.js"></script>
</head>
Expand Down
10 changes: 5 additions & 5 deletions src/manifest.json → manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "Simple extensions manager",
"short_name": "Extensions manager",
"description": "Just allows you to turn on/off your extensions",
"version": "0.0.2",
"version": "0.1.0",
"icons": {
"16": "images/icon-16x16.png",
"48": "images/icon-48x48.png",
"128": "images/icon-48x48.png"
},
"browser_action": {
"action": {
"default_popup": "index.html",
"default_icon": "images/icon-32x32.png",
"default_title": "Extensions manager",
"default_popup": "index.html"
"default_title": "Extensions manager"
},
"permissions": [
"management"
Expand Down
13 changes: 0 additions & 13 deletions package.json

This file was deleted.

File renamed without changes.
39 changes: 27 additions & 12 deletions src/styles.css → styles.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
:root {
--base-text-color: #222;
--base-text-color: #495057;
--base-bg-color: #fff;
--text-active-color: #4F8A10;
--text-error-color: rgb(148, 75, 75);
--active-bg-color: rgba(0, 0, 0, .02);
--text-active-color: #3b82f6;
--text-error-color: #e24c4c;
--active-bg-color: #fafafa;
}

*,
*:before,
*:after {
@media (prefers-color-scheme: dark) {
:root {
--base-text-color: rgba(255, 255, 255, 0.87);
--base-bg-color: #040d19;
--text-active-color: #93c5fd;
--text-error-color: #e24c4c;
--active-bg-color: #1d2530;
}
}

* {
box-sizing: border-box;
}

body {
font: 14px/1.15 Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
color: var(--base-text-color);
background: var(--base-bg-color);
background-color: var(--base-bg-color);
margin: 0;
}

.wrapper {
width: 210px;
width: 230px;
max-width: 100%;
padding: 10px;
max-height: 450px;
overflow: auto;
}

/* Extensions list */

.extensions {
display: flex;
flex-wrap: wrap;
flex-direction: column;
list-style: none;
margin: -10px;
padding: 0;
Expand All @@ -40,6 +52,8 @@ body {
width: 100%;
padding: 5px;
cursor: pointer;
align-items: center;
gap: 5px;
}

.extensions__item:hover {
Expand All @@ -58,7 +72,7 @@ body {
width: 16px;
height: auto;
border: 0;
margin-right: 5px;
object-fit: contain;
filter: grayscale(1);
}

Expand All @@ -72,6 +86,7 @@ body {

.note {
font-weight: bold;
padding: 5px 0;
}

.note--error {
Expand Down
Loading

0 comments on commit d4e84f8

Please sign in to comment.