12345678910111213141516171819202122232425262728293031 |
- var searx_data;
- var answer = [];
- var temp;
- fetch('https://searx.space/data/instances.json')
- .then(response => response.json())
- .then(function(response) {
- searx_data = response.instances;
- for (var key in searx_data) {
- if searx_data[key]['http']['grade']=='A+'
- {
- if 'tls' in searx_data[key]
- {
- if searx_data[key]['tls']['grade']=='A+'
- {
- if 'html' in searx_data[key]
- {
- temp = searx_data[key]['html']['grade'];
- if (temp=='V' || temp=='C')
- {
- answer.push(key);
- }
- }
- }
- }
- }
- }
- temp = Number(Math.random()*(length(answer)))
- // set manifest json parameter as answer[temp]
- })
|