Prediction service in the browser

Cyd

Новичок
Регистрация
30.08.2018
Сообщения
16
Благодарностей
1
Баллы
3
Hello,

is it possible to disable the prediction service (usually used to load pages more quickly) in the browser ? Because when I send requests to Google, I can also see requests to some websites listed in the SERPs ... without of course visiting them.

Thanks.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 848
Баллы
113
Try this:
Код:
instance.SetBrowserPreference("browser.search.suggest.enabled", false);
 

Cyd

Новичок
Регистрация
30.08.2018
Сообщения
16
Благодарностей
1
Баллы
3
Thank you for the code. Unfortunately I get an error :



which means that ZennoLab.CommandCenter.Instance has no definition for SetBrowserPreference and no extension method SetBrowserPreference which accepts a first argument that ZennoLab.CommandCenter.Instance as type has been found.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 848
Баллы
113
You have quite old version of zennoposter...
Then change this preference pref("browser.search.suggest.enabled", true); to false in greprefs.js file in ZennoPoster\Progs folder.
 

Yuriy Zymlex

Moderator
Команда форума
Регистрация
24.10.2016
Сообщения
6 373
Благодарностей
3 297
Баллы
113
C#:
instance.SetBrowserPreference("network.http.speculative-parallel-limit", 0);
instance.SetBrowserPreference("browser.send_pings", false);
instance.SetBrowserPreference("browser.send_pings.require_same_host", false);
instance.SetBrowserPreference("network.prefetch-next", false);
 
  • Спасибо
Реакции: enrc66

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 848
Баллы
113
C#:
instance.SetBrowserPreference("network.http.speculative-parallel-limit", 0);
instance.SetBrowserPreference("browser.send_pings", false);
instance.SetBrowserPreference("browser.send_pings.require_same_host", false);
instance.SetBrowserPreference("network.prefetch-next", false);
Changing preferences via C# code doesn't work for his version.
 

Cyd

Новичок
Регистрация
30.08.2018
Сообщения
16
Благодарностей
1
Баллы
3
I am working on the 5.10.0.1. Maybe a quite old you are right. I set browser.search.suggest.enabled to false in the JS file. I haven't find a way yet to verify if it works. But I am running some tests.

I have just bought an upgrade (5.21.1.0), so I should be able to use C# code in a few minutes.

I will let you know.
Thank you for your help.
 

Yuriy Zymlex

Moderator
Команда форума
Регистрация
24.10.2016
Сообщения
6 373
Благодарностей
3 297
Баллы
113

Cyd

Новичок
Регистрация
30.08.2018
Сообщения
16
Благодарностей
1
Баллы
3
Yes OK. I guess that it does the same.
 

Cyd

Новичок
Регистрация
30.08.2018
Сообщения
16
Благодарностей
1
Баллы
3
Thanks guys. Both methods seem to work :
- modification is the greprefs.js file
- C# code with the 5.21 version.
 
  • Спасибо
Реакции: VladZen

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)