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

View File

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