Commit b554a2b6 authored by spenibus's avatar spenibus

Reworked options page, prepared filter system. Added stylesheet. Added new icon for filter status.

parent 965482b6
......@@ -2,7 +2,7 @@
"manifest_version" : 2
,"name" : "CORS Everywhere"
,"version" : "18.3.8.2053"
,"version" : "18.5.23.1819"
,"author" : "spenibus"
,"description" : "Bypass CORS restrictions by altering http responses."
......
......@@ -2,30 +2,41 @@
<html>
<head>
<meta charset="utf-8">
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<form>
<fieldset>
<legend>Options</legend>
<div>
<div id="options">
<h1>Options</h1>
<form>
<fieldset>
<legend>Enabled at startup</legend>
<label>
<input type="checkbox" id="enabledAtStartup">
Enabled at startup
<input type="checkbox" id="enabledAtStartup"> On
</label>
</div>
<hr>
</div>
<label>
<input type="text" id="staticOrigin" placeholder="disabled">
Force the value of "access-control-allow-origin" (leave empty for default behaviour)
</label>
</div>
<hr>
<div>
</fieldset>
<fieldset>
<legend>Force value of "access-control-allow-origin"</legend>
<div>
Leave empty for default behaviour.
</div>
<input type="text" id="staticOrigin" placeholder="disabled">
</fieldset>
<fieldset>
<legend>Activation whitelist [UNDER DEVELOPMENT]</legend>
<div>
Specify on which host url the addon will activate.
Default is empty and activates everywhere.
One filter per line.
This uses regular expressions (ex: /^https?...localhost:8080\//i).
</div>
<textarea rows="5" style="width:100%;" placeholder="no filter"></textarea>
</fieldset>
<fieldset>
<legend>Remember to save your changes</legend>
<button type="submit">Save</button>
</div>
</fieldset>
</form>
</fieldset>
</form>
</div>
<script src="options.js"></script>
</body>
</html>
\ No newline at end of file
#options {
border:2px solid #AAA;
}
#options > h1 {
margin:0;
padding:4px;
background-color:#AAA;
}
#options > form {
padding:4px;
}
#options legend {
font-weight:bold;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment