1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Beta 0.4.3 RC2

Disabled forceLoad - not in production!
This commit is contained in:
kkapsner 2017-12-08 20:39:19 +01:00
parent d787b84b13
commit 912f83b80a
3 changed files with 19 additions and 19 deletions

Binary file not shown.

View File

@ -89,22 +89,22 @@
var map = originalPropertyDescriptors[name] || new WeakMap();
originalPropertyDescriptors[name] = map;
map.set(constructor, Object.getOwnPropertyDescriptor(constructor.prototype, name));
Object.defineProperty(
constructor.prototype,
name,
{
enumerable: true,
configureable: true,
get: exportFunction(function(){
undoPreIntercept();
settings.forceLoad();
doRealIntercept();
var descriptor = Object.getOwnPropertyDescriptor(constructor.prototype, name);
return descriptor.value || descriptor.get();
}, window),
set: exportFunction(function(){}, window)
}
);
// Object.defineProperty(
// constructor.prototype,
// name,
// {
// enumerable: true,
// configureable: true,
// get: exportFunction(function(){
// undoPreIntercept();
// settings.forceLoad();
// doRealIntercept();
// var descriptor = Object.getOwnPropertyDescriptor(constructor.prototype, name);
// return descriptor.value || descriptor.get();
// }, window),
// set: exportFunction(function(){}, window)
// }
// );
});
preIntercepted = true;
}

View File

@ -1,7 +1,7 @@
{
"name": "CanvasBlocker",
"name": "CanvasBlocker-Beta",
"description": "__MSG_addon_description__",
"version": "0.4.3-Development",
"version": "0.4.3RC2",
"icons": {
"48": "icons/icon.svg",
"96": "icons/icon.svg"
@ -66,7 +66,7 @@
"applications": {
"gecko": {
"id": "CanvasBlocker@kkapsner.de",
"id": "CanvasBlocker-Beta@kkapsner.de",
"strict_min_version": "52.0"
}
},