mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
Clean up white spaces
This commit is contained in:
parent
015350c385
commit
277bef1227
@ -10,14 +10,14 @@
|
|||||||
<button id="addonStatus" class="undefined"></button>
|
<button id="addonStatus" class="undefined"></button>
|
||||||
<span id="reload" class="hidden"></span>
|
<span id="reload" class="hidden"></span>
|
||||||
<div id="actions" class="stackedInputs"></div>
|
<div id="actions" class="stackedInputs"></div>
|
||||||
<script src="../lib/require.js"></script>
|
<script src="../lib/require.js"></script>
|
||||||
<script src="../lib/logging.js"></script>
|
<script src="../lib/logging.js"></script>
|
||||||
<script src="../lib/extension.js"></script>
|
<script src="../lib/extension.js"></script>
|
||||||
<script src="../lib/settingDefinitions.js"></script>
|
<script src="../lib/settingDefinitions.js"></script>
|
||||||
<script src="../lib/settingContainers.js"></script>
|
<script src="../lib/settingContainers.js"></script>
|
||||||
<script src="../lib/settings.js"></script>
|
<script src="../lib/settings.js"></script>
|
||||||
<script src="../lib/lists.js"></script>
|
<script src="../lib/lists.js"></script>
|
||||||
<script src="../lib/theme.js"></script>
|
<script src="../lib/theme.js"></script>
|
||||||
<script src="browserAction.js"></script>
|
<script src="browserAction.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -78,10 +78,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function error (...args){performLog(1, args);}
|
function error (...args){performLog(1, args);}
|
||||||
function warning(...args){performLog(25, args);}
|
function warning(...args){performLog(25, args);}
|
||||||
function message(...args){performLog(50, args);}
|
function message(...args){performLog(50, args);}
|
||||||
function notice (...args){performLog(75, args);}
|
function notice (...args){performLog(75, args);}
|
||||||
function verbose(...args){performLog(100, args);}
|
function verbose(...args){performLog(100, args);}
|
||||||
function metaLog(...args){performLog(999, args);}
|
function metaLog(...args){performLog(999, args);}
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
function registerTimeout(){
|
function registerTimeout(){
|
||||||
const interval = getInterval();
|
const interval = getInterval();
|
||||||
if (interval > 0){
|
if (interval > 0){
|
||||||
const timeout = settings.lastPersistentRndClearing + interval - Date.now();
|
const timeout = settings.lastPersistentRndClearing + interval - Date.now();
|
||||||
logging.message("registering persistent rng data clearing timeout. Clearing in ", timeout, "ms");
|
logging.message("registering persistent rng data clearing timeout. Clearing in ", timeout, "ms");
|
||||||
if (timeout > 1073741824){
|
if (timeout > 1073741824){
|
||||||
// window.setTimeout can only handle delays up to 32 bit.
|
// window.setTimeout can only handle delays up to 32 bit.
|
||||||
|
10
lib/webgl.js
10
lib/webgl.js
@ -75,11 +75,11 @@
|
|||||||
|
|
||||||
const positionAttributeLocation = context.getAttribLocation(program, "a_position");
|
const positionAttributeLocation = context.getAttribLocation(program, "a_position");
|
||||||
context.enableVertexAttribArray(positionAttributeLocation);
|
context.enableVertexAttribArray(positionAttributeLocation);
|
||||||
const size = 2; // 2 components per iteration
|
const size = 2; // 2 components per iteration
|
||||||
const type = context.FLOAT; // the data is 32bit floats
|
const type = context.FLOAT; // the data is 32bit floats
|
||||||
const normalize = false; // don't normalize the data
|
const normalize = false; // don't normalize the data
|
||||||
const stride = 0; // 0 = move forward size * sizeof(type) each iteration to get the next position
|
const stride = 0; // 0 = move forward size * sizeof(type) each iteration to get the next position
|
||||||
const offset = 0; // start at the beginning of the buffer
|
const offset = 0; // start at the beginning of the buffer
|
||||||
context.vertexAttribPointer(positionAttributeLocation, size, type, normalize, stride, offset);
|
context.vertexAttribPointer(positionAttributeLocation, size, type, normalize, stride, offset);
|
||||||
|
|
||||||
const texCoordLocation = context.getAttribLocation(program, "a_texCoord");
|
const texCoordLocation = context.getAttribLocation(program, "a_texCoord");
|
||||||
|
@ -68,7 +68,7 @@ header .bookmarkNotice .dontShowOptionsOnUpdate input {
|
|||||||
|
|
||||||
.settings .section h2 {
|
.settings .section h2 {
|
||||||
border: 1px #c1c1c1 solid;
|
border: 1px #c1c1c1 solid;
|
||||||
border-radius: 0.5em ;
|
border-radius: 0.5em;
|
||||||
padding: 0.2em 2em 0.2em 0.5em;
|
padding: 0.2em 2em 0.2em 0.5em;
|
||||||
margin: 0.7em 1px 0.2em;
|
margin: 0.7em 1px 0.2em;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -110,7 +110,7 @@ const iframeAPI = function(){
|
|||||||
];
|
];
|
||||||
|
|
||||||
function getPerformer(callback){
|
function getPerformer(callback){
|
||||||
return async function perform(method){
|
return async function perform(method){
|
||||||
const api = await method.prepare();
|
const api = await method.prepare();
|
||||||
callback(api.window, method.name);
|
callback(api.window, method.name);
|
||||||
api.cleanup();
|
api.cleanup();
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<li>both webGL versions should be supported (unless you disabled it in the browser settings) - reload if one is showing "not supported"</li>
|
<li>both webGL versions should be supported (unless you disabled it in the browser settings) - reload if one is showing "not supported"</li>
|
||||||
<li>upon page reload the hashes change (depending on CanvasBlocker settings - e.g. not in the stealth preset)</li>
|
<li>upon page reload the hashes change (depending on CanvasBlocker settings - e.g. not in the stealth preset)</li>
|
||||||
<li>all the image hashes should be the same (offscreen workers are not yet protected by CanvasBlocker)</li>
|
<li>all the image hashes should be the same (offscreen workers are not yet protected by CanvasBlocker)</li>
|
||||||
<li>upon page reload some of the parameters (depending on CanvasBlocker settings - e.g. not in the stealth preset)</li>
|
<li>upon page reload some of the parameters (depending on CanvasBlocker settings - e.g. not in the stealth preset)</li>
|
||||||
<li>the "vendor" und "renderer" (also unmasked) parameters reflect the values you chose for them</li>
|
<li>the "vendor" und "renderer" (also unmasked) parameters reflect the values you chose for them</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Support</h3>
|
<h3>Support</h3>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user