-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgoogle.js
37 lines (31 loc) · 1.05 KB
/
google.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$(function ()
{
$('a[href^=http://code.google.com/p/qubit-toolkit/issues/detail?id=]').each(function ()
{
var a = this;
jQuery.ajax({
url: 'http://alloworiginproxy.appspot.com/' + $(this).attr('href'),
success: function (data)
{
if (!$(a).attr('title'))
{
$(a).attr('title', $('#issueheader span', data).text());
}
if ($('#issuemeta tr:has(th:contains(Status)) td:contains(Fixed)', data).length)
{
$(a).css('text-decoration', 'line-through');
}
},
// Hack to *not* set X-Requested-With header, which otherwise causes
// cross domain requests to be "preflighted",
// https://developer.mozilla.org/En/HTTP_access_control
xhr: function ()
{
xhr = jQuery.ajaxSettings.xhr();
xhr.setRequestHeader = function ()
{
};
return xhr;
} });
});
});