#!/bin/sh # This file is part of Haketilo # # Copyright (C) 2021, Wojtek Kosior # # This program is free software: you can redistribute it and/or modify # it under the terms of the CC0 1.0 Universal License as published by # the Creative Commons Corporation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # CC0 1.0 Universal License for more details. # Call like: # ./process_html_file.sh html/options.html . ./shell_utils.sh FILE="$1" FILEKEY=$(sanitize "$FILE") if [ "x$(map_get HTML_FILENAMES $FILEKEY)" = "xyes" ]; then printf 'import loop on %s\n' "$FILE" >&2 exit 1 fi map_set_export HTML_FILENAMES $FILEKEY yes awk '\ !/^[\t\r ]*[\t\r ]*$/{ print $0; } /^[\t\r ]*[\t\r ]*$/{ indent = substr($0, 1, index($0, "<") - 1); command = "./process_html_file.sh " $2; while (command | getline) { print indent $0; } if (close(command) != 0) exit 1; }' < "$FILE" ck A Web Extension to facilitate replacing sites' js with user-supplied scripts
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-01-14 22:48:01 +0100
committerWojtek Kosior <koszko@koszko.org>2022-01-14 22:48:01 +0100
commite7d11c7c1173d07db741301053db78b835a73ab3 (patch)
tree2f7e5b3e494f896855a2417694df7338745f0770 /test/profiles.py
parent299864ee0901df8db2314cc7c07d6c481927c8aa (diff)
downloadbrowser-extension-e7d11c7c1173d07db741301053db78b835a73ab3.tar.gz
browser-extension-e7d11c7c1173d07db741301053db78b835a73ab3.zip
add settings page with styling
Diffstat (limited to 'test/profiles.py')
0 files changed, 0 insertions, 0 deletions