|
1 | 1 | /*********************************************************************
|
2 |
| -* #### Twitter Post Fetcher v16.0.3 #### |
| 2 | +* #### Twitter Post Fetcher v17.0.0 #### |
3 | 3 | * Coded by Jason Mayes 2015. A present to all the developers out there.
|
4 | 4 | * www.jasonmayes.com
|
5 | 5 | * Please keep this disclaimer with my code if you use it. Thanks. :-)
|
|
158 | 158 | script.type = 'text/javascript';
|
159 | 159 | if (config.list !== undefined) {
|
160 | 160 | script.src = 'https://syndication.twitter.com/timeline/list?' +
|
161 |
| - 'callback=twitterFetcher.callback&dnt=false&list_slug=' + |
| 161 | + 'callback=__twttrf.callback&dnt=false&list_slug=' + |
162 | 162 | config.list.listSlug + '&screen_name=' + config.list.screenName +
|
163 | 163 | '&suppress_response_codes=true&lang=' + (config.lang || lang) +
|
164 | 164 | '&rnd=' + Math.random();
|
165 | 165 | } else if (config.profile !== undefined) {
|
166 | 166 | script.src = 'https://syndication.twitter.com/timeline/profile?' +
|
167 |
| - 'callback=twitterFetcher.callback&dnt=false' + |
| 167 | + 'callback=__twttrf.callback&dnt=false' + |
168 | 168 | '&screen_name=' + config.profile.screenName +
|
169 | 169 | '&suppress_response_codes=true&lang=' + (config.lang || lang) +
|
170 | 170 | '&rnd=' + Math.random();
|
171 | 171 | } else if (config.likes !== undefined) {
|
172 | 172 | script.src = 'https://syndication.twitter.com/timeline/likes?' +
|
173 |
| - 'callback=twitterFetcher.callback&dnt=false' + |
| 173 | + 'callback=__twttrf.callback&dnt=false' + |
174 | 174 | '&screen_name=' + config.likes.screenName +
|
175 | 175 | '&suppress_response_codes=true&lang=' + (config.lang || lang) +
|
176 | 176 | '&rnd=' + Math.random();
|
177 | 177 | } else {
|
178 | 178 | script.src = 'https://cdn.syndication.twimg.com/widgets/timelines/' +
|
179 | 179 | config.id + '?&lang=' + (config.lang || lang) +
|
180 |
| - '&callback=twitterFetcher.callback&' + |
| 180 | + '&callback=__twttrf.callback&' + |
181 | 181 | 'suppress_response_codes=true&rnd=' + Math.random();
|
182 | 182 | }
|
183 | 183 | head.appendChild(script);
|
|
408 | 408 | };
|
409 | 409 |
|
410 | 410 | // It must be a global variable because it will be called by JSONP.
|
| 411 | + window.__twttrf = twitterFetcher; |
411 | 412 | window.twitterFetcher = twitterFetcher;
|
412 | 413 | return twitterFetcher;
|
413 | 414 | }));
|
0 commit comments