// var ajaxHookScript = document.createElement('script');
// ajaxHookScript.src = chrome.runtime.getURL('server/js/jd/ajaxhook_response.js');
// document.head.append(ajaxHookScript);

// var delay = 1500;
// if (document.URL.indexOf('jd.hk') > -1) {
//     delay = 3000;
// }
// setTimeout(function () {
//     const existingRequests = performance.getEntriesByType('resource').filter(entry => entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'script');
//     existingRequests.forEach(request => {
//         console.log('已完成请求:', request.name);
//         // 处理响应或做其他操作
//
//         if (request.name.startsWith('https://api.m.jd.com/description/channel') || request.name.startsWith('https://dx.3.cn/desc') || request.name.startsWith('https://color.jkcsjd.com/description/channel')) {
//             var descElem = document.createElement('div');
//             descElem.style.display = 'none';
//             descElem.setAttribute('id', 'jdDescUrl')
//             descElem.textContent = request.name;
//             document.body.append(descElem);
//         }
//     });
// }, delay);
