blob: ec98b101638f70eeac7ce5e1318affef763a9d89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
<!DOCTYPE html>
<html>
<head>
<title>Redirector Extension Settings</title>
<style type="text/css">
body {
font-family: Helvetica, Georgia, Arial, sans-serif;
font-size:10pt;
min-height:100%;
background:-moz-linear-gradient(top, #bcd, #fff);
margin:0; padding:0;
}
html {
height:100%;
margin:0;
padding:0;
}
h1 { text-align:center; color:#555; text-shadow:0px 0px 15px white; font-size:34pt; padding:0px; margin:20px 0px 0px 0px; }
label { display:table-cell; }
input { display:table-cell; }
li { margin:0; padding:5px; border-top: dotted 1px grey;}
li:first-child { border-top:none;}
#actions { width:600px; margin:10px auto; text-align:center; }
#redirect-list {
-moz-user-select: -moz-none;
border:solid 1px grey;
margin:auto;
padding:0px;
width: 700px;
list-style-type:none;
list-style-position:outside;
border-radius:3px;
box-shadow: 0px 0px 2px grey;
text-shadow: 1px 1px 1px white;
}
#config { display:none; }
button { border:solid 1px grey; border-radius:4px; background:-moz-linear-gradient(top, #ccc, #fff); cursor:pointer;}
h5 { text-align:center; margin:0px; padding-left:130px; }
.pattern, .redirectTo { color:blue; font-style:italic;}
.exampleUrl, .redirectResult { color:blue; }
#redirect-list li:nth-child(odd) { background:-moz-linear-gradient(top, #ddf, #cce); }
#redirect-list li:nth-child(even) { background-color:#fff; }
#redirect-form div { display:table-row; }
#redirect-form { display:none; }
</style>
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
</head>
<body>
<h1>Redirector</h1>
<h5>Go where <em>YOU</em> want!</h5>
<div id="actions">
<button id="new-redirect">New Redirect...</button>
<button id="configure">Configure</button>
<button id="import">Import</button>
<button id="export">Export</button>
</div>
<ul id="redirect-list">
<li>
<div>Redirect: <span class="pattern">pattern</span> to <span class="redirectTo"></span></div>
<div>Example: <span class="exampleUrl"></span> becomes <span class="redirectResult"></span></div>
<div>
<a class="edit" href="#edit">Edit</a>
<a class="delete" href="#delete">Delete</a>
</div>
</li>
</ul>
<div id="config">
<h2>Configuration</h2>
<input type="checkbox" id="enable-redirector" data-pref="enabled" />Enabled
<input type="checkbox" id="show-status-bar-icon" data-pref="showStatusBarIcon"/> Statusbar icon
<input type="checkbox" id="show-context-menu" data-pref="showContextMenu"/> Context menu
<input type="checkbox" id="enable-debug-output" data-pref="debugEnabled"/> Debug output
</div>
<div id="redirect-form">
<div>
<label>Description</label>
<input type="text" value="foo"/>
</div>
<div>
<label>Example URL</label>
<input type="text" value="foo"/>
</div>
<div>
<label>Include Pattern</label>
<input type="text" value="foo"/>
</div>
<div>
<label>Exclude Pattern</label>
<input type="text" value="foo"/>
</div>
<div>
<label>Redirect To</label>
<input type="text" value="foo"/>
</div>
<div>
<label>Pattern Type</label>
<input type="radio" /> Regular Expression
<input type="radio" /> Wildcard
</div>
<div>
<label>Unescape matches</label>
<input type="checkbox"/>
</div>
<div>
<label>Enabled</label>
<input type="checkbox" />
</div>
</div>
</body>
</html>
|