Skip to content

Commit e505f92

Browse files
committed
v0.0.1
1 parent 3f7fbe7 commit e505f92

File tree

8 files changed

+42
-12
lines changed

8 files changed

+42
-12
lines changed

markdown-toc-code/background.html

Whitespace-only changes.

markdown-toc-code/img/logo.png

1.35 KB
Loading
File renamed without changes.

markdown-toc-code/manifest.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
{
22
"manifest_version": 2,
3-
43
"name": "GitHub-Markdown-TOC",
54
"description": "a markdown toc tool for GitHub Article",
65
"version": "0.0.1",
7-
"content_scripts": //用于配置注入页面中的脚本
6+
"content_scripts":
87
[
98
{
10-
//"matches": ["http://*/*", "https://*/*"],
11-
// "<all_urls>" 表示匹配所有地址
129
"matches": ["<all_urls>"],
13-
// 多个JS按顺序注入
1410
"js": [ "js/content-script.js"],
1511
"css":["css/content.css"],
16-
// JS的注入可以随便一点,但是CSS的注意就要千万小心了,因为一不小心就可能影响全局样式
17-
// 代码注入的时间,可选值: "document_start", "document_end", or "document_idle",最后一个表示页面空闲时,默认document_idle
1812
"run_at": "document_start"
1913
}
2014
],
21-
"background":{// 运行在chrome环境中的
15+
"background":{
2216
"script":["js/background.js"]
2317
},
2418
"browser_action": {
25-
"default_icon": "img/logo.ico", // https://www.easyicon.net/1201150-menu_icon.html
19+
"default_icon": "img/logo.png",
2620
"default_popup": "popup.html"
2721
}
2822
}

markdown-toc-code/manifest_back2.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"manifest_version": 2,
3+
4+
"name": "GitHub-Markdown-TOC",
5+
"description": "a markdown toc tool for GitHub Article",
6+
"version": "0.0.1",
7+
"content_scripts": //用于配置注入页面中的脚本
8+
[
9+
{
10+
//"matches": ["http://*/*", "https://*/*"],
11+
// "<all_urls>" 表示匹配所有地址
12+
"matches": ["<all_urls>"],
13+
// 多个JS按顺序注入
14+
"js": [ "js/content-script.js"],
15+
"css":["css/content.css"],
16+
// JS的注入可以随便一点,但是CSS的注意就要千万小心了,因为一不小心就可能影响全局样式
17+
// 代码注入的时间,可选值: "document_start", "document_end", or "document_idle",最后一个表示页面空闲时,默认document_idle
18+
"run_at": "document_start"
19+
}
20+
],
21+
"background":{// 运行在chrome环境中的
22+
"script":["js/background.js"]
23+
},
24+
"browser_action": {
25+
"default_icon": "img/logo.png", // https://www.easyicon.net/1201150-menu_icon.html
26+
"default_popup": "popup.html"
27+
}
28+
}
42.5 KB
Binary file not shown.
85.6 KB
Binary file not shown.

markdown-toc-code/popup.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
88
<body>
99
<div style="width:400px;">
10-
<h2>GitHub-Markdown-TOC</h2>
11-
<h3>v0.0.1</h3>
10+
<h2>GitHub-Markdown-TOC v0.0.2</h2>
11+
<h3>GitHub Issue: <a target="_blank" href="https://github.com/fullstack-tutorial/github-markdown-toc/issues/6">suggestion about us</a></h3>
12+
<h3>Author:
13+
<a target="_blank" href="https://github.com/frank-lam">frank-lam</a>,
14+
<a target="_blank" href="https://github.com/dxiaoqi">dxiaoqi</a>,
15+
<a target="_blank" href="https://github.com/dzeze">dzeze</a>
16+
<br/>Email: frank_lin@whu.edu.cn</h3>
17+
<h4>from 2018/12/8</h4>
1218
</div>
1319
</body>
14-
</html>
20+
</html>
21+
22+

0 commit comments

Comments
 (0)