-
Notifications
You must be signed in to change notification settings - Fork 190
/
SidebarModfix.uc.js
577 lines (559 loc) · 49.1 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
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
// ==UserScript==
// @name SidebarMod.uc.js
// @description Firefox侧边栏增强
// @include chrome://browser/content/browser.xul
// @charset UTF-8
// @author NightsoN
// @note v20130526: 增加中键点击标题或菜单则在标签页打开 by ywzhaiqi
// @note v20130520: 更改了图标获取顺序,现在的获取顺序 style > favicon > 第一个子图标 by ywzhaiqi
// @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内部功能',
style: 'list-style-image: url("chrome://browser/skin/places/bookmark.png");-moz-image-region: rect(0px, 48px, 16px, 32px);',
childs: [
{
name: '书签',
url: 'chrome://browser/content/bookmarks/bookmarksPanel.xul',
favicon: "chrome://browser/content/abouthome/bookmarks.png"
},
{
name: '历史',
url: 'chrome://browser/content/history/history-panel.xul',
favicon: 'chrome://browser/content/abouthome/history.png'
},
{
name: '下载',
url: 'chrome://mozapps/content/downloads/downloads.xul',
favicon: "chrome://browser/content/abouthome/downloads.png"
},
{
name: '扩展',
url: 'chrome://mozapps/content/extensions/extensions.xul',
favicon: "chrome://browser/content/abouthome/addons.png"
},
{
name: 'Scrapbook',
url: 'chrome://scrapbook/content/scrapbook.xul',
favicon: 'chrome://scrapbook/skin/main_24.png'
},
{
name: 'Console',
url: 'chrome://global/content/console.xul',
style: 'list-style-image: url("chrome://global/skin/console/console-toolbar.png");-moz-image-region: rect(0px, 24px, 24px, 0px);'
},
{
name: 'Preferences',
url: "about:config",
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABxElEQVQ4jZXQzYsScRzH8d/f16lTFCwRdOoSUYddtlrUaXTVEdR1xqfysLtUrC2EujNjbplPjIGtJIZB6YLMjqu105/w7tQhMB8+99f7C18hVpiiKGiaRjqdJplMsor5B6dSKWzbxnVdVFVdL6CqKuPxmMlkgmmaxOPx9QKapmHbNt1uF0VREEKISCRCOBxmd3d3eSyRSDAcDmk2m4RCIYLBIPl8nsFggCzLiwOyLBOLxej3+7TbbSqVCuVymVqtRqPRQJKk+QE5bSLnPhGNRrEsi06ng2VZtFot6vU61WoVn883Hz/TDLLmhOSJQ/j1N3q9HqVSiUAggCzLSJKE1+udjyXNIKs7VLq/KZ+5hI/HbGd6+P3+5c/yqQYp3eHdmcvL6pT900sK7V94Ds656/+4OOBN6CSLDuXPLocfpqjFC56bE45bP9nKjbjjNf8f2Eno7BUcjI7L4fspe4ULMrrDm8aMzRcjbnuMxde3ckP0zhX7p5fE3tqkTxzy9RmPsiM2dpZgIYS4r32n0L4iY0xIFh2O6jMeZkfceroCFkKIe4qF5+Cco9qMV9UZD1I/uPl4Rfx3G7LFdd9Xrj35wo3t9fAfyK1fDftrXK0AAAAASUVORK5CYII='
},
{
name: 'Stylish',
url: 'chrome://stylish/content/manage-standalone.xul?sidebar',
favicon: 'chrome://stylish/skin/16.png'
}
]
},
{
name: '常用站点',
childs: [
{
name: '豆瓣',
url: 'http://m.douban.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVQ4jZVTMYrEMAz0F/IFf8Ef8StcbydIH8gLAq7TBdwvuEutOp3BfSDd1nPFnXROsntwAlWyRprR2Jhg0Gb36OAnD0qEuMZTcmWUvSBvGZTou0caF15Q9oLjdeBTHK8DZS9YeLkDcGUAAFfG+BwR14i8ZZS9gCuDEqF7dLhubNrVbW9hgtFmP3nY3mpN8gTUotnegivrxJb3lYob3B1AaPylgUTe8hnA9vb0kCsjrhGUSKn4ySuIn/x9g4UXAEBc44mWnzziGrVZL3AFMMEgb1k3uHKXCHP4DECJbl4Q84zPEX7ySuktgJw0zAFhDr9q/+T4HN+LKLcX2+qDRgvR6HgddxHjGrWYt6wrusGpM1tjfTSSGxzc4ECJkLesvm9N1drbyHQp/Ce4MkyYw01xmdB+ZUp0ElYofgHXdqE+cgjSRwAAAABJRU5ErkJggg=='
},
{
name: '网易',
url: 'http://3g.163.com/touch/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAT0lEQVQ4jWNgoAX4z8DwHxsmWTM+MaI0Y2PjNQSfIrIMIDks8CkkKxwojglcBhLlf3SDSPIGTDEuPkWuwGkAvpAnJIbXMEKuIegFfOJUAQBXtbVLrN/2QwAAAABJRU5ErkJggg=='
},
{
name: '饭否',
url: 'http://m.fanfou.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVQ4jaWT0YmDQBCGtwFBrEBIA1dCSrAES0gJKcESLCElWICwi4FAQPDIQ0AQcvggHBx89zAZdtUTLnfCz7g4+/nP7KzZnSFxf9PuDCayYGpROcD+6tehYgtZC0UvMjVEFkzifAJA3sn67QLVCG5i9ZSD5CQuAOTdOlGT806cxXbuagbQP1WjxI8viVslzQD7qyQXvXdSDj87AjjeF4CslQ3V6KVQgPdP2XS8bwDUUvhRAW4SQNjorH0BcLhJTBtfXtq8ADC1NLQcxI2bNk4hBOQdnB4eoLWH9jcBenwgkOWM/ApQ9L5+fT89/KzoKK8AeScNWs6A9iW2vrTD7QmIFuOpShtppHY8VNYKLLJg/nudvwGJFjptrPPa+QAAAABJRU5ErkJggg=='
},
{
name: '猫扑',
url: 'http://3g.mop.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACDElEQVQ4ja2Sv2saYRjHXyGD7SAhcIOUclAoRBEdQscOdfAHB+IhCncRpQq1GIiLeEM9hKOFTHbIplAyxHStgv9Ari3ZjKVwJFNADjQcAYk4qJdvB7nXXo9Chz7wgZeH5/28P56HkP8dfkWAXxHwr3lb9H98g1XY6LVsxVY+01L+LvErArxKEV6lCFYWaSFTS9jynYsTp4SVRXiVIh69e0PxVPPwVPPYOtynuT/lhBBCbu/vwMoiXAUe7mQQlXoAHz+/dBBupuCp5sFIOftTvEoRrgKPSj2A2ZzDbM5hMo1hZEQdqFoErCzCU81vBIyUQ6UewGqRxWzOYWykoelxyuVNgq5HRhSaHgcj5UCvv10RsVpkKWMjjWs9g2s9g8ubBOV3Ce1Uo9cCU0tA1SIwlxJlYpRsEmuzerWL069u8Md763/wKkW87TyDT9oBCflQ+fQKqhahp6paBP0hh+4giNftp3Ang3An12tGyoF4qnnM5hw0PY4PvecgIR980g7qXx7bePH+CUjIB/54D91BEOrV7kawWmQBswyYZXz/WYI7GUR3YMdV4NEfchgZUUymMUymsXUnWFlE+1yAuZTwYB7hwTyCuZQAs0w/dGykba2cTGNonwubgbIG5OCshs7FCRVZEms2+kMOpU4GrCwi3Ew5x7nRayHcTIGRctg63HfgVwQcnNVwe39HN/8CP0/uZd4hfyoAAAAASUVORK5CYII='
},
{
name: '亦歌',
url: 'http://www.1g1g.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABIElEQVQ4jc3OvU7CUACG4WNre/p36OodODh6Aw46G5GiYviRYrEQQUAEL8U7cCJxdfICTEycSExMnEhcSVxfN8VQtTEMfvObJ58Q/26IwMZpreN2CqjeENW/InNxT2bwin85/R1wmlPcFnhtUB1QPVDnY1T/EX9ACiAGuzFENreQ8erns8gn008B2PXECBH5qG4KwKp9D3hnKQB5lAy4jRXc058BRGBjlr5EyLCNVb/FiSc4zWQALeii74/QC88Yhx8RIvCQIVg1sCOwT+YBxIaHlgM9D/oeLB/MAj5mBWQVrBCs4yRg00fLgpYDLQA9PwuYGMUXjPIDZuUaWekmAGsmYnuC2BmzlB0hduejRQ+zfIOsPv0dMIpvGKW7hbx5B+TOnoWB2G7ZAAAAAElFTkSuQmCC'
},
{
name: 'Twitter',
url: 'https://mobile.twitter.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: '豆瓣电台',
url: 'http://douban.fm/partner/sidebar',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAZElEQVQ4jWNgYGBgmF9h9p8czADTfGtn9f+fD1aQhG/trIYYMr/CjGTNMIxhwNntnUThUQPwGEBxLFDVgP8/3/3///////8/32HlEzbg////8yvMIHqw8GnvApLCgKLMRGl2BgAcEBr6B9RuCQAAAABJRU5ErkJggg=='
},
{
name: '新浪微博',
url: 'http://m.weibo.cn/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACbUlEQVQ4jb1SW0gUYRQ+TAsSZA+xL5Lu7R9nptBIzJJQKCFKicAHo4cowi5gkBCtbMXiPvQQbJnrziAVCUW91IN0ISiCTXYLglYSfIkC3ZnFWt3LjLZ5a/+vB1stCiGCDhwO/Od83/l+zkf0v0IPUlU2RCfTIWqNdNC6vyawVLpmqTRqaZS1VJrKqrT/j4N9RCUJJh3VPYo6zqTm4nuASMhq1JC5ShWWRt3TGs2memnLL+BxJ9utM3lM90jcEBUkmPSx2Bs6tLbCDNGwqZKZDVGDpdJjK0y3l8GGW243RGXREBUUU2fKqCFKxw1RfmBI0otkneOgeVnoslS6Z4WpY1qjESIiSrjlNoPJheLmVeq7SW/JvlyYOk2VLlgqvaLhMrfTEOVpQ1SQ3FqLrL8b+SdPMfc2jtloDNb1G/i0p3lJkagMfdixYT0R0UQPbTPD1EQJJt/UPRKfPHIM36bSPJfLQdM0HggEEI/HOQDwhQWeOdf1Q4k8Ne5kO1f+LirpiYZdKOTzSKVScLlcICIIggCbzYZYLAYAKMx8gbGpuqjk5YpBRGU+0+XjABAMBnljYyP6+/t5S0sLiIj7/X5wzjlfXESyumbpOh7p+U8E8qPPB1rBCwUMDAzA6/UiEonAZrNBEAREo1EAwMydu0vXYXJhzCXuXSZ4XV6+UffI7zPnL2LBtLjP50NlZSWvr6/H4OAgL+S/wupTuSFtRoLJ8wkmnfjNfQ/t9lKdyZeSNdtT6c6zMHt6YV7pQfr0GSRr6qCL8pwhyvdHKljVqn5vI1rzrMxRG3e4D8cd7NSw093+xsmabtntpasC/yW+A9uHY8MWzyGVAAAAAElFTkSuQmCC'
},
{
name: '腾讯微博',
url: 'http://1.t.qq.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACuUlEQVQ4j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M+MaI0Y2PjNQSfIrIMIDks8CkkKxwojglcBhLlf3SDSPIGTDEuPkWuwGkAvpAnJIbXMEKuIegFfOJUAQBXtbVLrN/2QwAAAABJRU5ErkJggg=='
},
{
name: '巴士电台',
url: 'http://bus.fm/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVQ4jWNgYGBgePD1tWTovh0rpJbNf8owb9p/fFhq2fynoft2rHjw9bUkAwMDA8P116/VBJfMeUtIIzoWXDLn7bm3b7UYQvZuX41L0cMvn/9XnDn+32/PNqzy/nu2rWPgWzzrAy4DkMH2Jw//y61chCLPs2jmZwZ8zkQH3/78/r/ozs3/Ift2ItThM+Dn37//Yw/u+X/74we4IXNuXvvPuXAWcQb8////P8O8af/ZFsz4b7xx9X/RZfMx1RFjAF5MdQOEls7977Fzy3+bretJNyD24J7/3/78Rgl5og0QWjr3/8+/f1E0//n3j7ABsISEzYB1D+7h1cyzaOZnBv8929bBBOy3bfi/4t7t/ydfvfxfevoYanzjSsrn3r7VoigzwbJzyN7tq8WXz39OSKP48vnPQ/ZuXw3LzgBPzHTE1v4angAAAABJRU5ErkJggg=='
},
{
name: '虾米电台',
url: 'http://kuang.xiami.com/res/kuang/xiamikuang0709.swf/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA+0lEQVQ4jaXQPWsCQRDG8fEud+tX01YNpAiksEhhkcIiYCHKXT5TSJPGfIoEbMId95Jbq1hc8U81si4X8GXhxwwzz7Kw0qQysKlku5ce57CpZE0qA7GJZLukxyVsIpnYdcA1xC4DfAB2GbB/X9F13KzYRYAPOGlmFwHSPIeodrs5eqndbg47ADerpJmHKKCzar9/W+Hmm3mI/DzdoIDOqj3A7+sa947UswgFdNb/ZvUsQurHCNV+en/w9XHYAbhZJdU0xgecNKumMVI9xPiAo+r3LinvDarruDs3q6S8M1xDyonJylvDJYqJySUfmWEx7ufFuM+ZvvORGf4Bdjajn5E5dW4AAAAASUVORK5CYII='
},
{
name: '维基百科',
url: 'http://zh.m.wikipedia.org/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABS0lEQVQ4jcWTwY3EIAxFR6MUETpwDaPcQwekBVICOUIRLiGUQBqYlAAdhB6I/h5GQZPdaLXSrrQHDljW8/e3fSt7wW/e7f8BYQlQg4LsJcISUPYCP3vIXsJMBjFFlL3ATAZqUIgpIqYIPWqoQb0UOOtARBVQ9gLZSxARYorIW4azDsyMshfkLUOPGsz8AsQUIVoBPWrkLaPsBcwM0Qr42WN9rtCjrvADcPJADQqiFVifKw7oocJZBz/7CghLqP/be1C0As66msjMaO4N1KBO1Z11td3TFGQvIXtZjYspont0kL2sOTFFmMlcj9FZh+beVHkH4N1gZq5mXu4BEUENCnnL8LOHHjW6R1dNc9ZVoy8Bzjp0jw5mMvCzr5KJCMx88ugS4GcPIgIR1VbCEmrsmNK3q/zZzLIX6FGDiH52C2EJXyrFFE+b+mfH9AGWL1wAegygIwAAAABJRU5ErkJggg=='
},
{
name: '百度百科',
url: 'http://wapbaike.baidu.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACoklEQVQ4jZ2T6UuUURSHzz9QRhCpJJVZERUFmVmp7bZYZiUttpiEVliEtCctJtGHPgQGEm1EUbQHUlCBWSI1NbagJfheX3XG1LSmhWL0NTtPH6ZmEulLF86XcznPPb/7O0eksAYprEEK3iKHqpED1Uj+a2TvK2TXC2SHG8lzIVufILkVyKZyJLsMySpF1t1HpLCG/z2ScQ+Rgre9LqzaTj1S0K7VVR0KYKxOtY2jvQAr7iBysLpH0nGUPTvaGBVTp5kZzWobh2mTGzVljldt4/QEpJcgsr8qmPj8qRuAXXltTB7fQE5mC26Xn7hx9cyd4cHt8vcEpN1GZN9rADyNXWxY26y5Oa1668ZXcjJbKC7yAVBc5KO4yIfb5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g5Y8P6G8YSsB1kPGm86YH60NdkM1hMA5jLtAXwCyK3ufWEwzWsAAAAASUVORK5CYII='
},
{
name: '糗事百科',
url: 'http://wap2.qiushibaike.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAhUlEQVQ4jWNgwAM6Es3/45PHCzoSzf9/uzbpP1mGwDQ/WBFLugHImmG4I9GceIOwGYBsEEHNMAMuttlgYLwugWmEBRw2jNcl+JxO0CvITiekGatXkOMcm9/RwwHFJeg24/I/ejjgNIAUTJEBMO/AwwDmR0KakMMCa0wQCkCCyRpfAGJTDwBSGrIfx7jxzAAAAABJRU5ErkJggg=='
},
{
name: '百度贴吧',
url: 'http://wapp.baidu.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACoklEQVQ4jZ2T6UuUURSHzz9QRhCpJJVZERUFmVmp7bZYZiUttpiEVliEtCctJtGHPgQGEm1EUbQHUlCBWSI1NbagJfheX3XG1LSmhWL0NTtPH6ZmEulLF86XcznPPb/7O0eksAYprEEK3iKHqpED1Uj+a2TvK2TXC2SHG8lzIVufILkVyKZyJLsMySpF1t1HpLCG/z2ScQ+Rgre9LqzaTj1S0K7VVR0KYKxOtY2jvQAr7iBysLpH0nGUPTvaGBVTp5kZzWobh2mTGzVljldt4/QEpJcgsr8qmPj8qRuAXXltTB7fQE5mC26Xn7hx9cyd4cHt8vcEpN1GZN9rADyNXWxY26y5Oa1668ZXcjJbKC7yAVBc5KO4yIfb5cfr6QoBFt1EZPdLAK5d+sKQgZYmxjUogG0cOjtCsm3jsGrZO1YuadLWlh8BwPxriOysBOC5y09CbANLFzZxt+QbtnHYvKGFvC2t2Mbh2NGPTBpfT0ykwe3yK4DMvYLI9mcAdHfDjatftbjIp7ZxSE326ogoo2NibNYsf6e2cViW6iVtvlcb6gOOyKxLiGx7Gmyzo+MntnFIm+dlZJTR6HDDn1ixuElt4/D44XfltzKZfhGR3Iog4E1VJymzvYwYVMffxdHhhnHDbbIymrHrQlZK4nlENpUDoAqH89t18ACjQweaXoDBA4yOHWbzqPR78Gdl6jlEssuCgKMFHzS8r6WR/SwiwywN71OrEWEWUf0tHdTf0mERhssXvoQA8WcRySoNtuRp7GJLdivJSR7SU5o4cdzHieM+Zk1tJHZ0PRvXN9P2/kdIQtxpRNY9+Hu4FKgEnvwjKntM4sRTiKy+F1iK9BJkyW0k9Say4HrA49mXkZkXkaQLSMJ5ZMo5JP5M4OXYU8iEk/wC6ZkDX3ssK20AAAAASUVORK5CYII='
},
{
name: 'Facebook',
url: 'http://iphone.facebook.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAYElEQVQ4jWNgoAZIrFzz3zpyBkk4sXLNf7gBpGqGYaINSKhY/f/1uy//YYBkA5A1k2UAukb6GYALEG3A63dfUPwP4w+hMCDaANekef9zW7bgxDCALOaaNI+KBlCcmSgBAGeM72Qj9WvdAAAAAElFTkSuQmCC'
},
{
name: 'Google阅读器',
url: 'https://www.google.com/reader/i/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACFUlEQVQ4jX3Sz2vaYBwG8Ng4et+hSAvCGD0Vdlltoaf2st291UsPAw+1jDkG7joLjm77AwrubxgDd5EV2gjWzWiM0TQ2XbJU46+IQW0qhWQ8OwTj1LoXntv7fL68X16CmDrG0T6Mo33okQA6B350DvxQd3dQ2VpzMrwoY7o3UW4fH04g6u4O5OdPUdlaQ+nJI2S9nvmAZRq4G+q4G+oYpL5CjwRmAGZ1ZT4wKt/eaBj0G+g1RNTfvXQAZnUFWa8HisTMIvqnV2gU004G/QZ6ehVdTcbv1y+c6efLS6gp7BhZjJn4Nw/eqhPxRWlclfMobG8i6/VMAovv/8wtu8MiyBADMpiBL0qjfXyI8+WlKSBmwjINXLV7+PxTx+OPnXsBMphBUy07gCIx+CXSNjC9uA/fa3CHxRlAveZQ2N6cBSiWh6BI483rVVAsj4dvOKdMBjPgYhGw/mcOIFz8sIFRkWJ51Oqys/l40p6+sHcCMpjB6cY6TjfWwSW/oavJKHFpGxhN7elVFC95FC95aC0RWkuEL0pjYe8ErkAC7VYVtboMyzRwe6OBK6RAuMMiKJYHxfLoajK6mgyat4GmWkY8ycAVSMAVSMAyDQz6DVimAcs07CeQIcYpUux48pdUFk21DPWac4ASl0aJSyOfO0M+d2Z/IjLEQFAkCIoEmueRqwgQFAnxJOM8ZwTc+/8JgiBGF/6Xed2/El5+8KbNu3wAAAAASUVORK5CYII='
},
]
},
{
name: '邮箱',
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+MaI0Y2PjNQSfIrIM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5cn0PNGKSBNKDNTDJ7uYvEvkrkpcuRFy8l/XwpPe9ZW/5pYlAIi1xY6Fbq9jPzYytx1xlmur9Ddn6KUldF4uXnUDY+i/rmVtSK9SRKStzB6mqLmI/0ZIFNKV2lJ9+xkrK/RurI2+jN9aQ7Pmeu80uSNVW6VLB84Zj+S3zJsiJl5UqHunfXrdQn76N9UEuisvyWsuIZR3zJsgVz/hsDb4s1Ix8u4wAAAABJRU5ErkJggg=='
},
{
name: '139邮箱',
url: 'http://wapmail.10086.cn/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAp0lEQVQ4jWNgGAUMdl2H/8MwNjG7rsP/pbvv/mdgYGCQ7r6LKU6MATA5XOIM6AZgcyE+NoYBJLuAJ3fLf57cLXADYHxkDAsDbOIYBiADXHJwcWwm4nIBVnFiFMKiEZc4ZYA7e8t8ZIxNLHnPL6ziKbt+LWDgzt2UgIwZGBgwxDDEs7fEI4szsGduVGfPXqcGcxUynz17nRp75kZ1dJezZ25UZ8/cqA4AXbcUT3TS3DcAAAAASUVORK5CYII='
},
]
},
{
name: '翻译',
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: '实用站点',
childs: [
{
name: '淘宝',
url: 'http://m.taobao.com',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAqUlEQVQ4jaWTsRGAIAxFs4Gj0DgGtTtQOIY7sAO1EzCOOxgLiCQRUfTf/TtE/zPBCAAAGAPiMvU5BgQRJjkj1zfe7JAguEw5tKfQPBYAX5NWn/YzpADmsQRWLyHcdP8C0IGa+H4TUGtFgy8AZ2Tp3RVwgH7b6wpaLfw6g8cWuGpnwStErHxG/aA2Vw4XQAxpLBtj2xxl+h82OwgQXd/5DGudpX0VOtMVPgBRELV9pv7F+wAAAABJRU5ErkJggg=='
},
{
name: '卓越',
url: 'http://www.amazon.cn/gp/aw/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABdElEQVQ4jZWTP0vDQBTAD2z6BRw1H0Cnmt1Js4uYfAPr7pAPIKJQEJQGVyGLXVoLLoKtu3qDg0LiYoc0BQctqTo49OdwMfZfaH3wOO7de7/35+4EkAeOgJDZJUxi8gI4HD0NggDHcdiyLCzbxvO8LFBJAJ1Bi5SSOU0jN6KO40wCdATQHbQUd3bIaRrrponv++l+UdcnAbpjgCiKkFLSbDa5qNexbDutYiZAEAQUDGOshZkBvxkLhkEURZRd93+AX+f9gwMAtovF1BbH8XRAYWUlDVg3zaEbKbtuBuAzSi1SShZ0nZymsaDrlF2XLdtmzTTpvXXo+x7c7SpNAZfL8O5P6nFYbjZV4MMenIsBQLsBFQG3u9CLsgEfbXipqmTV+ZEZtGoKUhFwtaqyPB3D4zE8ncDNhsraqkG7oc4TwN9Tfr1XjhWhnM8F/WTlcgnCa+X3HStNnnJprNR3H57P/ioIG1lNlQTqO58CX9OnmMpXEpP/AWTQTUDpCM9IAAAAAElFTkSuQmCC'
},
{
name: '京东',
url: 'http://m.jd.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAy0lEQVQ4jc3TIQqEUBDGcS/hBcQDyB5gwWyxvmI1bdxL2IxbtlpeNngC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iYudAW/etN+qm8nLUD9pI9PIRVEIkiTT1FQl/wIdXqICy5BdnQAAAABJRU5ErkJggg=='
},
{
name: '去哪儿',
url: 'http://m.qunar.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACHElEQVQ4jZXQz0sTYBzH8c9ETcvKRE1Xf0WHCDpIh44d8tCpS0FQES4aQ4JISiOTQm3qdAtxTrfQ+QubuZxmpi2bYZpjZkUHO1heLA1WCe8OY2q2BD/wgofn+3yfh+8jScofmCs8OPiB7cgfmCuUJBn7ZyIH/LNsJa8/knDf2D8TkdEXRm2TqCWEml+x/1EYo29dRvc0O7qmkSuEXKF/6pI7xPvlKPGoKUhO9xS7OyaRY5SU9tdsjFrGyemeIq8nRmmecY4PzeJf+AbAyeFZVPWE5NaXJEqOdwK5XpDrnSDXO4GyPUGSnM9RbWDtUGjxe8LmeNJdY6S7Rsn2BFGWc4Qs5wi7GodRee+WjfGsRFdR1WOynCMo0xEgLsM+gG51ImsfJ3x/z3468Jal6Or6X1iayXQE0J7aPjZTWTtHPM8AOOYdQ5YmZGniy4+faxe0Rj6j8g6UUdnDRil3u9hbHRtlanGJHKsPQ0UnKnHjjsxzqHmIlV+rVIy/Qzceop132tko9XYbuuYEwP9xgYKWQXTTjS7UAGCs7qFy8E1sDLMDpZW62cxQ4kJnKwEoaPQjUz2HG3w8/fQVFdnQFTtdkfnYBanXnSSi89WxV4rq2Ffmjq1PlcVqF++zHP2NLtWg5KsP+B+du4eK7cjSgM5UxPaK7eSVujhq60VmGzKYbcEkSz3bIXMdMlkxmG1BSZJM1rDhcg3bIZM1LEl/AEUzpfWySDZbAAAAAElFTkSuQmCC'
},
{
name: '阿里旺旺',
url: 'http://webwwtb.im.alisoft.com/wangwang',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC5UlEQVQ4jS3S20+WBQCA8fev6T/ooq2tbvSqlTe1NTtM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/wiQwuLfPLFXUaXlhn7ahnbrbvYFm5zdX6Rntmv6ZhZomHU7YlUq72FEEJsV6m8coxV8idpu0rlJYQQfwHpwVM0aLClJwAAAABJRU5ErkJggg=='
},
{
name: '大众点评网',
url: 'http://m.dianping.com/guangzhou',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB0UlEQVQ4jZ2Tv2sTYRjHn72SNTh00UHcOjh0chHE2cW/wS2LIuIcpEs6lGYooUohCiFZSipn44GBMxxF2kSxBKciRTghd5eX/Ljz7j4Ob3LX1EwZvrzwvu/383yf9+UREZFxKc8qkrk5rOSY1mRBmALtTfh0F8xsb34eVnIaMi7ls819raCaA+czRAMS1Sf++gLq68S9LcLzYgpLAZiZOdwX+HAfIh+iAYSXJKrP+N09UBZxb4vhti6YAQyB+jphf5fooqEBkAE8m9HxU1AWk85znKKAcS1BUM2RqD4A4fc94t4WRANi94zJyWsYdUFZuAcbDLeXtDCtCcmXJ7pq5BO7Z0QXDf7+OoJRl8SzmdgvcYqzNpcBpjUhPH6kk4SXaf+MuoT9XdyDDdTejSWPaF35PkNXUM3HJJ6dVkdZ4LfAa8KPArTX/k+QrXdAWSSenZndjzMdgntI8uf9YgKMmbl1U19UFiiL4LTA4O1tnJLg1zcJz4spZBFgagg/n+mofovh0UOcHWH4JmtvWhOC08I1gD0DmKLpXpPpt1c4O4LfuHI2V3uN+HclAwTVnIZ0b6XxhuYDbbaXK6jOZqFjlFeaxHEpT8co64nsGGVWkYjIP84s8tIoadwUAAAAAElFTkSuQmCC'
},
{
name: '写字板工具',
url: 'http://www.yushufang.me/writer/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADGElEQVQ4jX3T3U/TdxTHcS72N+wvWHa1y2XJWrI1e3CPdExNnKgsRpaWgo4nRRiKMwMGq0KrgAq0hBZLoXVQ2lja/sJWXRciYMC1hpbpGC1tZ+kXjahroO9d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f8/9hAAAAvElEQVQ4jaWS0RHEIAhEKcZmrgDLsBnLsACaoZi9D4XZEE3m5phhNJh9kI2CTXQb+GiN9SklVCJo9vzyKwAADLOrYcRRrp0BK0PstQXhRgFoVi8Hx3VTmwD9F3CaIH3WySvpDgBgZBqbePGAxAsw0KzO/PEXApiADOk2u3Ub0LVXGwi/KALgEBcXsqSQBSU9ixLAxVnEwOTlBGgaNQt8r9QgQEzlKVyUO98mAACjKXrqkq/C7Vpk8s6Tp/gCvDQkV4O+/+MAAAAASUVORK5CYII='
},
{
name: '天气预报',
url: 'http://wap.weather.com.cn/wap/weather/101280101.shtml',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACnElEQVQ4jXWT2UtUcRTH/Rdui8k1HaV1Kltsg3opeigKhIJKITXKoiSISCN7EMJosbQFLNJSsawMizYlkR7vuIyWWS7TqDmLM3d0Jkidae4s99PD4LVp6sAPfpzlwzlfzonjD/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://wapmap.baidu.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPUlEQVQ4jZ2TvaqDMBiGvYhchOBtOOUGDmRy7JgrOEjnDt5Bhy7ByUkKhjN4FrN3UIRO1l0QXYT3DIcvGG2hdHhJyM+T50vUC6ICn4ZxBS+ICozz8lF8kT0HXK53MK5wud4xzgvyqoeIS7Td9B6A9HyRoe0mMK7AuIKIS2ddKLULMPVgJwiQV70FHE7mtcHhZMC4Qig1TD1AxCVMPaDtJoi4tCXkVe+YWgCdwriyG7elkVko9d5grT3OC5K0gS8yMK6QpI1zF4yrvQHpmXpAkjbOYoKIuLR30XbTPyCUGm032dBd0ClbCJVnAUFU7DaTEdXOuLIlHM+31wA6ifrr8fV8XvUugLToAzL18DTbV3IMTD1A/TwQSo2v71/bUp9e6Hi+WaBjQCHYOwmiAh7javebhlI7rS8y267DuMIfGyH1Cj0fcYcAAAAASUVORK5CYII='
},
{
name: '快递查询',
url: 'http://wap.kuaidi100.com/',
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADEElEQVQ4jY3T329TBRjG8f4PxJtKXDS7wYiJLpksyNZmg2SJJO5icVwskhBJjMluqAkabnCpRiNIswapE5jDIVtWkbVbkOKcGxAkQoF2/d216zln7VnLbNf2nPbstF8vjkIWbrx4rt73/eTNm7ymN0ajDM7LHH9U5stkjdFck4t5tsVXbOIrNvlF3uJ8SmHAJ7NnIgWagM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HjjsxzqHmIlV+rVIy/Qzceop132tko9XYbuuYEwP9xgYKWQXTTjS7UAGCs7qFy8E1sDLMDpZW62cxQ4kJnKwEoaPQjUz2HG3w8/fQVFdnQFTtdkfnYBanXnSSi89WxV4rq2Ffmjq1PlcVqF++zHP2NLtWg5KsP+B+du4eK7cjSgM5UxPaK7eSVujhq60VmGzKYbcEkSz3bIXMdMlkxmG1BSZJM1rDhcg3bIZM1LEl/AEUzpfWySDZbAAAAAElFTkSuQmCC'
},
{
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=='
},
]
},
],
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', getIconStyle(item));
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', getIconStyle(item));
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('style', getIconStyle(item));
menuitem.setAttribute('oncommand', 'openWebPanel(this.getAttribute("tooltiptext"), this.getAttribute("url"))');
menuitem.setAttribute('onclick', 'SidebarMod.itemClicked(event, this.getAttribute("url"));');
}
} else {
btn = frag.appendChild(document.createElement('toolbarbutton'));
btn.setAttribute('tooltiptext', item.name);
btn.setAttribute('style', getIconStyle(item));
btn.setAttribute('url', item.url);
btn.setAttribute('onclick', 'openWebPanel(this.getAttribute("tooltiptext"), this.getAttribute("url"))');
}
}
insertpoint.parentNode.insertBefore(frag, insertpoint);
function getIconStyle(item){
if(item.style){
return item.style;
}else{
// 如果不存在则取第一个子条目的 favicon
if(!item.favicon){
return item.childs && getIconStyle(item.childs[0]);
}
return 'list-style-image: url("' + item.favicon + '")';
}
}
},
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;' + '}'
);
},
itemClicked: function(e, url){
if(e.button == 1){
gBrowser.selectedTab = gBrowser.addTab(url);
}
},
addEventListener: function(){
var sidebarTitle = document.getElementById('sidebar-title');
sidebarTitle.addEventListener("click", function(e){
if(e.button == 1){
openSidebarURL();
}
}, false);
function openSidebarURL(){
var sidebar = document.getElementById('sidebar');
var webPanel = sidebar.contentDocument.getElementById("web-panels-browser");
var url;
if(webPanel){
url = webPanel.contentDocument.URL;
}else{
url = sidebar.getAttribute("src");
}
if(!url) return;
gBrowser.selectedTab = gBrowser.addTab(url);
}
},
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: 2px solid #4B5660;\
}\
\
#sidebar-box-arrow:not(.right) {\
width: 0;\
height: 0;\
border-top: 4px solid transparent;\
border-bottom: 4px solid transparent;\
border-right: 2px 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);
}
this.addEventListener();
}
};
SidebarMod.init();
}
})();