forked from aminomancer/uc.css.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuc-search-mode-icons.css
153 lines (123 loc) · 5.73 KB
/
uc-search-mode-icons.css
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
/* This Source Code Form is subject to the terms of the Creative Commons
* Attribution-NonCommercial-ShareAlike International License, v. 4.0.
* If a copy of the CC BY-NC-SA 4.0 was not distributed with this
* file, You can obtain one at http://creativecommons.org/licenses/by-nc-sa/4.0/
* or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. */
/* this does nothing on its own — it requires searchModeIndicatorIcons.uc.js.
when you switch to a one-off search engine in the urlbar, or otherwise enable search mode,
this changes the identity icon to one matching the search engine.
I recommend using this addon to add new search engines:
https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine */
/* for search engines I haven't added icons for, use a search glass icon.
if you want to request an icon for a search engine you use,
send me the engine name (the name that shows up in the identity box label when you enter search mode with it)
and the URL to the search engine so I can find a suitable icon and set a rule for it. */
#urlbar[searchmode=""][pageproxystate="invalid"]
#identity-box
> #identity-icon-box
> #identity-icon,
#urlbar[searchmode=""][pageproxystate="valid"] #identity-box > #identity-icon-box > #identity-icon,
#urlbar[searchmode=""] #identity-icon-box > #identity-icon,
#urlbar[pageproxystate="invalid"]
#identity-box
> #identity-icon-box[engine]:not([engine="Other"])
> #identity-icon,
#urlbar[pageproxystate="valid"]
#identity-box
> #identity-icon-box[engine]:not([engine="Other"])
> #identity-icon,
#urlbar #identity-icon-box[engine]:not([engine="Other"]) > #identity-icon {
list-style-image: var(--search-engine-icon, url(chrome://userchrome/content/search-glass.svg)) !important;
}
/* built-in history, tabs, bookmarks pseudo-engines */
#identity-icon-box[engine="History"] {
--search-engine-icon: url(chrome://userchrome/content/skin/history.svg) !important;
}
#identity-icon-box[engine="Tabs"] {
--search-engine-icon: url(chrome://userchrome/content/skin/tab.svg) !important;
}
#identity-icon-box[engine="Bookmarks"] {
--search-engine-icon: url(chrome://userchrome/content/skin/bookmark.svg) !important;
}
/* for google */
#identity-icon-box[engine="Google"] {
--search-engine-icon: url(chrome://userchrome/content/engines/google.svg) !important;
}
/* duckduckgo */
#identity-icon-box:is([engine="DuckDuckGo"], [engine="DuckDuckGo Search"]) {
--search-engine-icon: url(chrome://userchrome/content/engines/duckduckgo.svg) !important;
}
/* bing */
#identity-icon-box:is([engine="Bing"], [engine="Bing Search"]) {
--search-engine-icon: url(chrome://userchrome/content/engines/bing.svg) !important;
}
/* baidu */
#identity-icon-box:is([engine="Baidu"], [engine="Baidu Search"], [engine="百度"]) {
--search-engine-icon: url(chrome://userchrome/content/engines/baidu.svg) !important;
}
/* google images */
#identity-icon-box[engine="Google Images"] {
--search-engine-icon: url(chrome://userchrome/content/notifications/canvas.svg) !important;
}
/* youtube */
#identity-icon-box[engine="YouTube"] {
--search-engine-icon: url(chrome://userchrome/content/engines/youtube.svg) !important;
}
/* etc... */
#identity-icon-box[engine="Google Translate"] {
--search-engine-icon: url(chrome://userchrome/content/engines/googletranslate.svg) !important;
}
#identity-icon-box[engine="GitHub"] {
--search-engine-icon: url(chrome://userchrome/content/engines/github.svg) !important;
}
#identity-icon-box[engine^="Wikipedia"] {
--search-engine-icon: url(chrome://userchrome/content/engines/wikipedia.svg) !important;
}
#identity-icon-box[engine="Wiktionary"] {
--search-engine-icon: url(chrome://userchrome/content/engines/wiktionary.svg) !important;
}
#identity-icon-box:is([engine="Amazon"], [engine="Amazon.com"]) {
--search-engine-icon: url(chrome://userchrome/content/engines/amazon.svg) !important;
}
#identity-icon-box[engine="DoorDash"] {
--search-engine-icon: url(chrome://userchrome/content/engines/doordash.svg) !important;
}
#identity-icon-box[engine="eBay"] {
--search-engine-icon: url(chrome://userchrome/content/engines/ebay.svg) !important;
}
#identity-icon-box[engine="Netflix"] {
--search-engine-icon: url(chrome://userchrome/content/engines/netflix.svg) !important;
}
#identity-icon-box[engine="Google Maps"] {
--search-engine-icon: url(chrome://userchrome/content/engines/googlemaps.svg) !important;
}
#identity-icon-box[engine="Google Drive"] {
--search-engine-icon: url(chrome://userchrome/content/engines/googledrive.svg) !important;
}
#identity-icon-box[engine="Gmail"] {
--search-engine-icon: url(chrome://userchrome/content/engines/gmail.svg) !important;
}
#identity-icon-box[engine="Gatherer"] {
--search-engine-icon: url(chrome://userchrome/content/engines/gatherer.svg) !important;
}
#identity-icon-box[engine="Scryfall"] {
--search-engine-icon: url(chrome://userchrome/content/engines/scryfall.svg) !important;
}
#identity-icon-box[engine="Goatbots"] {
--search-engine-icon: url(chrome://userchrome/content/engines/cards.svg) !important;
}
#identity-icon-box[engine="MTGO Traders"] {
--search-engine-icon: url(chrome://userchrome/content/engines/swordshield.svg) !important;
}
#identity-icon-box[engine="Searchfox"] {
--search-engine-icon: url(chrome://userchrome/content/engines/searchfox.svg) !important;
}
#identity-icon-box[engine="Bugzilla"] {
--search-engine-icon: url(chrome://userchrome/content/engines/bugzilla.svg) !important;
}
#identity-icon-box[engine="MDN Web Docs"] {
--search-engine-icon: url(chrome://userchrome/content/engines/mdnwebdocs.svg) !important;
}
#identity-icon-box[engine="Reelgood"] {
--search-engine-icon: url(chrome://userchrome/content/engines/reelgood.svg) !important;
}