|
@@ -52,7 +52,7 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
|
|
|
switch (message.name) {
|
|
switch (message.name) {
|
|
|
case 'getData':
|
|
case 'getData':
|
|
|
const nowTime = Date.parse(new Date())
|
|
const nowTime = Date.parse(new Date())
|
|
|
- if (tempData && (tempData.time + 1 * 60 * 1000) > nowTime) {
|
|
|
|
|
|
|
+ if (tempData && (tempData.time + 1 * 0 * 1000) > nowTime) {
|
|
|
console.log('使用缓存返回!', tempData)
|
|
console.log('使用缓存返回!', tempData)
|
|
|
sendResponse(clearData(tempData.data))
|
|
sendResponse(clearData(tempData.data))
|
|
|
} else {
|
|
} else {
|
|
@@ -77,8 +77,10 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
+ return true
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+
|
|
|
var blockList = {
|
|
var blockList = {
|
|
|
"static.122.gov.cn/V1.22.2/veh1/static/js/comm/zbxhcomm.js": "https://cunchu.site/work/script/122.js",
|
|
"static.122.gov.cn/V1.22.2/veh1/static/js/comm/zbxhcomm.js": "https://cunchu.site/work/script/122.js",
|
|
|
"www.google-analytics.com/analytics.js": "https://cunchu.site/work/script/122.js",
|
|
"www.google-analytics.com/analytics.js": "https://cunchu.site/work/script/122.js",
|