mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-03-21 07:10:12 +01:00
parent
a8611230b1
commit
f85303065c
@ -41,10 +41,12 @@
|
|||||||
var changedFunction = changedFunctions[name];
|
var changedFunction = changedFunctions[name];
|
||||||
if (changedFunction.getStatus(undefined, siteStatus).active){
|
if (changedFunction.getStatus(undefined, siteStatus).active){
|
||||||
(Array.isArray(changedFunction.object)? changedFunction.object: [changedFunction.object]).forEach(function(object){
|
(Array.isArray(changedFunction.object)? changedFunction.object: [changedFunction.object]).forEach(function(object){
|
||||||
var original = window.wrappedJSObject[object].prototype[name];
|
var constructor = window.wrappedJSObject[object];
|
||||||
|
if (constructor){
|
||||||
|
var original = constructor.prototype[name];
|
||||||
|
|
||||||
Object.defineProperty(
|
Object.defineProperty(
|
||||||
window.wrappedJSObject[object].prototype,
|
constructor.prototype,
|
||||||
name,
|
name,
|
||||||
{
|
{
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
@ -91,6 +93,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user