mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Compare commits
No commits in common. "8f488a7671c65dffdf5194ee8514476fa73a8818" and "f060fcf13d5e76d46ebc6c2418436b017f68107a" have entirely different histories.
8f488a7671
...
f060fcf13d
4 changed files with 17 additions and 5 deletions
|
@ -13,7 +13,7 @@ CHROME_PROFILE ?= /tmp/chrome-lighthouse
|
|||
JS_FLAGS=''
|
||||
# We enable experimental web platform features so the Document-Policy header is enforced
|
||||
# #
|
||||
CHROME_FLAGS += --headless --disable-network-portal-notification --disable-client-side-phishing-protection --disable-gaia-services --disable-sync --no-vr-runtime --no-wifi --no-crash-upload --no-report-uload --disable-extensions --allow-browser-signin=false --no-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-fonts-googleapis-references --disable-field-trial-config --lang=en-US --disable-ntp-popular-sites --disable-offer-store-unmasked-wallet-cards --disable-office-editing-component-extension --disable-fine-grained-time-zone-detection --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --enable-features=UseDnsHttpsSvcb,UseDnsHttpsSvcbAlpn,AsyncDns --no-first-run --disable-background-networking --user-data-dir=$(CHROME_PROFILE) --enable-experimental-web-platform-features --enable-quic --origin-to-force-quic-on=seirdy.one:443 --headless=new
|
||||
CHROME_FLAGS += --headless --disable-network-portal-notification --disable-client-side-phishing-protection --disable-gaia-services --disable-sync --no-vr-runtime --no-wifi --no-crash-upload --no-report-uload --disable-extensions --allow-browser-signin=false --no-default-browser-check --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-device-discovery-notifications --disable-domain-reliability --disable-fonts-googleapis-references --disable-field-trial-config --lang=en-US --disable-ntp-popular-sites --disable-offer-store-unmasked-wallet-cards --disable-office-editing-component-extension --disable-fine-grained-time-zone-detection --disable-background-timer-throttling --disable-breakpad --enable-blink-features=LayoutInstabilityAPI --enable-features=UseDnsHttpsSvcb,UseDnsHttpsSvcbAlpn,AsyncDns --no-first-run --disable-background-networking --user-data-dir=$(CHROME_PROFILE) --enable-experimental-web-platform-features --enable-quic --origin-to-force-quic-on=seirdy.one:443
|
||||
CHROME_FLAGS_COMMA = 'disable-extensions,no-default-browser-check,disable-client-side-phishing-detection,disable-component-update,disable-default-apps,disable-device-discovery-notifications,disable-domain-reliability,disable-background-timer-throttling,disable-breakpad,no-first-run,disable-background-networking,js-flags=--jitless'
|
||||
# When quiet, my lappie's CPU power is benchmarked to be a bit under 1000. The CPU throttling calculator recommends throttling by 2.3.
|
||||
# Multiply that by 3 cuz imo it's way too generous. It targets devices like the Moto G4; I target devices like the JioPhone 2.
|
||||
|
|
|
@ -15,6 +15,19 @@
|
|||
],
|
||||
"hints": {
|
||||
"apple-touch-icons": "off",
|
||||
"axe/aria": "off",
|
||||
"axe/color": "off",
|
||||
"axe/forms": "off",
|
||||
"axe/keyboard": "off",
|
||||
"axe/language": "off",
|
||||
"axe/name-role-value": "off",
|
||||
"axe/semantics": "off",
|
||||
"axe/sensory-and-visual-cues": "off",
|
||||
"axe/structure": "off",
|
||||
"axe/tables": "off",
|
||||
"axe/text-alternatives": "off",
|
||||
"axe/time-and-media": "off",
|
||||
"axe/parsing": "off",
|
||||
"compat-api/css": [
|
||||
"error",
|
||||
{
|
||||
|
@ -90,7 +103,7 @@
|
|||
"error",
|
||||
{
|
||||
"connectionType": "3GSlow",
|
||||
"loadTime": 12
|
||||
"loadTime": 11
|
||||
}
|
||||
],
|
||||
"css-prefix-order": "error",
|
||||
|
|
|
@ -39,13 +39,12 @@ run_xmllint() {
|
|||
# delete the stylesheet from the html file; we'll re-insert it later.
|
||||
sed 7d "$html_file" | run_xmllint | tail -n +2 >"$tmp_file"
|
||||
{
|
||||
head -n7 "$tmp_file" | sed -e 's/^\t//'
|
||||
head -n7 "$tmp_file"
|
||||
cat "${OUTPUT_DIR:?}/tmp.css"
|
||||
# shellcheck disable=SC2016 # these are regex statements, not shell expressions
|
||||
#shellcheck source=/home/rkumar/Executables/ghq/git.sr.ht/~seirdy/seirdy.one/scripts/xhtmlize.sh
|
||||
sed \
|
||||
-e '1,7d' \
|
||||
-e 's/^\t//' \
|
||||
-e 's|</span><span itemprop="familyName"|</span>\ <span itemprop="familyName"|' \
|
||||
-e 's|class="u-photo photo"[^<]*<|class="u-photo photo"/> <|' \
|
||||
-e 's|<pre>|<pre tabindex="0">|' \
|
||||
|
|
|
@ -16,7 +16,7 @@ sed -i -e 's|<html lang="en-us"|<html xmlns="http://www.w3.org/1999/xhtml" lang=
|
|||
mv "$output_dir/resume/index.html" "$temp_resume"
|
||||
|
||||
{
|
||||
sed -e '7q;d' "$output_dir/index.html"
|
||||
printf '\t' && sed -e '7q;d' "$output_dir/index.html"
|
||||
} >"$output_dir/tmp.css"
|
||||
cleanup() {
|
||||
rm -f "$output_dir/tmp.css"
|
||||
|
|
Loading…
Reference in a new issue