This commit is contained in:
kkapsner 2021-06-06 14:43:46 +02:00
parent 0d581403c1
commit 8dddff85cc
2 changed files with 1 additions and 13 deletions

View File

@ -344,10 +344,6 @@
let changed; let changed;
if (type ==="value"){ if (type ==="value"){
if (changedFunction.fakeGenerator){ 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){ if ((changedFunction.exportOptions || {}).allowCallbacks){
changed = extension.exportFunctionWithName( changed = extension.exportFunctionWithName(
changedFunction.fakeGenerator(checker, original, windowToProcess), changedFunction.fakeGenerator(checker, original, windowToProcess),
@ -365,13 +361,6 @@
} }
} }
else { 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( changed = extension.createProxyFunction(windowToProcess, original, extension.exportFunctionWithName(
changedFunction.fakeGenerator(checker), changedFunction.fakeGenerator(checker),
windowToProcess, windowToProcess,
@ -408,7 +397,6 @@
extension.changeProperty(windowToProcess, changedGetter.api, extension.changeProperty(windowToProcess, changedGetter.api,
{ {
object, name, type: "get", object, name, type: "get",
// changed: extension.exportFunctionWithName(getter, windowToProcess, original.name)
changed: extension.createProxyFunction(windowToProcess, original, getter) changed: extension.createProxyFunction(windowToProcess, original, getter)
} }
); );
@ -423,7 +411,6 @@
extension.changeProperty(windowToProcess, changedGetter.api, extension.changeProperty(windowToProcess, changedGetter.api,
{ {
object, name, type: "set", object, name, type: "set",
// changed: extension.exportFunctionWithName(setter, windowToProcess, original.name)
changed: extension.createProxyFunction(windowToProcess, original, setter) changed: extension.createProxyFunction(windowToProcess, original, setter)
} }
); );

View File

@ -3,6 +3,7 @@ Version 1.6:
- periodical persistent rnd clearing does not clear in active tabs - periodical persistent rnd clearing does not clear in active tabs
- added paypal.com to the convenience preset - added paypal.com to the convenience preset
- improved whitelist inspection - improved whitelist inspection
- use proxy to hide changed functions
new features: new features:
- try to not break tabs when updating - try to not break tabs when updating