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:
parent
c82fab635c
commit
298dac337c
|
@ -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);
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue