-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.html
181 lines (170 loc) · 11.2 KB
/
settings.html
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<!--
The MIT License (MIT)
Copyright (c) 2015 8pecxstudios.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<html>
<head>
<title>Restart My Chrome Options</title>
<link rel="stylesheet" href="css/custom.css" type="text/css" />
<link rel="stylesheet" href="css/uikit.gradient.min.css" type="text/css" />
<link rel="stylesheet" href="css/notify.gradient.min.css" type="text/css" />
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/uikit.min.js"></script>
<script src="js/notify.min.js"></script>
</head>
<body id="main">
<hr class="uk-grid-divider" style="border:none;"></hr>
<div class="uk-container uk-container-center">
<div class="uk-grid" data-uk-grid-margin="">
<div class="uk-width-medium-1-1">
<div class="uk-alert uk-alert-danger">
<h2>Important:</h2>
<p class="uk-text-break">As of chrome version 46, They have removed access to chrome:restart in content scripts <a href="https://goo.gl/deTVT2" id="learnMoreGoo" target="_Blank">Learn more here</a> this means Restart My Chrome will no longer work, If you don't like this change by google please add your comment to the above URL maybe voicing your frustrations over this change will allow them to create an alternative API that allows restarting of chrome in extensions.</p>
</div>
</div>
</div>
</div>
<hr class="uk-grid-divider" style="border:none;"></hr>
<div class="uk-container uk-container-center">
<div class="uk-grid" data-uk-grid-margin="">
<!-- Confirmations and notifications -->
<div class="uk-width-medium-1-2">
<div class="uk-panel uk-panel-box">
<h1 class="uk-panel-title"><i class="uk-icon-envelope uk-icon-large"></i> <span id="confirmHeading">Confirmations:</span></h1>
<input type="checkbox" id="enableConfirm" />
<label id="confirmLabel" for="enableConfirm">Enable restart confirmation.</label>
<br/>
<input type="checkbox" id="enableConfirmData" />
<label id="confirmDataLabel" for="enableConfirmData">Enable clear data restart confirmation.</label>
</div>
<!-- Timed restart -->
<div class="uk-panel uk-panel-box">
<h1 class="uk-panel-title"><i class="uk-icon-clock-o uk-icon-large"></i> Auto restart at set time.</h1>
<div class="uk-form-row">
<input type="checkbox" id="enableTimedRestart" />
<label id="enableTimedRestartLabel" for="enableTimedRestart">Enable automatic restart at set interval. (on|off)</label>
</div>
<div class="uk-form-row">
<input type="radio" id="timedRestartHour" name="timedRestartTime" value="1" />
<label id="restartTimeHourLabel" for="timedRestartHour">Hour based timer.</label>
<br/>
<input type="radio" id="timedRestartMinute" name="timedRestartTime" value="2" />
<label id="restartTimeMinuteLabel" for="timedRestartMinute">Minute based timer.</label>
</div>
<div class="uk-form-row">
<label id="timedRestartTimeLabel" for="setRestartTime">Set restart time: </label>
<input type="number" id="setRestartTime" maxlength="2" min="1" max="60" value="1" />
</div>
<div class="uk-form-row">
<span class="uk-text-large uk-text-bold" id="restartInLabel">Restarting in:</span><span id="remainingTime" class="uk-text-large uk-text-danger uk-text-bold">00:00</span><span class="uk-text-large uk-text-bold" id="restartInMinutesLabel"> minutes</span>
</div>
</div>
<!-- start page -->
<div class="uk-panel uk-panel-box">
<h1 class="uk-panel-title"><i class="uk-icon-home uk-icon-large"></i> <span id="startupTitle">Start-up page</span></h1>
<div class="uk-form-row">
<input type="checkbox" id="enableStartupPage" />
<label id="startupPageEnableLabel" for="enableStartupPage">Open a specific page after restart i.e your home page.</label>
</div>
<div class="uk-form-row">
<label id="startupPageURLLabel" for="startupPageURL">Enter website address: </label>
<input type="text" id="startupPageURL" maxlength="99" placeholder="Enter a web address (URL)"/><button class="uk-button uk-button-danger uk-button-mini uk-icon-remove" id="startupPageURLClear"/><button class="uk-button uk-button-success uk-button-mini uk-icon-save" id="startupPageURLSave"/>
</div>
</div>
<!-- support and change log -->
<div class="uk-panel uk-panel-box">
<h1 class="uk-panel-title"><i class="uk-icon-user uk-icon-large"></i> <span id="supportTitle">Support & Information.</span></h1>
<span id="contact-us">Need help contact support: </span><a href="https://8pecxstudios.com/contact-us" target="_Blank">contact-us <i class="uk-icon-envelope"></i></a>
<br/>
<span id="changelog">See all changes made: </span><a href="https://github.com/InternalError503/restart-my-chrome" target="_Blank">github <i class="uk-icon-github-alt"></i></a>
</div>
</div>
<!-- Browser Data -->
<div class="uk-width-medium-1-2">
<div class="uk-panel uk-panel-box">
<h1 class="uk-panel-title"><i class="uk-icon-cog uk-icon-large"></i> <span id="browsingDataHeading">Browsing Data:</span></h1>
<input type="checkbox" id="enableClearingData" />
<label id="clearDataLabel" for="enableClearingData">Enable clearing of browser data.</label>
<br/>
<br/>
<span id="clearDataFromHeading">Clear the following data from:</span>
<select id="clearDataFrom" class="uk-button">
<option id="hour" value="hour">The past hour</option>
<option id="day" value="day">The past day</option>
<option id="week" value="week">The past week</option>
<option id="month" value="month">The last 4 weeks</option>
<option id="forever" value="forever">The beginning of time</option>
</select>
<br/>
<br/>
<form class="uk-form">
<fieldset data-uk-margin>
<div class="uk-form-row">
<input type="checkbox" id="dataAppCache" />
<label id="dataAppCacheLabel" for="dataAppCache">Clear AppCache.</label>
<br/>
<input type="checkbox" id="dataCache" />
<label id="dataCacheLabel" for="dataCache">Clear Cache.</label>
<br/>
<input type="checkbox" id="dataCookies" />
<label id="dataCookiesLabel" for="dataCookies">Clear Cookies.</label>
<br/>
<input type="checkbox" id="dataDownloads" />
<label id="dataDownloadsLabel" for="dataDownloads">Clear Downloads.</label>
<br/>
<input type="checkbox" id="dataFileSystems" />
<label id="dataFileSystemsLabel" for="dataFileSystems">Clear File Systems.</label>
<br/>
<input type="checkbox" id="dataFormData" />
<label id="dataFormDataLabel" for="dataFormData">Clear Form Data.</label>
<br/>
<input type="checkbox" id="dataHistory" />
<label id="dataHistoryLabel" for="dataHistory">Clear History.</label>
<br/>
<input type="checkbox" id="dataIndexedDB" />
<label id="dataIndexedDBLabel" for="dataIndexedDB">Clear IndexedDB.</label>
<br/>
<input type="checkbox" id="dataLocalStorage" />
<label id="dataLocalStorageLabel" for="dataLocalStorage">Clear Local Storage.</label>
<br/>
<input type="checkbox" id="dataPluginData" />
<label id="dataPluginDataLabel" for="dataPluginData">Clear Plugin Data.</label>
<br/>
<input type="checkbox" id="dataPasswords" />
<label id="dataPasswordsLabel" for="dataPasswords">Clear Passwords.</label>
<br/>
<input type="checkbox" id="dataWebSQL" />
<label id="dataWebSQLLabel" for="dataWebSQL">Clear WebSQL.</label>
<br/>
<a id="sAll">Select all</a> | <a id="dAll">Deselect all</a>
<br/>
</div>
</fieldset>
</form>
<br/>
<div class="uk-alert uk-alert-danger">
<span id="disclaimer">The (Clear Browser Data) feature is use at own risk, If you use this feature then you understand the risk that it permanently deletes this data, What data does it cover</span> <a href="https://github.com/InternalError503/restart-my-chrome#clear-browser-data" id="learnMore" target="_Blank">Learn more...</a>
</div>
</div>
</div>
</div>
</div>
<script src="js/settings.js"></script>
</body>
</html>