Skip to content

Commit

Permalink
Add uBO: prefix to logged output in some scriptlets
Browse files Browse the repository at this point in the history
As per request.
  • Loading branch information
gorhill authored and JustOff committed Jun 14, 2020
1 parent b981881 commit 4b6c743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/resources/resources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ addEventListener-logger.js application/javascript
var c = console, l = c.log;
var z = self.EventTarget.prototype.addEventListener;
self.EventTarget.prototype.addEventListener = function(a, b) {
l.call(c, 'addEventListener("%s", %s)', a, String(b));
l.call(c, 'uBO: addEventListener("%s", %s)', a, String(b));
return z.apply(this, arguments);
};
})();
Expand Down Expand Up @@ -1428,7 +1428,7 @@ json-prune.js application/javascript
if ( log !== undefined ) {
const json = JSON.stringify(r, null, 2);
if ( reLogNeedle.test(json) ) {
log(location.hostname, json);
log('uBO:', location.hostname, json);
}
return r;
}
Expand Down

0 comments on commit 4b6c743

Please sign in to comment.