Added screenshot, fixed coalesce issue with gamexplain

This commit is contained in:
TheEssem 2020-02-17 16:21:24 -06:00
parent c0bbc1533c
commit 5e394d101d
7 changed files with 315 additions and 17 deletions

View file

@ -0,0 +1,23 @@
# if your install supports docker and you don't want to run chromium directly then you can use this dockerfile instead
# this also comes with a squid proxy to automatically handle errors and some privacy stuff
# adapted from https://github.com/westy92/headless-chrome-alpine/blob/master/Dockerfile
FROM alpine:edge
RUN apk --no-cache upgrade && apk add --no-cache chromium && apk add --no-cache squid && apk add --no-cache sudo
ENV ALL_PROXY "http://localhost:3128"
RUN echo -e "\nvisible_hostname esmBot\nforwarded_for delete\nvia off\nfollow_x_forwarded_for deny all \
\nrequest_header_access X-Forwarded-For deny all\nerror_default_language en\n" >> /etc/squid/squid.conf
COPY ./ERR_DNS_FAIL /usr/share/squid/errors/en/
RUN adduser esmBot -s /bin/sh -D
WORKDIR /home/esmBot/.internal
COPY . .
RUN chmod +x start.sh
RUN echo -e "\nesmBot ALL=(ALL) NOPASSWD:ALL\n" >> /etc/sudoers
USER esmBot
EXPOSE 9222
ENTRYPOINT ["sh", "./start.sh"]

View file

@ -0,0 +1,63 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf8">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
}
.page {
height: 100%;
width: 100%;
align-items: center;
justify-content: center;
flex-flow: row wrap;
align-content: center;
display: flex;
}
.text {
text-align: center;
font-weight: 400;
width: 100%;
margin: 5px;
}
.img {
text-align: center;
margin: 10px auto 20px;
display: block;
width: 256px;
}
.container {
padding: 2em;
}
* {
box-sizing: border-box;
}
.large {
font-size: 5em;
}
.med {
font-size: 3em;
}
</style>
</head>
<body>
<div class="page">
<div class="container">
<img src="https://projectlounge.pw/pictures/esmbot.png" width="256" class="text img"></img>
<p class="text large" id="page">An error was encountered while trying to load %H:</p>
<p class="text med" id="error">%z</p>
</div>
</div>
</body>
</html>

16
utils/screenshot/start.sh Normal file
View file

@ -0,0 +1,16 @@
sudo squid & chromium-browser \
--disable-background-networking \
--disable-default-apps \
--disable-extensions \
--disable-gpu \
--disable-sync \
--disable-translate \
--headless \
--hide-scrollbars \
--metrics-recording-only \
--mute-audio \
--no-first-run \
--no-sandbox \
--remote-debugging-address=0.0.0.0 \
--remote-debugging-port=9222 \
--safebrowsing-disable-auto-update