From 8dddff85cca6321aea27421d930214aaf754ae74 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Sun, 6 Jun 2021 14:43:46 +0200 Subject: [PATCH] Cleanup --- lib/intercept.js | 13 ------------- releaseNotes.txt | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/intercept.js b/lib/intercept.js index ed77f03..89822b1 100644 --- a/lib/intercept.js +++ b/lib/intercept.js @@ -344,10 +344,6 @@ let changed; if (type ==="value"){ if (changedFunction.fakeGenerator){ - // const proxy = new windowToProcess.Proxy(original, {apply: function(target, thisArgs, args){ - // console.log(target, thisArgs, args, generated); - // return generated.apply(thisArgs, args); - // }}); if ((changedFunction.exportOptions || {}).allowCallbacks){ changed = extension.exportFunctionWithName( changedFunction.fakeGenerator(checker, original, windowToProcess), @@ -365,13 +361,6 @@ } } else { - // changed = extension.exportFunctionWithName(function(){ - // return extension.exportFunctionWithName( - // changedFunction.fakeGenerator(checker), - // windowToProcess, - // original.name - // ); - // }, windowToProcess, descriptor.get.name); changed = extension.createProxyFunction(windowToProcess, original, extension.exportFunctionWithName( changedFunction.fakeGenerator(checker), windowToProcess, @@ -408,7 +397,6 @@ extension.changeProperty(windowToProcess, changedGetter.api, { object, name, type: "get", - // changed: extension.exportFunctionWithName(getter, windowToProcess, original.name) changed: extension.createProxyFunction(windowToProcess, original, getter) } ); @@ -423,7 +411,6 @@ extension.changeProperty(windowToProcess, changedGetter.api, { object, name, type: "set", - // changed: extension.exportFunctionWithName(setter, windowToProcess, original.name) changed: extension.createProxyFunction(windowToProcess, original, setter) } ); diff --git a/releaseNotes.txt b/releaseNotes.txt index 2a66932..5bde3f7 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -3,6 +3,7 @@ Version 1.6: - periodical persistent rnd clearing does not clear in active tabs - added paypal.com to the convenience preset - improved whitelist inspection + - use proxy to hide changed functions new features: - try to not break tabs when updating