-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
164 lines (154 loc) · 4.52 KB
/
config.js
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
export const config = {
// debug mode
isDebug: false,
// default list of html elements (* for all)
defaultTags: "img",
// whitelist
defaultWhitelist: "xkcd.com",
// css
currentCssVersion: 5,
cssVersions: [
// version 0
"/* Mimic Chrome as closely as possible */\n\
div.comic-text-popup {\n\
display: none;\n\
position: absolute;\n\
max-width: 300px;\n\
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#e4e5f0));\n\
padding: 3px;\n\
font-size: 12px;\n\
font-family: 'Segoe UI', Calibri, Helvetica, Verdana, sans-serif;\n\
cursor: default;\n\
-webkit-border-radius: 4px;\n\
border: 1px solid #666;\n\
color: 666;\n\
text-align: left;\n\
text-decoration: none;\n\
font-variant: normal;\n\
}",
// version 1
"/* Mimic Chrome as closely as possible */\n\
div.comic-text-popup {\n\
display: none;\n\
position: absolute;\n\
max-width: 300px;\n\
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#e4e5f0));\n\
padding: 3px;\n\
font-size: 12px;\n\
font-family: 'Segoe UI', Calibri, Helvetica, Verdana, sans-serif;\n\
cursor: default;\n\
-webkit-border-radius: 4px;\n\
border: 1px solid #666;\n\
color: 666;\n\
text-align: left;\n\
text-decoration: none;\n\
font-variant: normal;\n\
z-index: 99999999;\n\
}",
// version 2
"/* Mimic Chrome as closely as possible */\n\
div.comic-text-popup {\n\
display: none;\n\
position: absolute;\n\
max-width: 300px;\n\
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#e4e5f0));\n\
padding: 4px;\n\
font-size: 12px;\n\
font-family: 'Segoe UI', Calibri, Helvetica, Verdana, sans-serif;\n\
font-weight: normal;\n\
font-variant: normal;\n\
cursor: default;\n\
-webkit-border-radius: 4px;\n\
border: 1px solid #777;\n\
color: #666;\n\
text-align: left;\n\
text-decoration: none;\n\
line-height: normal;\n\
letter-spacing: normal;\n\
text-shadow: none;\n\
text-transform: none;\n\
list-style: none;\n\
text-indent: 0;\n\
z-index: 99999999;\n\
}",
// version 3
"/* Mimic Chrome as closely as possible */\n\
div.comic-text-popup {\n\
display: none;\n\
position: absolute;\n\
max-width: 300px;\n\
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#e4e5f0));\n\
padding: 2px 4px;\n\
font-size: 12px;\n\
font-family: 'Segoe UI', Calibri, Helvetica, Verdana, sans-serif;\n\
font-weight: normal;\n\
font-variant: normal;\n\
cursor: default;\n\
-webkit-border-radius: 4px;\n\
-webkit-box-shadow: 2px 2px 3px #676767;\n\
border: 1px solid #767676;\n\
color: #454545;\n\
text-align: left;\n\
text-decoration: none;\n\
line-height: normal;\n\
letter-spacing: normal;\n\
text-shadow: none;\n\
text-transform: none;\n\
list-style: none;\n\
text-indent: 0;\n\
z-index: 99999999;\n\
}",
// version 4
"/* Mimic Chrome as closely as possible */\n\
div.comic-text-popup {\n\
max-width: 300px;\n\
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#e4e5f0));\n\
padding: 2px 4px;\n\
font-size: 12px;\n\
font-family: 'Segoe UI', Calibri, Helvetica, Verdana, sans-serif;\n\
font-weight: normal;\n\
font-variant: normal;\n\
cursor: default;\n\
-webkit-border-radius: 4px;\n\
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.65);\n\
border: 1px solid #767676;\n\
color: #454545;\n\
text-align: left;\n\
text-decoration: none;\n\
line-height: normal;\n\
letter-spacing: normal;\n\
text-shadow: none;\n\
text-transform: none;\n\
list-style: none;\n\
text-indent: 0;\n\
\n\
/* don't mess with these */\n\
display: none;\n\
position: absolute;\n\
z-index: 99999999;\n\
}",
// version 5
"div.comic-text-popup {\n\
font-size: 12px;\n\
max-width: 300px;\n\
color: #454545;\n\
border: 1px solid #767676;\n\
padding: 2px 4px;\n\
font-family: 'Segoe UI', Calibri, Helvetica, Verdana, sans-serif;\n\
font-weight: normal;\n\
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#e4e5f0));\n\
font-variant: normal;\n\
cursor: default;\n\
-webkit-border-radius: 4px;\n\
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.65);\n\
text-align: left;\n\
text-decoration: none;\n\
line-height: normal;\n\
letter-spacing: normal;\n\
text-shadow: none;\n\
text-transform: none;\n\
list-style: none;\n\
text-indent: 0;\n\
margin: 0;\n\
}"]
};