init project
commit
36b33d1b2b
|
@ -0,0 +1,4 @@
|
|||
### DNS 缓存清除
|
||||
> 一键清除chrome的DNS缓存, 并刷新当前选项卡。 web开发的利器。
|
||||
|
||||
|
|
@ -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()' })
|
||||
})
|
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue