diff --git a/background.js b/background.js index 2a2487c..9ba68ef 100644 --- a/background.js +++ b/background.js @@ -82,10 +82,4 @@ function AttachDebugger() { }); } ); -} - -chrome.cookies.onChanged.addListener(function(info){ - chrome.tabs.query({ active: true, currentWindow: true }, function(tabs){ - chrome.tabs.sendMessage(tabs[0].id, {action: {type:'getcookie', info: info}}, function(){}) - }) -}); \ No newline at end of file +} \ No newline at end of file diff --git a/inject.js b/inject.js index bd862a7..ed2579d 100644 --- a/inject.js +++ b/inject.js @@ -1335,7 +1335,6 @@ chrome.storage.local.get(hookers, function (result) { } }) -var cookie_cache = {} chrome.extension.onMessage.addListener(function(msg, sender, sendResponse) { if (msg.action.type == 'error'){ inject_script(`console.error(${JSON.stringify(msg.action.info)})`) @@ -1349,10 +1348,4 @@ chrome.extension.onMessage.addListener(function(msg, sender, sendResponse) { if (msg.action.type == 'alerterror'){ inject_script(`alert(${JSON.stringify(msg.action.info)})`) } - if (msg.action.type == 'getcookie'){ - var cookie = msg.action.info.cookie - cookie_cache[cookie.domain] = cookie_cache[cookie.domain] || {} - cookie_cache[cookie.domain][cookie.name] = cookie.value - inject_script('window.vilame_setter='+JSON.stringify(cookie_cache)) - } }); \ No newline at end of file