且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Chrome扩展程序(根据官方教程制作)无法正常工作

更新时间:2023-12-05 18:33:22

在此示例中,在第60行的popup.js中, https://ajax.googleapis.com/ajax/services/search/images 。这现在已过期。

您可以通过提供查询参数进行验证。例如,
https://ajax.googleapis.com/ ajax / services / search / images?v = 1.0& q = chrome 将会回应这个API不再可用。

本论坛讨论了备用搜索API的列表。
https://groups.google.com/forum/#! topic / Google-AJAX-Search-API / Ao9TbQbYgHo


https://developer.chrome.com/extensions/getstarted

Is this tutorial still ok? I've downloaded all metioned files and the extension is not working. I think there is a problem connected with Ajax request.

I got the message:

Cannot display image. No response from Google Image..

I tried to perform Ajax request to another website, but it turned out that the request is performed locally - despite of permissions in a menifest.json file.

In this example, inside popup.js at line 60, a call is made to https://ajax.googleapis.com/ajax/services/search/images. This is now expired.

You can verify by providing a query argument. For example, https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=chrome will give response "This API is no longer available.".

This forum discusses the list of alternate search APIs. https://groups.google.com/forum/#!topic/Google-AJAX-Search-API/Ao9TbQbYgHo