mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
This commit is contained in:
parent
d7c8588c16
commit
0112e54834
2 changed files with 18 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
/*******************************************************************************
|
||||
|
||||
uBlock Origin - a browser extension to block requests.
|
||||
Copyright (C) 2014-2016 The uBlock Origin authors
|
||||
Copyright (C) 2014-2017 The uBlock Origin authors
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -27,7 +27,7 @@
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
(function(self) {
|
||||
(function() {
|
||||
|
||||
/******************************************************************************/
|
||||
/******************************************************************************/
|
||||
|
@ -56,7 +56,12 @@ if ( /^image\/|^text\/plain/.test(contentType) ) {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
var vAPI = self.vAPI = self.vAPI || {};
|
||||
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
|
||||
if ( !self.vAPI || !self.vAPI.uBO ) {
|
||||
self.vAPI = { uBO: true };
|
||||
}
|
||||
|
||||
var vAPI = self.vAPI;
|
||||
var chrome = self.chrome;
|
||||
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/456
|
||||
|
@ -520,6 +525,6 @@ vAPI.executionCost.stop('vapi-client.js');
|
|||
/******************************************************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
})(this);
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*******************************************************************************
|
||||
|
||||
uBlock Origin - a browser extension to block requests.
|
||||
Copyright (C) 2014-2016 The uBlock Origin authors
|
||||
Copyright (C) 2014-2017 The uBlock Origin authors
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
(function(self) {
|
||||
(function() {
|
||||
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
|
@ -45,7 +45,12 @@ if ( document instanceof HTMLDocument === false ) {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
var vAPI = self.vAPI = self.vAPI || {};
|
||||
// https://bugs.chromium.org/p/project-zero/issues/detail?id=1225&desc=6#c10
|
||||
if ( !self.vAPI || !self.vAPI.uBO ) {
|
||||
self.vAPI = { uBO: true };
|
||||
}
|
||||
|
||||
var vAPI = self.vAPI;
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
|
@ -537,6 +542,6 @@ vAPI.executionCost.stop('vapi-client.js');
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
})(this);
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue