@ -36,7 +36,12 @@
// https://github.com/chrisaljoudi/uBlock/issues/464
if ( document instanceof HTMLDocument === false ) {
//console.debug('contentscript-end.js > not a HTLMDocument');
return false;
return;
}
// This can also happen (for example if script injected into a `data:` URI doc)
if ( !window.location ) {
// This can happen
@ -38,6 +38,11 @@ if ( document instanceof HTMLDocument === false ) {
if ( !vAPI ) {
//console.debug('contentscript-start.js > vAPI not found');
@ -57,7 +57,9 @@ var defaultLocalUserSettings = {
].join(''),
placeholderBorder: '1px solid rgba(0, 0, 0, 0.05)',
placeholderDocument: [
'<html><head><style>',
'<html><head>',
'<meta charset="utf-8">',
'<style>',
'body { ',
'background: {{bg}};',
'color: gray;',