1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 10:24:59 +12:00

better defaults for new installation

This commit is contained in:
Raymond Hill 2017-12-13 12:05:43 -05:00
parent c82fab635c
commit 298dac337c
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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);
})();