Skip to content
This repository was archived by the owner on Oct 24, 2020. It is now read-only.

Commit 6d851e3

Browse files
committed
1 parent 8fcc37f commit 6d851e3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

contentscript.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,50 @@ if ( !abort ) {
509509
scriptlet: scriptlet,
510510
exceptions: [
511511
'hangouts.google.com',
512+
'messenger.com',
512513
'meet.google.com',
513514
],
514515
});
515516
})();
516517

518+
/*******************************************************************************
519+
520+
Upmanager
521+
522+
https://github.com/uBlockOrigin/uAssets/issues/251#issuecomment-276257642
523+
524+
**/
525+
526+
(function() {
527+
'use strict';
528+
529+
if ( abort ) { return; }
530+
531+
var scriptlet = function() {
532+
var magic = String.fromCharCode(Date.now() % 26 + 97) +
533+
Math.floor(Math.random() * 982451653 + 982451653).toString(36);
534+
var oe = window.error;
535+
window.onerror = function(msg, src, line, col, error) {
536+
if ( msg.indexOf(magic) !== -1 ) { return true; }
537+
if ( oe instanceof Function ) {
538+
return oe(msg, src, line, col, error);
539+
}
540+
}.bind();
541+
Object.defineProperty(window, 'upManager', {
542+
set: function() {
543+
throw new Error(magic);
544+
}
545+
});
546+
};
547+
548+
scriptlets.push({
549+
scriptlet: scriptlet,
550+
targets: [
551+
'veteranstoday.com',
552+
]
553+
});
554+
})();
555+
517556
/*******************************************************************************
518557
519558
Collate and add scriptlets to document.

0 commit comments

Comments
 (0)