shellfox/options.html
Jaidyn Ann 45462ffa98 Register commands and URL-regexes separately
This allows easy re-use of commands, tying names
to URL-regexes rather than command-strings.
Much more user-friendly, I reckon!

Also, now we use “$URL” instead of “%s” for URL
substitution in commands. More shelly that way.
2024-03-02 13:25:06 -06:00

36 lines
905 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
</head>
<body>
<section>
<h3>Shell commands</h3>
<p>Add shell commands, to be executed with a pages URL as its argument. In a command, $URL will be replaced with the target pages URL.</p>
<table id="commandTable">
<tr>
<th>Name</th>
<th>Shell command</th>
</tr>
</table>
<button style="width: 5em;" id="save-cmd">Apply</button>
</section>
<section>
<h3>URL/Page rules</h3>
<p>Associate the above commands with URLs, based on regex rules. When a URL is tied to a command, a button will appear in context-menus and the address bar to run said command.</p>
<table id="regexTable">
<tr>
<th>URL regex</th>
<th>Shell command</th>
</tr>
</table>
<button style="width: 5em;" id="save-regex">Apply</button>
</section>
<script src="options.js"></script>
</body>
</html>