From 277bef1227598f52af1d2c78913ae9432079818e Mon Sep 17 00:00:00 2001 From: kkapsner Date: Sat, 12 Jun 2021 00:50:05 +0200 Subject: [PATCH] Clean up white spaces --- browserAction/browserAction.html | 14 +++++++------- lib/logging.js | 8 ++++---- lib/persistentRndStorage.js | 2 +- lib/webgl.js | 10 +++++----- options/options.css | 2 +- test/detectionTest.html | 2 +- test/iframeAPI.js | 2 +- test/webGL-Test.html | 2 +- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/browserAction/browserAction.html b/browserAction/browserAction.html index 3c1e948..ba17a17 100644 --- a/browserAction/browserAction.html +++ b/browserAction/browserAction.html @@ -10,14 +10,14 @@
- + - - - - - - + + + + + + \ No newline at end of file diff --git a/lib/logging.js b/lib/logging.js index 3ea4d34..1c8b36c 100644 --- a/lib/logging.js +++ b/lib/logging.js @@ -78,10 +78,10 @@ } } - function error (...args){performLog(1, args);} - function warning(...args){performLog(25, args);} - function message(...args){performLog(50, args);} - function notice (...args){performLog(75, args);} + function error (...args){performLog(1, args);} + function warning(...args){performLog(25, args);} + function message(...args){performLog(50, args);} + function notice (...args){performLog(75, args);} function verbose(...args){performLog(100, args);} function metaLog(...args){performLog(999, args);} diff --git a/lib/persistentRndStorage.js b/lib/persistentRndStorage.js index b5ed50a..ecd3971 100644 --- a/lib/persistentRndStorage.js +++ b/lib/persistentRndStorage.js @@ -101,7 +101,7 @@ function registerTimeout(){ const interval = getInterval(); 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"); if (timeout > 1073741824){ // window.setTimeout can only handle delays up to 32 bit. diff --git a/lib/webgl.js b/lib/webgl.js index f99179d..1b39193 100644 --- a/lib/webgl.js +++ b/lib/webgl.js @@ -75,11 +75,11 @@ const positionAttributeLocation = context.getAttribLocation(program, "a_position"); context.enableVertexAttribArray(positionAttributeLocation); - const size = 2; // 2 components per iteration - const type = context.FLOAT; // the data is 32bit floats - 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 offset = 0; // start at the beginning of the buffer + const size = 2; // 2 components per iteration + const type = context.FLOAT; // the data is 32bit floats + 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 offset = 0; // start at the beginning of the buffer context.vertexAttribPointer(positionAttributeLocation, size, type, normalize, stride, offset); const texCoordLocation = context.getAttribLocation(program, "a_texCoord"); diff --git a/options/options.css b/options/options.css index 0618009..780aba3 100644 --- a/options/options.css +++ b/options/options.css @@ -68,7 +68,7 @@ header .bookmarkNotice .dontShowOptionsOnUpdate input { .settings .section h2 { border: 1px #c1c1c1 solid; - border-radius: 0.5em ; + border-radius: 0.5em; padding: 0.2em 2em 0.2em 0.5em; margin: 0.7em 1px 0.2em; position: relative; diff --git a/test/detectionTest.html b/test/detectionTest.html index 90e7fd9..17dba0d 100644 --- a/test/detectionTest.html +++ b/test/detectionTest.html @@ -30,7 +30,7 @@ Checks if the addon can be detected by websites. To check if CanvasBlocker was r
  • CanvasBlocker enabled but all other addons disabled
  • CanvasBlocker disabled
  • -

    Tests

    +

    Tests

    diff --git a/test/iframeAPI.js b/test/iframeAPI.js index fe3adea..5b6e9fe 100644 --- a/test/iframeAPI.js +++ b/test/iframeAPI.js @@ -110,7 +110,7 @@ const iframeAPI = function(){ ]; function getPerformer(callback){ - return async function perform(method){ + return async function perform(method){ const api = await method.prepare(); callback(api.window, method.name); api.cleanup(); diff --git a/test/webGL-Test.html b/test/webGL-Test.html index 93b420a..5a8ecec 100644 --- a/test/webGL-Test.html +++ b/test/webGL-Test.html @@ -19,7 +19,7 @@
  • both webGL versions should be supported (unless you disabled it in the browser settings) - reload if one is showing "not supported"
  • upon page reload the hashes change (depending on CanvasBlocker settings - e.g. not in the stealth preset)
  • all the image hashes should be the same (offscreen workers are not yet protected by CanvasBlocker)
  • -
  • upon page reload some of the parameters (depending on CanvasBlocker settings - e.g. not in the stealth preset)
  • +
  • upon page reload some of the parameters (depending on CanvasBlocker settings - e.g. not in the stealth preset)
  • the "vendor" und "renderer" (also unmasked) parameters reflect the values you chose for them
  • Support