如何知道谷歌搜索的时间? [英] How to know when google searches?

查看:169
本文介绍了如何知道谷歌搜索的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Chrome扩展程序,并且我需要知道Google何时搜索在每次搜索时执行操作。



我尝试了解请求使用 chrome.webRequest ,但不会捕获缓存的请求。



每次在Google中搜索时,我的笔记中的Evernote扩展搜索都会被缓存,即使请求被缓存。他们是怎么做到的或者如何做出类似的东西?

://isgeek.eu/?p = 54rel =nofollowtitle =http://isgeek.eu/google-chrome-extension-google-search> http://isgeek.eu/google-chrome

 <$> 
$ b

c $ c> document.addEventListener(DOMSubtreeModified,function(event){

在google搜索页面上更改。


I'm developing a chrome extension and I need to know when is google searching to perform an action on each search.

I've tried to listen the requests with chrome.webRequest but the cached requests aren't captured.

Evernote extension searches in my notes each time I search in Google, even if the request is cached. How are they doing it or how to make something similar?

解决方案

Here is a post on the subject http://isgeek.eu/google-chrome-extension-google-search

The trick is to use

document.addEventListener("DOMSubtreeModified", function(event){

to listen to each change on the google search page.

这篇关于如何知道谷歌搜索的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆