2013-01-02 54 views

回答

2

畫布字面上用於圖形的畫布。您最好的選擇是找到畫布的渲染位置,然後找到數據來自哪裏。

1

關於你last closed question ......

// ==UserScript== 
// @name  Graph reader 
// @namespace http://gm.wesley.eti.br 
// @include  http://www.quantcast.com/stackoverflow.com 
// @version  1 
// ==/UserScript== 

var tz = 60 * new Date().getTimezoneOffset(); 
(function recursive (x, l, f) { 
    if (l.length) { 
     if (x[l[0]]) { 
      recursive(x[l.shift()], l, f); 
     } else { 
      setTimeout(recursive, 1000, x, l, f); 
     } 
    } else { 
     f(x); 
    } 
}(unsafeWindow, ["qctg", "controller", "subset", "reach"], function (data) { 
    // data is equals to unsafeWindow.qctg.controller.subset.reach 

    var index = data.length - 1; 
    alert([ 
     "DATE  " + new Date(1000 * (data[index].date + tz)), 
     "PEOPLE  " + data[index].reach.PEOPLE.GLOBAL, 
     "VISITS  " + data[index].reach.HOURLY_SESSIONS.GLOBAL, 
     "PAGE VIEWS " + data[index].reach.ARRIVALS.GLOBAL, 
    ].join("\n")); 
})); 
+0

感謝答案。我會在知名用戶的幫助下重新提出這個問題,然後你可以在那裏添加這個答案。 :-) – Pradeep