|
|
@ -359,12 +359,6 @@ Matrix.prototype.evaluateCell = function(srcHostname, desHostname, type) {
|
|
|
|
/******************************************************************************/
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
Matrix.prototype.evaluateCellZ = function(srcHostname, desHostname, type) {
|
|
|
|
Matrix.prototype.evaluateCellZ = function(srcHostname, desHostname, type) {
|
|
|
|
// https://github.com/gorhill/uMatrix/issues/65
|
|
|
|
|
|
|
|
// Hardcoded `doc` rule
|
|
|
|
|
|
|
|
if ( srcHostname === '*' && desHostname === '*' && type === 'doc' ) {
|
|
|
|
|
|
|
|
return 2;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var bitOffset = typeBitOffsets[type];
|
|
|
|
var bitOffset = typeBitOffsets[type];
|
|
|
|
var s = srcHostname;
|
|
|
|
var s = srcHostname;
|
|
|
|
var v;
|
|
|
|
var v;
|
|
|
@ -386,6 +380,11 @@ Matrix.prototype.evaluateCellZ = function(srcHostname, desHostname, type) {
|
|
|
|
if ( type === '*' && µm.ubiquitousBlacklist.test(desHostname) ) {
|
|
|
|
if ( type === '*' && µm.ubiquitousBlacklist.test(desHostname) ) {
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// https://github.com/gorhill/uMatrix/issues/65
|
|
|
|
|
|
|
|
// Hardcoded `doc` rule
|
|
|
|
|
|
|
|
if ( type === 'doc' && desHostname === '*' ) {
|
|
|
|
|
|
|
|
return 2;
|
|
|
|
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|