init project

master
宇天 2018-07-07 21:05:26 +08:00
commit 36b33d1b2b
6 changed files with 40 additions and 0 deletions

4
README.md Normal file
View File

@ -0,0 +1,4 @@
### DNS 缓存清除
> 一键清除chrome的DNS缓存, 并刷新当前选项卡。 web开发的利器。

12
background.js Normal file
View File

@ -0,0 +1,12 @@
/**
*
* @authors yutent (yutent@doui.cc)
* @date 2018-07-07 20:59:35
* @version $Id$
*/
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.benchmarking.clearHostResolverCache()
chrome.benchmarking.closeConnections()
chrome.tabs.executeScript(tab.id, { code: 'location.reload()' })
})

BIN
icon128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
icon256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
icon64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

24
manifest.json Normal file
View File

@ -0,0 +1,24 @@
{
"manifest_version": 2,
"name": "DNS Flush",
"description": "一键清除chrome的DNS缓存, 并刷新当前选项卡。 web开发的利器。",
"version": "0.2",
"author": "yutent",
"icons": {
"64": "icon64.png",
"128": "icon128.png",
"256": "icon256.png"
},
"background": {
"scripts": [ "background.js" ]
},
"browser_action": {
"default_icon": "icon64.png"
},
"permissions": [
"tabs",
"*://*/*"
],
"homepage_url": "https://doui.cc"
}