fmt
This commit is contained in:
4
Makefile
4
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:
|
||||
|
||||
42
info.css
42
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
|
||||
}
|
||||
|
||||
16
info.js
16
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") {
|
||||
|
||||
2
scrub.js
2
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 == "") {
|
||||
|
||||
Reference in New Issue
Block a user