From 317034cb5a8fc31df624dbeacfbf58aaa418a555 Mon Sep 17 00:00:00 2001 From: idk Date: Fri, 22 Nov 2019 17:55:58 -0500 Subject: [PATCH] fmt --- Makefile | 4 +++- info.css | 42 ++++++++++++++++-------------------------- info.js | 16 ++++++++-------- scrub.js | 2 +- 4 files changed, 28 insertions(+), 36 deletions(-) diff --git a/Makefile b/Makefile index 0adff7d..06e1bec 100644 --- a/Makefile +++ b/Makefile @@ -131,7 +131,9 @@ libpolyfill: wget -O chromium/browser-polyfill.js https://unpkg.com/webextension-polyfill/dist/browser-polyfill.js fmt: - find . -path ./node_modules -prune -o -name '*.css' -exec cleancss -O1 --format beautify {} \; + cleancss -O1 all -O2 all --format beautify home.css -o .home.css && mv .home.css home.css + cleancss -O1 all -O2 all --format beautify info.css -o .info.css && mv .info.css info.css + #find . -path ./node_modules -prune -o -name '*.css' -exec cleancss -O1 --format beautify {} \; find . -path ./node_modules -prune -o -name '*.js' -exec prettier --write {} \; lint: diff --git a/info.css b/info.css index b39dede..313864e 100644 --- a/info.css +++ b/info.css @@ -1,64 +1,54 @@ -html, body { - width: 50rem; +body, +html { + width: 50rem } - a { - margin: 10px; - /*display: inline-block;*/ + margin: 10px } - .panel { - margin: 5px; + margin: 5px } - span.identity { width: 100px; display: inline-block; - margin-left: 1em; + margin-left: 1em } - figcaption { - display: inline; + display: inline } - .section-header { display: flex; flex-direction: row; margin-bottom: 8px } - p { - font-size: 12px; + font-size: 12px } h1 { - font-size: 25px; + font-size: 25px } h2, h3 { - font-size: 18px; + font-size: 18px } h4 { - font-size: 13px!important; + font-size: 13px!important } #links .showhider { font-size: 18px } #onboarding { - font-size: 2rem; + font-size: 2rem } img.readyness { - height: 2rem; + height: 2rem } #proxyUnready { - min-height: 2rem; + min-height: 2rem } #proxyReady { - min-height: 2rem; + min-height: 2rem } #consoleOn { - min-height: 2rem; -} -#window-visit-homepage { - max-width: 70%; - margin-left: 0rem; + min-height: 2rem } diff --git a/info.js b/info.js index 40d6803..c3c2f5f 100644 --- a/info.js +++ b/info.js @@ -41,17 +41,17 @@ document.addEventListener("click", e => { chrome.windows.update(currentWindow.id, updateInfo); }); } else if (e.target.id === "window-visit-homepage") { - console.log("attempting to create homepage tab") - goHome() + console.log("attempting to create homepage tab"); + goHome(); } else if (e.target.id === "window-visit-i2ptunnel") { - console.log("attempting to create i2ptunnel tab") - goTunnel() + console.log("attempting to create i2ptunnel tab"); + goTunnel(); } else if (e.target.id === "window-visit-susimail") { - console.log("attempting to create susimail tab") - goMail() + console.log("attempting to create susimail tab"); + goMail(); } else if (e.target.id === "window-visit-snark") { - console.log("attempting to create snark tab") - goSnark() + console.log("attempting to create snark tab"); + goSnark(); } else if (e.target.id === "clear-browser-data") { forgetBrowsingData(); } else if (e.target.id === "check-i2p-control") { diff --git a/scrub.js b/scrub.js index 7ddcd22..39de3d7 100644 --- a/scrub.js +++ b/scrub.js @@ -462,7 +462,7 @@ function routerHost(url) { } else if (final === "i2psnark" || final === "torrents") { console.log("(urlcheck) application path", final); return "i2psnark"; - } else if (final === "webmail" || final === "susimail" ) { + } else if (final === "webmail" || final === "susimail") { console.log("(urlcheck) application path", final); return "webmail"; } else if (final == "") {