mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
Cleanup
This commit is contained in:
parent
0d581403c1
commit
8dddff85cc
@ -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)
|
||||
}
|
||||
);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user