-
Notifications
You must be signed in to change notification settings - Fork 23
/
SidebarModfix.uc.js
422 lines (403 loc) · 37.7 KB
/
SidebarModfix.uc.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
// ==UserScript==
// @name SidebarMod.uc.js
// @description Firefox侧边栏增强
// @include chrome://browser/content/browser.xul
// @charset UTF-8
// @author NightsoN
// @note v20130428: mino fixed by lastdream2013, add useful site
// @version 0.5
// ==/UserScript==
(function () {
if (!document.getElementById('sidebar-box')) return;
if (!window.SidebarMod) {
window.SidebarMod = {
operaLikeToggler: true,//是否显示Opera风格屏幕边缘侧边栏开关条
sitelist:[
{
name: 'firefox内部功能',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACZElEQVQ4jY3MzyvkcRzH8e8/4UK23cukSRoys5sDNU6yF1oHB6U4+f1jEW2b7GEvLoQDJfKjYWTGWmSVCXtYwxgkFq2vyI8vazKz49f3O9/Pcw/TTmlWedfj8n693m/J3Rxn2u00yGe2ZK6/vnmWM1syu50G2d0cZ5J22g2yOOyBwDr82XyewDrisIeddoMsnQ6a4Kgb5M9RAjP5BGbyEfst0flRN4otBck3boG9Rtirf+RmLoezlQHOVga4mcuJytlrxDduQbqym+Hn+yhXY1lc+q659F1zNZb1/47djHRpS4HtakKeYgKODAKODPz2NBTvEA+qyoOqoniH8NvTInnIUwzb1VzaUpAuBpNhq5ygMx3lty/C5w/wb3z+wKMs6EyHrXIuBpORlH4TbJSgLuUR9HagahqqphHS9ciDkK5H9kFvB+pSHmyUoPSbkJTeJFgvR3iKuJ2yoh5M8NSoBxPcTlkRniJYL0fpTUI6705ErFUilgsQywXcTWY++eBuMjPSE2uVnHcnIp12GRGeGsT3d4jFXIKuUjQtFHWsaSGCrlLEYm6466nhtMuIdNKWgFitRXdlo01ncLMzghACAF1xoytuAIQQ3OyMoE1noLuyEau1nLQlIB23GhDuevRZK6rTzL2yia4so84XojrMYfOF6Moy98omqtOMPmtFuOs5bjUg/fr0Cm2hDP3bWzRHKg/DRtTRJEITFkJfXodNWFBHk3gYNqI5UsPdhTL2Wl4ieRviZH+fFc1VgfjR9CyaqwJ/nxVvQ5wsuapiTGt1sfJuUzyHH188y/6HeNbqYmVXVYzpLyy1L7aWlTc/AAAAAElFTkSuQmCC',
childs: [
{
name: '书签',
url: 'chrome://browser/content/bookmarks/bookmarksPanel.xul',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACZElEQVQ4jZ2TW0xSARzGz5MvubVqrc1w3lAmoGZOikuui6E03VzLzFVW693nHnqwl9ZWaz21tZo9UNKoKIUkNW8BgjcsEUoPahDIuXDOkSPQ6qGvB1pbTVz1vX7/77f/vv/+BLGF1jy6GtqtPbnVzJaiPVqSntAK/xWm3No2ztsIbrYR0fGDXf8MiLk0vBg4jY1AOyKjtd/8ZkXO34cdmi7Oa0By8Tw2Au1gXMcQHqg2bTrMjCpymSndJcqjM1FuTSDmUqcy4bMQfQ1Yn9YgMdcKarQOIWtl+lOvklx9rrAEn8k6g6aSfIKe1C0I/maIwTNIrXQgtXIR6eAFbCw0QpisAO8sB+eshTDZAt7ZBHbkOGL2Qwi/rMHS41I2U5hLs8zPNyEduoxk4AjEuf1Yn66EMCEHN14G9k0xGHsBaFsh4iMNiPSpQD4qEfwPJDsJgiAIv1mREx1Tfea8J5AiO5CY3QfBowTvkCE+IgXzuhC0TYL4mAGRvgNYMkqTvvtFe37rwm9W5EaGamjR3w7xnT6z+lgp2KFi0P35oG1FYIf1WDIWf/F15+VvWmjYXnWVmaiHON8G7q0M8eGSzOrWvWAGVFizavChu8CS9XwhW5Ux7jEgMWMA56gG7zwKzqEH068E1VuGmE2Hhbt5c1kBq70Vbn6qGQnvKQieFlCDhxF9pQY7rAc7WA/KWof527tjWQErL+QhYboFUbsapKn066JRavz4sPBO4J4ktWyUI2pRw3tjRzo74Gl5knwiS5I90lt/eu9v7ur0Xt8en7m27XtWANkjPZfV/Cn3lZw2cyvx6y9+AKTve7YwH3ozAAAAAElFTkSuQmCC'
},
{
name: '历史',
url: 'chrome://browser/content/history/history-panel.xul',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACLklEQVQ4jZXST0sbQRzG8UkM/kFUjEEPkXgIhFzEg0d79ND3lZsnLQSKh4hvIB6sEiRViBvWzaZaClVpss1oME2JRkowm3V2/fagJhZrpQ88l/kNn2GGEaIXXywWW1xeXi5Eo9G3QoiAEML30MDc3Nyb1dVVPRaLLT6s9VIWAl0IzK0tarUaxuYmuhCUH6oLwWEmQ61W49P2dnfWPbksBF8GBjjWNKrVKl81jc99fVz5/Vz5/Rz5fBzn81SrVY41jaMe4OsC34aHSa+vI6UkvbbGYSjEWTDI2egoxaEh0qnU/SyV4uRvQGNsjI/xOO+np8nOzGBFIlTCYb5PTnISDLI1MsK7wUE+9PdT8/meA62JCX4uLFCfn+fH7CzVeJyzaJRKJIIVDlOemqIUClEeH+cqEPgTMAwD13VfrFIK27axbRsA13UxDONl4ObmBtM0aTabFAoFdF0nk8kAcHd39zpgmiYbGxsopXAch3q9Ti6XQynF7e0tnU6Hg4OD54BSqouk0+nu5mw2y8XFBe12m1arxfX19cvAYx+Ber3Ozs4OUkoqlQqWZVEqldB1/XXAcRx2d3eRUmJZFq7r4nkeUkpM0+z+RGEYBkop7ymglKLT6dBqtWg0GpRKJTzP4/z8HIBisdgDstkszWbzl1LKe/qYjuPQbre5vLzk9PQUKSUAtm0/XuE+yWSSvb099vf3/1lN08jn8+RyOZLJZA9IJBLaysoK/9OlpSUphBC/AZRXmz31YpJUAAAAAElFTkSuQmCC'
},
{
name: '扩展',
url: 'chrome://mozapps/content/extensions/extensions.xul',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACpElEQVQ4jYWSP2gTYRjGn8sf77t/w5E63KWXkCgmlrRBlEIGJ6GWBHHpJB3smkWQDKWKkwhdXNTiLLh1cSt0sINpS4e2wSKpJSEp7SXI0Tbel0tIcvc5FVts67s98Dy/9+Hl5XDJFAoFkk6nszzPRxljwXa73drd3V2en5+vnvUFLgMQQmZisdiCpmlgjOHg4ACU0h+Tk5N3lpaWev8FCILgI4TgFGBZFnieH+i6zp31+S8Kz83NkZGRke+6rluEkIf9fh+O45Q6nc5jVVXbmUwmYBgGVyqVvHMNpqenuWw2642OjkIURRBCIAgCGGMIhUJpQRBqjDEwxlAulxGJRB6cA4yNjfHj4+OIx+P/tAqHw+e067owTfN+IJ/P85IkPZUkidN1/bPneZedBQDQbrfRbDaxt7eHo6MjFkilUrlEIvFRFEWIoigIgnBleGNjA9vb27crlcoTx3EqAZ7no+FwGIZhoNPpvL0K0Gg0sLW1tVAoFMoAXmUyGS7guu41z/MgCAKuCgMApRT1er17qtfW1lhgMBicMMZAKYVt21AUBbIsXwiQZRmGYcQBYGJiIhYMBuFPpVLHAJ41Gg1QSg0Az0Oh0NmNqNfroJRCURT4/f5kLpe7p6rqB1mWj/3FYvGY47g3tVrtteM4neHh4ZeapoFSivX1daysrCysrq5+Ozk5+eXz+ZLJZBLRaPSWKIowTfNrAAAWFxf7AJDP54nrugAA0zSxubmZmJ2d/QkAU1NTXCQS+QLgkaZpME0TjLG/ryxJEqeqalCW5Reu66JUKqFYLLaazWaREOIbGhq6QQh5x/M8LMtCuVxGpVJZPv1ErtvtXtvZ2bmuKMpMtVq9a9s2Dg8Pf/d6vZuDwYBZlhWu1WrvW60WADDbttv7+/uf/gDt9izlrTPxAAAAAABJRU5ErkJggg==',
},
{
name: '下载',
url: 'chrome://mozapps/content/downloads/downloads.xul',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAAvxJREFUeJxtkz1sG3UYxn/vne/T9n04aZu2adOGqC0wEJREKiKtOoAEE7B0yAIpEhJFYkOCrRNDmKjEwkAlBpAQZWAsSytYIIJOfJUgnKZK44TY+Ozz+Xy+/zEkNRXwTu8rPc+j9+sR/hv+4sriF+fmzs1EcTSQXNBN3b5+7frNe5/fWwaG/8N5KGymrn77flcpVWQqK4ZqWCiliovvXVwDvH/DSw+ShYXnXjo1M/vYevdHfytrmLcGt2h0Gkgm2JpNr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ter.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABtElEQVQ4jc2SsUsbURzHf+DQRbxF19zSQSg0B67FbCVbF+f4HzR19wpdKqEaSofSg4AcBtNQQ6YmYBKFKgSOloRwxmDwLMlpQLn3Qi5Hohm+HRo1Vy/q2AdfePD9fb783pdH9F8cxphwnxfOVqKB9f3dxXRpvcq5eO1VORdJM7nkV/bKXiGMMcGv7JVJ0UHqCShWg/Ah3w5nK1H/l91SqtZaoPyJFaR4E+Knwm/N5NJowGrxeIniTdAWu1XyHKTomEqa9mL2KEEG6z6nLQZKtECRAkbXfFs0oy54ROFf9lcAs1QwrJdvSs63GzNWA73fhvhx2/BtHDTHBQB4SkREP886L0jR7w4lWn/lAUu5dv3mnQAmXRs8Qq81lnC1bfDevKw7qpC27McEGLw37wpo2faMlDw8oOT5g3BI62YAPHEFAJgAMBc77kdCWjczDpZy7fqFczXn+eM0k0tysbHm26yfjoN5bxAAMOEC5Z3Dd8LKd0aRAuhz+U7zQtqyZd1RPeHh+qLVHwRTjctlWXfUV/udHyGtm5F1R001Lpet/iAIQPSE/+lgejj4DMDs8D59L0hEfwC1m8lBvoNIXAAAAABJRU5ErkJggg=='
},
]
},
{
name: '购物',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACYElEQVQ4jZXQT0jTcRjH8e9FPEY3L4LoJS8ylZWGNhGdSIYuHTKGNtQt2ZoudSbKHMzCfwsZHdLpUqdzujRtJSFlGtYlLSz/HRr8okNCeLJ52OndIfqR1WE98IKH5/PAw/crEmxKRaqzRMob1HLlXk1c8ga1pDpLpASbUiFSutWSb93H2v4q6wfxWdtfxbfuI6VbLYkLfRW4V9y0LNi5HrTEpWXBjnvFTd7AVUShuwpT0Ez9TOM/3Xh4k/bHXX/NTUEzhe4qRMO4nd7nbhzLLmqnjbLA1hyOZReLH8OcxE5oDDWdymunjVwa0CD2Ih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WTlcgnCa+X3HStNnnJprNR3H57P/ioIG1lNlQTqO58CX9OnmMpXEpP/AWTQTUDpCM9IAAAAAElFTkSuQmCC'
},
{
name: '淘宝',
url: 'http://m.taobao.com',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAqUlEQVQ4jaWTsRGAIAxFs4Gj0DgGtTtQOIY7sAO1EzCOOxgLiCQRUfTf/TtE/zPBCAAAGAPiMvU5BgQRJjkj1zfe7JAguEw5tKfQPBYAX5NWn/YzpADmsQRWLyHcdP8C0IGa+H4TUGtFgy8AZ2Tp3RVwgH7b6wpaLfw6g8cWuGpnwStErHxG/aA2Vw4XQAxpLBtj2xxl+h82OwgQXd/5DGudpX0VOtMVPgBRELV9pv7F+wAAAABJRU5ErkJggg=='
},
{
name: '京东',
url: 'http://m.jd.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAy0lEQVQ4jc3TIQqEUBDGcS/hBcQDyB5gwWyxvmI1bdxL2IxbtlpeNngCwbBgEAxbVFgwiDaD8N/0BEVYXIsDX5wfzDCjpbrBkWjnA16XK4UrSHWDwhWLZKb1G2iCEIBUN1jX1A80QbgPUA257dDFCQCfx3M/oKKQv4HS8wHmPe0GClccA963OwC57WwDXZww9cMmkJkWY1UzVvVyB5lpUXo+bSQBaCM5A20kKVxBE4SMVQ1A6flLQM019QNtJOeDWVcXJ/PsJ/6FvfkCxwFl51kLjdoAAAAASUVORK5CYII='
},
{
name: '去哪儿',
url: 'http://m.qunar.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACHElEQVQ4jZXQz0sTYBzH8c9ETcvKRE1Xf0WHCDpIh44d8tCpS0FQES4aQ4JISiOTQm3qdAtxTrfQ+QubuZxmpi2bYZpjZkUHO1heLA1WCe8OY2q2BD/wgofn+3yfh+8jScofmCs8OPiB7cgfmCu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uWnS0AWm5Rlqu0dEG6Kb1ofHDOZmCgpCWinjBjEfT+oM2nqCNJ3/dvGBGWioiJLMF3CD8732/c4OQZLaAsJ8WMWyX8dTk4fFpIeOpiWG7xFJfEdZjCa3R7mLYDo4fLMSwHRrtLuuxhCYsbUQja7sHWvRLis9Y2z3QljaikZ9ZxYTIjL7hqgAAAABJRU5ErkJggg==',
childs: [
{
name: 'Gmail邮箱',
url: 'https://mail.google.com/mail/x/1cj43rhn0qhbt/?ltmpl=ecobh&nui=5&btmpl=mobile&shva=1',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiElEQVQ4jdWPsQ3AIAwEGYtZ2IZpvIGHoaRLm47q0wCyiY2SKspL3/mOJ4T/p8SI0TNnNKJtz5whGSUoMQLMcMOM9T7I14+UfEmHj5TUiikA4EsWGIAtMCUGvBWAWUkULFbZglrRiJREwo0IqNURDLgfjO/I2fLmJlhhN11iLngcb8GbTsHnuQAHliL7fehqZAAAAABJRU5ErkJggg=='
},
{
name: 'hotmail邮箱',
url: 'https://login.live.com/?pcexp=false',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAOklEQVQ4jWP47if3HxdmYGBgqN/F8B8XZmBgYGAYNWAwGEA5WPL+P07MwMDwfyfDf1x41IDBYwCFAABNnuSDUZI3LgAAAABJRU5ErkJggg=='
},
{
name: '网易邮箱',
url: 'http://m.mail.163.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAT0lEQVQ4jWNgoAX4z8DwHxsmWTM+MaI0Y2PjNQSfIrIMIDks8CkkKxwojglcBhLlf3SDSPIGTDEuPkWuwGkAvpAnJIbXMEKuIegFfOJUAQBXtbVLrN/2QwAAAABJRU5ErkJggg=='
},
{
name: 'QQ邮箱',
url: 'http://w.mail.qq.com/',
favicon: 'data:image/png;base64,iVBORw0KG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pmeu80uSNVW6VLB84Zj+S3zJsiJl5UqHunfXrdQn76N9UEuisvyWsuIZR3zJsgVz/hsDb4s1Ix8u4wAAAABJRU5ErkJggg=='
},
{
name: '139邮箱',
url: 'http://wapmail.10086.cn/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAp0lEQVQ4jWNgGAUMdl2H/8MwNjG7rsP/pbvv/mdgYGCQ7r6LKU6MATA5XOIM6AZgcyE+NoYBJLuAJ3fLf57cLXADYHxkDAsDbOIYBiADXHJwcWwm4nIBVnFiFMKiEZc4ZYA7e8t8ZIxNLHnPL6ziKbt+LWDgzt2UgIwZGBgwxDDEs7fEI4szsGduVGfPXqcGcxUynz17nRp75kZ1dJezZ25UZ8/cqA4AXbcUT3TS3DcAAAAASUVORK5CYII='
},
]
},
{
name: '翻译',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACiElEQVQ4jZWRy0obcRSHZzdZTjQXJXjJxMnkKip2dHJTlCRWjVlojJdNW9GCupxNq+LCIoqioG+QhXWtfYG/2I07LYJCID7C5Am+rpxFaWl74KzO+b7zgyN5vd6+YFBtJJK9DA6++adOJHsJBtWG1+vtk7q6go2N9U2ODo84PT7h9PiE3Z1dqvNVyjNlyjNlqvNVdnd2nfnR4REb65t0dQUbUjQaY3VllaWFRSqzcwz092NZFkIIXksIgWVZDPT3U5mdY2lhkdWVVeLxBFIy2UtpeppioUhPKMT9/T1/KiEEXo+HYqFIaXqaZLIXKRaLM1Gc+CsM4Pf7cckyPaEQE8UJYrE4kq5HyKYzGIaBS5b5srcHgG3bGIaBYRiOoJDP45JlLMsim86g6xEkTdOI6DpCCAzDoFKpOMD5+TkuWca2bQBeXl7w+/0IIYjoOpqmIalqiJCq/hFwyTK1Ws2Rvh4IqSqqGkLq7g46gl+B36W6urpyBN3dQaSOjk7Cmua8rVKpOIAQglqt5qR63RFCENY0Ojo6kQKBAMPGEDtb2wB8vbjA5/HQbDb58fCAbdv0qCqXl5d8v70FYGdrm2FjiEAggNTW1k4ukyUejfH89ESz2cQcGubw4MCJvfXpMx/evefu7o7npyfi0Ri5TJa2tnYkn8/HSCZLNBKhkM9Tr9fZ39/n7OzMEdzc3DD5dpJ6vU4hnycaiTCSyeLz+ZA8rR5SpkkynkDXNNJmio9ra3y7vnYEj4+PLC8tkzZT6JpGMp4gZZp4Wj1IbndLI6yFSZspRnM5RnM5xsfGKE1NUS7NUC7NUJqaYnxszJmnzRRhLYzb3dKQFEXpUxR3w624+Z9WFHdDUZS+n8aRSE09k0IMAAAAAElFTkSuQmCC',
childs: [
{
name: 'google翻译',
url: 'http://translate.google.com/m/translate',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABs0lEQVQ4jY2SP4viQBiHX0UQWz/AXb+VX8Iu/YqFhdhcd5BKEOTKC9jJFYrFgo3FIjYiCRauhTCQDMp4bJFklzCuLJLOWNj8rpDMJt7u7Q08xQzze953/hAR0el4QJLw8KR4fXkE/Wtch01zjP6gmxLsd9uPJafjAf1BF82WjmZLR61eRa1eVfNmS4cMxP8JksGk6FPB6XjAii1Qq1fBBYMMBL79+InvDIrbB0CzIpSmQHF0RnF0vkiTFxZX7A+6MOzwU0FxdEZKYJpj1fp1eO5KzF0JzYreF/iekzr77QMUhh2q1zDsUIULPQl6fXkEFww53cWKLWCaY3DBVMuaFWHuSsT7fM/5W5DTXYUMBGQgUJoCpelFst9tcc84DDuE7znQrAiFnrwIkuGY/W6rBIYdQgYC7RmHZkXwPQf3jL8JiCglISLKVCaqzfhZfc9RcMFwc/eMfGd9EWQbS+R0F9nGEtnGEpnKBJnKJFWxPNygPNygPePggqE942nBdTjG9xyUhxvVcqEnsWILrNjiTfCRJN9ZI99Zp8LxWsy73ztTmYCI6ObuGV/7Tym+/PqtICL6A7F/dNYyWabFAAAAAElFTkSuQmCC'
},
{
name: '有道词典',
url: 'http://dict.youdao.com/m',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAyklEQVQ4jc1QsQ3CMBB0R5seJJ/F2wPQpUtHSwN1RoiYgA0YgVEYIQNQuEFCiS1lhNDg5IE4gQpO+ub0d39/QvwVaujcK9N6ZVoP3dwACCFErWjH+VGTblGZNhhYIOF8VHyd06K/ZOwU/wYnacWingJfSUoD76DPUYPnRSq6bhRte94c4gagNbtUOlBWSUqdpH2fbLn57IXIhGIHcRE043FDaTxVVDwECyTcoIbORwUO+uhA2WOKr6/H/nbQpQWSaQPo5lU4GfvnuAOO7rs1HAnRyQAAAABJRU5ErkJggg=='
},
{
name: '海词词典',
url: 'http://3g.dict.cn/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACQElEQVQ4jY3Tz2vTYBzH8SB487I+U8RdxUzqhky8qCBDcOrJk/gHTBCPipTRNjAtKgh9oNXhaQOZ0B1EkLRYS5kV3Nb1hzSt1k27NGvRNa2lTZMmLcrHw5aOWFED72Nez/N9kochHJ0hHEX6+BFLhKMgHIXNTX/Y3HTJ5vZy+6bu7Wd+fwhHcXN5DamTdkvOTAmuTBmuTAnXFjOYCIRxyPMYxO29bwEGp/04/HwVidNjllheAMsLsAezGI/mcSNRhCMl4sSTBRCOzvQB8XOnLJmA2TAv4PLbdTgz5W3E3MngtB8sL2D54jhYXsBoKIf1Z0+RqLdR7f7ESl3Dg/w3HAtlwfICzi9+giMlbo/j9A71AJYXMPYqh3fVFmSjC1nv7GZ0EZMVjO4gk/ENXFqIYICjHgvgW9tCRe+goBlWQO+gonfwMP8VLC/gbDSP67EcbBx9bwE+NFQUNAOzchuzchuBmo43Db0HJL8rO2NmcTu5AZvb2+gBR4MCSi0NQmsXMJuT28irBkRF7S12KyWCcLRl2UG80sAX1cBcVe+rqBqIVxpgeQEjoSwmY9n+Ee5kNlFWNKw0DczX9F6rioGyoqEYnYLkIzgT+YiJwOv+Q7QHswhJMkpNFZuqjoLWgaTqKDVVbOTDkPwHIPkIJB/582c0EVdaRFiq4HOtjmBxC46UiOTVvb2XJR9B48UFWH6k/yl5ZY8FkXwE/wSGeQH2l2mMzEdw8O6jPoQxr/Pfsrnp0gBHPcTpHWIYhjERhmGYX1cvojf/ywBHAAAAAElFTkSuQmCC'
},
{
name: '在线字典',
url: 'http://www.chazidian.com/m/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABJElEQVQ4jY2TMWrEMBBFdQYJuU23BsM2gbQBFSl0AEsEs+CzxClETpALpEwbttjGJ9hiwXLh1uf4W81EcpRNBgTfo9HTeDQjlnmCk7q4xrbP1joErEPIfGJsezipsbWPt5eiTo0BJfOqwjJPAAAnNevUorE54Hw6ZoCSzmN2ENFY3jifjlkNurpBNDbTFAcAl/0DRFc3DEhrkeptNgRwUkNQ4H8BTurfAV5V6OoGz4/3nHZXN3BSIxrL+ibgryIWAVQY+r9bOo1nwOvB/6j+Vqc+ryrWwqsdtrbME74+3/l7HUKxkZzUEJf9U+ZMe2Eb7O9UBnJSf/fBMk/cLOntqa1DgJOaZ4NrQJNXSrMEoUszAL01vXc0FusQ+BCNL+1FYzG2Pa51VtKhEx+TOgAAAABJRU5ErkJggg=='
},
]
},
{
name: '其他',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC5UlEQVQ4jZXG70uTCQDA8eePcCR4NKcgAxkI3YvDg/BFrOZo1pGsX1zMwnDtmqQvnGYMWReu02Y5y/zRUlPTRT49On8uDaVVktXl9O6snvBHJ+flzGd7MWR8752vdy8+8BHSCt05mUVNsq7Uxz5Hb1J0pT4yi5rktEJ3jqCxNMoVnSHaRxfxjf+ZlPbRRSo6Q2gsjbKQZW3F0fGSUzcnOe55mpRTNydxdLxE+0s7QtZFH+b6ILaWKQrcI+hdAYq8QU54xtG7Auhd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UO98mAACjKXrqkq/C7Vpk8s6Tp/gCvDQkV4O+/+MAAAAASUVORK5CYII='
},
{
name: 'Wolfram|Alpha',
url: 'http://m.wolframalpha.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAByUlEQVQ4jZ2SP28TQRDFx0jIiRNsbmccHPtu506JcEMFUkCRUDqqFCkoKPINEEViCUhHgVLyGVKmQkIgN9R0hjZEPt/OmT8miSLkNJHiyJvC9iXCnIV40uvmNzNvdgEm6OvM3PobgOlJNYksQKYzXVr6NgSaANkYvZ8d8ldGNUJ8tzk7W0xtIg6/Fqf8KXRuPYkweCrE1pBfD9Ffi8nfFdLhlxyVUxvsF72HMflWiNNc/yv4CuBaU6l8pCqPBXU/rUFE+kNEQbVd8Bb2bpZ8AACIC9qJUO8I6mNBfS7Ett/9PWYhtoK6L6h7UZGPDmbm1y+vTUFVUL8fTTreeD7w5suBa1uXm6B7so/e2vgBp6YCUX53Qn4rxDZWencM7uRLS4b051FRagRiK8rttUivJvBhtrho0HtniH8J6l4SYfPFwLWtPyLoc4P6hyheTl4AADINKOciFTwyyGdp6xvieuh4d76ryoMw7y6ORQnnFpYFh1OITxMQuSvEtqW8t6mfCACgXahsG+K6Qfd+jO6zIbzXulG53Xa8bUO60QTIpvGZMDd/rwFwHQCgAeWcIe60yd8YFRhyVz4CFCZucVURBbWTLFX/GfgfXQA2JSG687sO8AAAAABJRU5ErkJggg=='
},
{
name: '快递查询',
url: 'http://wap.kuaidi100.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADEElEQVQ4jY3T329TBRjG8f4PxJtKXDS7wYiJLpksyNZmg2SJJO5icVwskhBJjMluqAkabnCpRiNIswapE5jDIVtWkbVbkOKcGxAkQoF2/d216zln7VnLbNf2nPbstF8vjkIWbrx4rt73/eTNm7ymN0ajDM7LHH9U5stkjdFck4t5tsVXbOIrNvlF3uJ8S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vuIyWWS7TqDmLM3d0Jkidae4s99PD4LVp6sAPfpzlwzlfzonjD/N9MzN89jzGVRswxOswzF2IUb+O/swc5NrHhH0+/ra4mY/9zl2GC4qw367AcukaoxcvY71cirW0HNuNW9iu32Tg0BHs5XdQg6FogPNhLZIgYr9dwcTL17jqG5DrngDgedeM414Vzgc1DJ05hySIDB4+DqoaAYR+TtKuW4YkiNrrTt+Cp7kFgB/vW+lO3xIVlwSR8WeNEcDEi1dRgf4D2YS9Xqa6PmLOP42nuYWQ10vf3syovC979kUA1is3NGdHqp6Ax8NUTy9+i422hFQcldWooRCBCTcdqXottz15aQRgKbmiOa1Xy5j+0kd74mLCfj8DWbn4TGas18pQxhzYSm9quYZ4HagqcY7Kas3pt1gZLS5BEkQU2cXQ6UIUp4zp6Em+F5egyC4M85KQBBGjPj3SwaSxG0kQ6VySBsDnHbsjAKeM6Vg+3gETw4UX6FqzGYCebTs1rQDi1HAY48r1dC5Jw9s3gGF+Mm0LUlADQXp3ZuB+24Rc8whJEJls76Q/KxdJEBmruD+7B8MFRTEKh/0KbeIiRoqK8VtsSHMSMcTrkASRtoRUFKc8C5ju6Y0CuJ4+50frh8isK9JRg0H6D2Zr8ZGi4thVHszJQxJEulZvQg0GMR05oRXIj57iMw9hiNfRkaIn4HbHAgLj43SlbcRxrwq/za61OyOwIrsYzMljvKHx38cE8GtkFPOpM3zevitmdT9t3YH7TdP/r3HGwoqCs7qOrxn76Vi0EsO8JIzL1+KqfxZTDPAbErj2EvvFq1YAAAAASUVORK5CYII='
},
{
name: '火车票查询',
url: 'http://t.qunar.com',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACHElEQVQ4jZXQz0sTYBzH8c9ETcvKRE1Xf0WHCDpIh44d8tCpS0FQES4aQ4JISiOTQm3qdAtxTrfQ+QubuZxmpi2bYZpjZkUHO1heLA1WCe8OY2q2BD/wgofn+3yfh+8jScofmCs8OPiB7cgfmCuUJBn7Z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QSo2v71/bUp9e6Hi+WaBjQCHYOwmiAh7javebhlI7rS8y267DuMIfGyH1Cj0fcYcAAAAASUVORK5CYII='
},
]
},
],
makeButton: function (sitelist, parent) {
var i,
len = sitelist.length,
item,
btn,
menu,
menupopup,
menuitem,
frag = document.createDocumentFragment();
insertpoint = document.querySelector('#sidebar-header .tabs-closebutton');
for (i = 0; i < len; i++) {
item = sitelist[i];
if (item.childs) {
if (!parent) {
btn = frag.appendChild(document.createElement('toolbarbutton'));
btn.setAttribute('tooltiptext', item.name);
btn.setAttribute('type', 'menu');
btn.setAttribute('style', 'list-style-image: url("' + item.favicon + '")');
menupopup = btn.appendChild(document.createElement('menupopup'));
SidebarMod.makeButton(item.childs, menupopup);
} else {
if (item === 'sep') {
parent.appendChild(document.createElement('menuseparator'));
} else {
menu = parent.appendChild(document.createElement('menu'));
menu.setAttribute('label', item.name);
menu.setAttribute('class', 'menu-iconic');
menu.setAttribute('style', 'list-style-image: url("' + item.favicon + '")');
menupopup = menu.appendChild(document.createElement('menupopup'));
SidebarMod.makeButton(item.childs, menupopup);
}
}
} else if (parent) {
if (item === 'sep') {
parent.appendChild(document.createElement('menuseparator'));
} else {
menuitem = parent.appendChild(document.createElement('menuitem'));
menuitem.setAttribute('label', item.name);
menuitem.setAttribute('tooltiptext', item.name);
menuitem.setAttribute('url', item.url);
menuitem.setAttribute('class', 'menuitem-iconic');
menuitem.setAttribute('src', item.favicon);
menuitem.setAttribute('oncommand', 'openWebPanel(this.getAttribute("tooltiptext"), this.getAttribute("url"))');
}
} else {
btn = frag.appendChild(document.createElement('toolbarbutton'));
btn.setAttribute('tooltiptext', item.name);
btn.setAttribute('style', 'list-style-image: url("' + item.favicon + '")');
btn.setAttribute('url', item.url);
btn.setAttribute('onclick', 'openWebPanel(this.getAttribute("tooltiptext"), this.getAttribute("url"))');
}
}
insertpoint.parentNode.insertBefore(frag, insertpoint);
},
makeSplitter: function () {
var sidebarBox = document.getElementById('sidebar-box'),
splitter = sidebarBox.parentNode.insertBefore(document.createElement('splitter'), sidebarBox),
sidebarBoxArrow;
splitter.setAttribute('id', 'sidebar-box-splitter');
splitter.setAttribute('onclick', 'toggleSidebar();');
sidebarBoxArrow = splitter.appendChild(document.createElement('div'));
sidebarBoxArrow.id = 'sidebar-box-arrow';
sidebarBoxArrow.className = sidebarBox.hidden ? 'right' : '';
//sidebarBoxArrow.className = sidebarBox.collapsed ? 'right' : '';
},
toggleSidebar: function (commandID, forceOpen) {
var sidebarBox = document.getElementById("sidebar-box"),
sidebar = document.getElementById("sidebar"),
sidebarTitle = document.getElementById("sidebar-title"),
sidebarSplitter = document.getElementById("sidebar-splitter"),
sidebarBoxArrow = document.getElementById('sidebar-box-arrow'),
lastcommand = commandID || sidebarBox.getAttribute('sidebarcommand') || sidebarBox.getAttribute('sidebarlastcommand') || 'viewBookmarksSidebar';
//if (!commandID && sidebarBox.collapsed) {
if (!commandID && sidebarBox.hidden) {
if (sidebarBox.getAttribute('sidebarcommand') === '') {
toggleSidebar(lastcommand, true);
sidebarBox.setAttribute('sidebarlastcommand', lastcommand);
} else {
sidebarBox.hidden = false;
sidebarSplitter.hidden = false;
//setToolbarVisibility(sidebarSplitter, true);
//setToolbarVisibility(sidebarBox, true);
if (sidebarBoxArrow) sidebarBoxArrow.className = '';
}
return;
}
if (!commandID) commandID = sidebarBox.getAttribute("sidebarcommand");
let sidebarBroadcaster = document.getElementById(commandID);
if (sidebarBroadcaster.getAttribute("checked") == "true") {
if (!forceOpen) {
if (sidebarBox.getAttribute('sidebarcommand') !== 'viewWebPanelsSidebar') {
sidebar.setAttribute("src", "about:blank");
sidebar.docShell.createAboutBlankContentViewer(null);
sidebarBox.setAttribute("sidebarcommand", "");
sidebarTitle.value = "";
sidebarBox.setAttribute('sidebarlastcommand', lastcommand);
}
sidebarBox.setAttribute("sidebarcommand", "");
sidebarBox.setAttribute('sidebarlastcommand', lastcommand);
sidebarBroadcaster.removeAttribute("checked");
sidebarBox.hidden = true;
sidebarSplitter.hidden = true;
//setToolbarVisibility(sidebarSplitter, false);
//setToolbarVisibility(sidebarBox, false);
if (sidebarBoxArrow)sidebarBoxArrow.className = 'right';
gBrowser.selectedBrowser.focus();
} else {
fireSidebarFocusedEvent();
}
return;
}
var broadcasters = document.getElementsByAttribute("group", "sidebar");
for (let broadcaster of broadcasters) {
if (broadcaster.localName != "broadcaster") continue;
if (broadcaster != sidebarBroadcaster) broadcaster.removeAttribute("checked");
else sidebarBroadcaster.setAttribute("checked", "true");
}
sidebarBox.hidden = false;
sidebarSplitter.hidden = false;
//setToolbarVisibility(sidebarSplitter, true);
//setToolbarVisibility(sidebarBox, true);
if (sidebarBoxArrow)sidebarBoxArrow.className = '';
var url = sidebarBroadcaster.getAttribute("sidebarurl");
var title = sidebarBroadcaster.getAttribute("sidebartitle");
if (!title) title = sidebarBroadcaster.getAttribute("label");
sidebar.setAttribute("src", url);
sidebarBox.setAttribute("sidebarcommand", sidebarBroadcaster.id);
if ( title && title !== '') sidebarTitle.value = title;
sidebarBox.setAttribute("src", url);
sidebarBox.setAttribute('sidebarlastcommand', lastcommand);
if (sidebar.contentDocument.location.href != url) sidebar.addEventListener("load", sidebarOnLoad, true);
else
fireSidebarFocusedEvent();
},
modifySidebarClickBehaviour: function () {
var sidebar = document.getElementById('sidebar');
sidebar.addEventListener('DOMContentLoaded', function(){
if (sidebar.contentDocument){
sidebar.removeEventListener('DOMContentLoaded', arguments.callee, false);
var wpb = sidebar.contentDocument.getElementById('web-panels-browser');
if (wpb) {
wpb.onclick = null;
}
}
}, false);
eval("window.asyncOpenWebPanel = " + window.asyncOpenWebPanel.toString().slice(0, -1) +
'var wpb = sidebar.contentDocument.getElementById("web-panels-browser");' +
'if (wpb) wpb.onclick = null;' + '}'
);
eval("window.openWebPanel = " + window.openWebPanel.toString().slice(0, -1) +
'var wpb = sidebar.contentDocument.getElementById("web-panels-browser");' +
'if (wpb) wpb.onclick = null;' + '}'
);
},
init: function () {
window.toggleSidebar = this.toggleSidebar;
this.makeButton(this.sitelist);
if (this.operaLikeToggler) {
this.makeSplitter();
}
this.modifySidebarClickBehaviour();
var css = ('\
@-moz-document url(chrome://browser/content/browser.xul){\
#sidebar-box-splitter {\
background-color: #E8ECF6!important;\
border-style: none!important;\
cursor: default!important;\
min-width: 0!important;\
opacity: 0.8;\
}\
\
#sidebar-box-splitter:hover {\
background-color: #BFC4D2!important;\
}\
\
#sidebar-box-arrow {\
margin-top: -20px;\
}\
\
#sidebar-box-arrow[class="right"] {\
width: 0;\
height: 0;\
border-top: 4px solid transparent;\
border-bottom: 4px solid transparent;\
border-left: 4px solid #4B5660;\
}\
\
#sidebar-box-arrow:not(.right) {\
width: 0;\
height: 0;\
border-top: 4px solid transparent;\
border-bottom: 4px solid transparent;\
border-right: 4px solid #4B5660;\
}\
}\
');
var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
var uri = makeURI('data:text/css;charset=UTF=8,' + encodeURIComponent(css));
if (!sss.sheetRegistered(uri, sss.AGENT_SHEET)) {
sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
}
}
};
SidebarMod.init();
}
})();