From 298dac337cea61bd7eaeccb4a0aa735a796c39d6 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 13 Dec 2017 12:05:43 -0500 Subject: [PATCH] better defaults for new installation --- src/js/httpsb.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/httpsb.js b/src/js/httpsb.js index 0f2ad53..de6afc3 100644 --- a/src/js/httpsb.js +++ b/src/js/httpsb.js @@ -34,19 +34,22 @@ µm.pMatrix.setSwitch('matrix-off', 'chrome-scheme', 1); µm.pMatrix.setSwitch('matrix-off', 'moz-extension-scheme', 1); µm.pMatrix.setSwitch('matrix-off', 'opera-scheme', 1); + // https://discourse.mozilla.org/t/support-umatrix/5131/157 + µm.pMatrix.setSwitch('matrix-off', 'wyciwyg-scheme', 1); µm.pMatrix.setSwitch('matrix-off', 'behind-the-scene', 1); µm.pMatrix.setSwitch('referrer-spoof', 'behind-the-scene', 2); µm.pMatrix.setSwitch('https-strict', 'behind-the-scene', 2); + // Global rules + µm.pMatrix.setSwitch('referrer-spoof', '*', 1); + µm.pMatrix.setSwitch('noscript-spoof', '*', 1); µm.pMatrix.setCell('*', '*', '*', µm.Matrix.Red); µm.pMatrix.setCell('*', '*', 'css', µm.Matrix.Green); µm.pMatrix.setCell('*', '*', 'image', µm.Matrix.Green); µm.pMatrix.setCell('*', '*', 'frame', µm.Matrix.Red); + // 1st-party rules µm.pMatrix.setCell('*', '1st-party', '*', µm.Matrix.Green); µm.pMatrix.setCell('*', '1st-party', 'frame', µm.Matrix.Green); - // https://discourse.mozilla.org/t/support-umatrix/5131/157 - µm.pMatrix.setSwitch('matrix-off', 'wyciwyg-scheme', 1); - µm.tMatrix = new µm.Matrix(); µm.tMatrix.assign(µm.pMatrix); })();