From d079a840052d5746597fb4aa2bd04ff77aef6da0 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 11 Mar 2018 00:49:29 +0100 Subject: [PATCH] Sitesconf comeback complete. Need to implement adding and changing settings for sites in the popup and the background script. --- README.md | 4 +- js/conf/SitesConf.js | 179 +++++++++++++++++++++++++++++++++---------- js/uw.js | 11 ++- 3 files changed, 145 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index dc3660b..332836f 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,9 @@ Various improvements to automatic aspect ratio detection: Improved accuracy has increased the base RAM usage. Expect 30-500 MB per video that's currently playing if you opened the Firefox just for youtube. I've spent 2 hours watching videos on youtube and RAM usage of the extension was 30-400 MB most of the time. -In some weird cases, though, RAM usage could sway between 30 MB to ~2 gigs? while the video is playing. (Videos that aren't playing (e.g. videos that are paused or ended) do (should) ***not*** use any meaningful amount of RAM). +In some weird cases, though, RAM usage could sway between 30 MB to ~2 gigs? while the video is playing. That normally happens when firefox has been running for a while (even if extension was disabled or not installed during that while). + +Videos that aren't playing (e.g. videos that are paused or ended) do (should) ***not*** use any meaningful amount of RAM. * Overpass font is now bundled with this extension, meaning the popup should appear the way it was meant to appear™. diff --git a/js/conf/SitesConf.js b/js/conf/SitesConf.js index cc80544..223e248 100644 --- a/js/conf/SitesConf.js +++ b/js/conf/SitesConf.js @@ -1,3 +1,41 @@ +if(Debug.debug){ + console.log("Loading: SitesConf.js"); +} + +// Nastavitve za posamezno stran +// Config for a given page: +// +// : { +// status: