mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-16 15:33:38 +01:00
Updated About the required permissions (markdown)
parent
5e8d9f0d0a
commit
189cdce369
@ -1,23 +0,0 @@
|
||||
#### "Access your data on all web sites"
|
||||
|
||||
- To be able to inspect all net requests so that they can be cancelled if needed.
|
||||
- Only on `http`- and `https`-based URL addresses.
|
||||
|
||||
See code:
|
||||
- <https://github.com/gorhill/uBlock/search?q=%22chrome.webRequest%22&type=Code>
|
||||
|
||||
#### "Access your tabs and browsing activity"
|
||||
|
||||
This is necessary to be able to:
|
||||
|
||||
- Create new tabs (when you click on a filter list, to see its content)
|
||||
- To detect when a tab is added or removed:
|
||||
- To update badge
|
||||
- To flush from memory internal data structures
|
||||
- To find out which tab is currently active (to fill popup menu with associated stats/settings)
|
||||
- To be able to inject the element picker script
|
||||
- To implement the popup-blocker
|
||||
|
||||
See code:
|
||||
- <https://github.com/gorhill/uBlock/search?q=%22chrome.tabs%22&type=Code>
|
||||
- <https://github.com/gorhill/uBlock/search?q=%22chrome.webNavigation%22&type=Code>
|
23
关于扩展需要获得的权限.md
Normal file
23
关于扩展需要获得的权限.md
Normal file
@ -0,0 +1,23 @@
|
||||
#### "访问你在所有网站上的的数据"
|
||||
|
||||
- 能够查看所有网络请求,必要时可以取消这些请求。
|
||||
- 只针对 `http` 和 `https` 打头的 URL 地址。
|
||||
|
||||
代码参见:
|
||||
- <https://github.com/gorhill/uBlock/search?q=%22chrome.webRequest%22&type=Code>
|
||||
|
||||
#### "访问你的标签页和浏览活动"
|
||||
|
||||
在执行以下操作时需要获取此权限:
|
||||
|
||||
- 新建标签页(当你点击某个规则列表查看内容时)
|
||||
- 检测何时标签页被新建或关闭:
|
||||
- 更新角标
|
||||
- 从内存的内部数据结构中刷新数据
|
||||
- 能够找到当前处于活动状态的标签页(在弹出菜单中输入相关的统计信息和设置)
|
||||
- 能够插入元素选择器的脚本
|
||||
- 实现屏蔽弹出窗口
|
||||
|
||||
代码参见:
|
||||
- <https://github.com/gorhill/uBlock/search?q=%22chrome.tabs%22&type=Code>
|
||||
- <https://github.com/gorhill/uBlock/search?q=%22chrome.webNavigation%22&type=Code>
|
Loading…
Reference in New Issue
Block a user