歡迎來到 https://hackmd.io/@coscup/2019 共筆
請從這裡開始
COSCUP2019
IB306
投影片連結:https://goo.gl/hgoiVp
範例連結:goo.gl/M2DUsg (講者GitHub)
"matches": ["*://*.mozilla.org/*"],
"js": ["content-script.js"]
mainfest.json
content script
background script
_locales/語言版本/message.js
manifest可以看到這個套件安不安全,又分成API permission和Host permission。
Permission 指出了套件能夠作到哪些事情,不過不代表有高度權限的套件一定是惡意套件,
簡單的例子:一個用來修改 User-Agent 用的套件就通常會包含 <all_urls>, webRequest, webRequestBlocking 這三個權限,因為它要能夠把送到任意網站的 request 攔下來並修改,因此有這些權限是合理的,但同時此特性也可能被惡意套件利用。
經典案例:https://news.ycombinator.com/item?id=14888010
有其他問題歡迎到投影片裡面的 MozTW dev/add-on 開發者頻道討論
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing