Index: lib/content/snippets.js |
=================================================================== |
--- a/lib/content/snippets.js |
+++ b/lib/content/snippets.js |
@@ -67,8 +67,21 @@ |
exports.log = log; |
function trace(...args) |
{ |
log(...args); |
} |
exports.trace = makeInjector(trace, log); |
+ |
+// This is an implementation of the uabinject-defuser technique used by uBlock |
+// Origin |
+// https://github.com/uBlockOrigin/uAssets/blob/c091f861b63cd2254b8e9e4628f6bdcd89d43caa/filters/resources.txt#L640 |
+function uabinjectDefuser() |
+{ |
+ window.trckd = true; |
+ window.uabpdl = true; |
+ window.uabInject = true; |
+ window.uabDetect = true; |
+} |
+ |
+exports["uabinject-defuser"] = makeInjector(uabinjectDefuser); |