Skip to content

Commit 67356bc

Browse files
committed
added Yandex.ru and Baidu
1 parent 5766722 commit 67356bc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

background.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ function reverseSearch(info, storedSettings) {
4646
return 'https://www.bing.com/images/searchbyimage?FORM=IRSBIQ&cbir=sbi&imgurl=%s';
4747
} else if (searchProvider == 'yandex') {
4848
return 'https://yandex.com/images/search?url=%s&rpt=imageview';
49+
} else if (searchProvider == 'yandexru') {
50+
return 'https://yandex.ru/images/search?url=%s&rpt=imageview';
4951
} else if (searchProvider == 'tineye') {
5052
return 'https://www.tineye.com/parse?url=%s';
53+
} else if (searchProvider == 'baidu') {
54+
return 'https://image.baidu.com/n/pc_search?queryImageUrl=%s'
5155
} else if (searchProvider == 'other') {
5256
return storedSettings.cseProvider;
5357
}

options/options.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
<option value="google" selected>Google</option>
4040
<option value="bing">Bing</option>
4141
<option value="yandex">Yandex</option>
42+
<option value="yandexru">Яндекс</option>
43+
<option value="baidu">Baidu</option>
4244
<option value="tineye">TinEye</option>
4345
<option id="otherCSE" value="other"></option>
4446
</select>

0 commit comments

Comments
 (0)