From ea8672132151f02b741f93480e7e8bec2754987b Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 27 Jun 2018 23:55:37 +0200 Subject: [PATCH] Fixed some minor bugs, rewrote some bits of the popup --- js/conf/Debug.js | 4 +- js/conf/ExtensionConf.js | 37 ++++++++- js/conf/Settings.js | 61 +++++++++++++- js/conf/SitesConf.js | 19 +---- js/lib/Comms.js | 34 +++++++- js/lib/EdgeDetect.js | 10 +-- js/modules/ArDetect.js | 6 +- js/modules/Stretcher.js | 2 +- js/uw-bg.js | 79 ++++++++++++++---- js/uw.js | 35 ++++---- res/popup/js/popup.js | 171 +++++++++++++++++++++++++++++---------- res/popup/popup.html | 51 +++++++----- 12 files changed, 374 insertions(+), 135 deletions(-) diff --git a/js/conf/Debug.js b/js/conf/Debug.js index 8fca609..5ebdc0a 100644 --- a/js/conf/Debug.js +++ b/js/conf/Debug.js @@ -21,8 +21,8 @@ Debug = { debugDetection: true }, debugCanvas: { - enabled: true, - guardLine: true + enabled: false, + guardLine: false } } diff --git a/js/conf/ExtensionConf.js b/js/conf/ExtensionConf.js index ccfccf3..2d2331c 100644 --- a/js/conf/ExtensionConf.js +++ b/js/conf/ExtensionConf.js @@ -20,7 +20,7 @@ var ExtensionConf = { timer_error: 3000, timer_minimumTimeout: 5, // but regardless of above, we wait this many msec before retriggering autoDisable: { // settings for automatically disabling the extension - maxExecutionTime: 15, // if execution time of main autodetect loop exceeds this many milliseconds, + maxExecutionTime: 6000, // if execution time of main autodetect loop exceeds this many milliseconds, // we disable it. consecutiveTimeoutCount: 5 // we only do it if it happens this many consecutive times }, @@ -152,5 +152,40 @@ var ExtensionConf = { //#endregion }, modKeys: ["ctrlKey", "shiftKey", "altKey"] + }, + // ----------------------------------------- + // ::: SITE CONFIGURATION ::: + // ----------------------------------------- + // Nastavitve za posamezno stran + // Config for a given page: + // + // : { + // status: