-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpreferences.html
138 lines (133 loc) · 5.1 KB
/
preferences.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"
rel="stylesheet"
/>
<title>Preferences</title>
</head>
<body class="bg-gray-800 flex justify-center items-center h-screen">
<form
id="settingsForm"
class="bg-gray-700 text-white p-8 rounded-lg shadow-lg w-full max-w-md"
>
<p class="text-lg font-semibold mb-4">
Please select which Sci-hub mirror to use:
</p>
<div class="mb-4">
<label class="flex items-center mb-2">
<input
type="radio"
name="scihub-mirror"
value="https://sci-hub.se/"
class="form-radio text-blue-600"
/>
<span class="ml-2">sci-hub.se</span>
</label>
<label class="flex items-center mb-2">
<input
type="radio"
name="scihub-mirror"
checked
value="http://sci-hub.ru/"
class="form-radio text-blue-600"
/>
<span class="ml-2">sci-hub.ru</span>
</label>
<label class="flex items-center mb-2">
<input
type="radio"
name="scihub-mirror"
value="http://sci-hub.st/"
class="form-radio text-blue-600"
/>
<span class="ml-2">sci-hub.st</span>
</label>
</div>
<p class="text-lg font-semibold mb-4 mt-6">
Please select which Library Genesis mirror to use:
</p>
<div class="mb-6">
<label class="flex items-center mb-2">
<input
type="radio"
name="libgen-mirror"
checked
value="https://libgen.is/"
class="form-radio text-blue-600"
/>
<span class="ml-2">libgen.is</span>
</label>
<label class="flex items-center mb-2">
<input
type="radio"
name="libgen-mirror"
value="http://libgen.st/"
class="form-radio text-blue-600"
/>
<span class="ml-2">libgen.st</span>
</label>
<label class="flex items-center mb-2">
<input
type="radio"
name="libgen-mirror"
value="http://library.lol/"
class="form-radio text-blue-600"
/>
<span class="ml-2">library.lol</span>
</label>
</div>
<div class="mb-6">
<label class="flex items-center mb-2">
<input
type="checkbox"
name="annas-archive"
value="true"
class="form-checkbox text-blue-600"
/>
<span class="ml-2"
>Use Anna's Archive instead of Library Genesis</span
>
</label>
</div>
<div class="mb-6">
<label class="flex items-center mb-2">
<input
type="checkbox"
name="openInTheCurrentTab"
value="true"
class="form-checkbox text-blue-600"
/>
<span class="ml-2">Open new pages in the current tab</span>
</label>
</div>
<div class="mb-6">
<label class="flex items-center mb-2">
<input
type="checkbox"
name="useNexus"
value="false"
class="form-checkbox text-blue-600"
/>
<span class="ml-2"
>Try Nexus if Sci-hub does not have the articles.</span
>
</label>
</div>
<button
type="submit"
class="w-full bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
>
Save
</button>
<div class="notification mt-4 p-2 text-sm text-green-500 hidden">
Settings updated!
</div>
</form>
<script src="options.js"></script>
</body>
</html>