Skip to content

Commit e9785e5

Browse files
author
xupea
committed
First Commit
0 parents  commit e9785e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+6657
-0
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
# Matches multiple files with brace expansion notation
12+
# Set default charset
13+
[*.{js,jsx,ts,tsx,md}]
14+
charset = utf-8
15+
indent_style = space
16+
indent_size = 2
17+
tab_width = 2
18+
end_of_line = lf
19+
insert_final_newline = true
20+
trim_trailing_whitespace = true
21+
22+
23+
# Matches the exact files either package.json or .travis.yml
24+
[{package.json,.travis.yml}]
25+
indent_style = space
26+
indent_size = 2

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
/package
12+
13+
# misc
14+
.DS_Store
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
.history
20+
*.log
21+
22+
# secrets
23+
secrets.*.js

.npmignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# OS
2+
.DS_Store
3+
4+
# ignore node dependency directories & lock
5+
node_modules
6+
yarn.lock
7+
pnpm-lock.yaml
8+
package-lock.json
9+
10+
# ignore log files and local
11+
*.log
12+
*.local
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
.history
18+
19+
# ignore compiled files
20+
build
21+
types
22+
coverage
23+
24+
# ignore ide settings
25+
.idea
26+
.vscode

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore artifacts:
2+
build
3+
coverage
4+
node_modules
5+
pnpm-lock.yaml
6+
pnpm-workspace.yaml

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"jsxSingleQuote": false,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"endOfLine": "lf",
6+
"printWidth": 100,
7+
"semi": false,
8+
"tabWidth": 2,
9+
"useTabs": false
10+
}

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# CHANGELOG
2+
3+
```txt
4+
Summary
5+
1. document grouping follow 'SemVer2.0' protocol
6+
2. use 'PATCH' as a minimum granularity
7+
3. use concise descriptions
8+
4. type: feat \ fix \ update \ perf \ remove \ docs \ chore
9+
5. version timestamp follow the yyyy.MM.dd format
10+
```
11+
12+
## 0.0.0 [2024.03.20]
13+
14+
- feat: initial
15+
- feat: generator by ![create-chrome-ext](https://github.com/guocaoyi/create-chrome-ext)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2024-present, Peter Xu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# clean-csdn-chrome-ext
2+
3+
> a chrome extension tools built with Vite + Vanilla, and Manifest v3
4+
5+
Just make csdn blog as clean as it should be.
6+
7+
## Installing
8+
9+
1. Check if your `Node.js` version is >= **14**.
10+
2. Change or configurate the name of your extension on `src/manifest`.
11+
3. Run `npm install` to install the dependencies.
12+
13+
## Developing
14+
15+
run the command
16+
17+
```shell
18+
$ cd clean-csdn
19+
20+
$ npm run dev
21+
```
22+
23+
### Chrome Extension Developer Mode
24+
25+
1. set your Chrome browser 'Developer mode' up
26+
2. click 'Load unpacked', and select `clean-csdn/build` folder
27+
28+
### Nomal FrontEnd Developer Mode
29+
30+
1. access `http://0.0.0.0:3000/`
31+
2. when debugging popup page, open `http://0.0.0.0:3000//popup.html`
32+
3. when debugging options page, open `http://0.0.0.0:3000//options.html`
33+
34+
## Packing
35+
36+
After the development of your extension run the command
37+
38+
```shell
39+
$ npm run build
40+
```
41+
42+
Now, the content of `build` folder will be the extension ready to be submitted to the Chrome Web Store. Just take a look at the [official guide](https://developer.chrome.com/webstore/publish) to more infos about publishing.
43+
44+
---
45+
46+
Generated by [create-chrome-ext](https://github.com/guocaoyi/create-chrome-ext)

devtools.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/icon/logo.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Chrome Extension + Vanilla + TS + Vite</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/devtools/index.ts"></script>
12+
</body>
13+
</html>

newtab.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/icon/logo.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Chrome Extension + Vanilla + TS + Vite</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/newtab/index.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)