Commit Graph

115 Commits (master)

Author SHA1 Message Date
Vitaliy Filippov 9b78baac95 pass image to vk & mail 2016-05-03 10:14:18 +03:00
Vitaliy Filippov 8227ec3951 Remove title (social networks take it automatically from og:title) 2016-05-02 23:24:43 +03:00
Vitaliy Filippov ce89acecb1 fix some warnings & update package 2016-05-01 14:41:03 +03:00
Vitaliy Filippov e77851ef60 Remove jquery :) 2016-04-30 21:26:58 +03:00
Artem Sapegin 03cb194568 Fix counter URLs (close #172). 2015-12-24 13:27:56 +01:00
Artem Sapegin 9622fdedc7 Update popup sizes. 2015-12-21 21:40:46 +01:00
Artem Sapegin 4b470a8f7e Enable HTTPS for Odnoklassniki. 2015-12-21 21:40:34 +01:00
Artem Sapegin 5b224434d5 Open all popups with HTTPS. 2015-12-21 21:40:12 +01:00
Artem Sapegin 4dfc81ec38 Proper Google+ JSONP counter request.
1. Real JSONP with a callback.
2. Using a helper instead of a hard coded request.
3. Allow multiple counters on a page.
4. Allow HTTPS.
2015-12-21 20:57:23 +01:00
Slava 69217f2c40 remove G+ old code 2015-12-17 12:12:57 +02:00
Slava 959fc76406 Google+ counter 2015-12-17 11:17:40 +02:00
Slava ded5bd4e00 Incorrect trigger ready 2015-12-16 15:25:20 +02:00
Artem Sapegin dd78627618 Disable discontinued Twitter button (fix #147).
https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform
2015-11-20 22:06:50 +01:00
ColCh 774db6869d Trigger counter update if number equals zero and zeroes option specified 2015-11-17 12:55:30 +03:00
Artem Sapegin e4025f021f Disable Odnoklassniki counter on HTTPS because of redirect to HTTP. 2015-03-10 11:21:48 +03:00
Artem Sapegin 1be1381eb6 Revert "Add https support to gplus using yandex as proxy"
This reverts commit fd885d1e44.

Conflicts:
	src/social-likes.js
2015-03-10 11:17:50 +03:00
Artem Sapegin 115e7db0af Revert "Add https support to odnoklassniki using yandex as proxy"
This reverts commit b5b02ca883.
2015-03-10 11:15:19 +03:00
Artem Sapegin c2e2df35c6 Show counters after 10 sec even if they aren’t ready. 2015-03-10 11:12:36 +03:00
Richard Westenra ba597133c5 Don't add a colon to tweet if it ends on a question mark. 2015-02-16 16:52:25 +00:00
Artem Sapegin 0b94582430 Move Google+ counter cleaner to counter itself. 2015-02-16 15:33:19 +03:00
Artem Sapegin f08512a3fd Merge pull request #115 from im-denisenko/feature/add-https-for-google-plus
Add https support to Google plus using Yandex Share as proxy.
2015-02-13 12:20:11 +03:00
im-denisenko fd885d1e44 Add https support to gplus using yandex as proxy
Btw, migrate from old api endpoint to new one
2015-02-12 20:24:00 +03:00
im-denisenko b5b02ca883 Add https support to odnoklassniki using yandex as proxy 2015-02-12 20:10:18 +03:00
Artem Sapegin 66338641c6 Try to fix Odnoklassniki counter on mobiles. Fix #94. 2015-01-19 12:17:14 +03:00
Artem Sapegin adce2e7245 Remove non-numerical characters from counters before conversion to number. Fix #105.
Google+ (Yandex Share) sometimes send “3.354”.
2015-01-19 11:28:01 +03:00
Artem Sapegin 02f00f9501 $.click -> $.on. 2015-01-18 22:32:43 +03:00
Artem Sapegin 4e1ef36ccb Update Odnoklassniki popup URL to prevent redirect. 2015-01-13 18:09:14 +03:00
Artem Sapegin 5710ce8ee7 Always use HTTP for VK counter (HTTP causes redirect). 2015-01-13 18:03:30 +03:00
Artem Sapegin 7baede6751 Fix Odnoklassniki URL to prevent redirect. 2014-12-11 16:31:33 +03:00
Rebrov Boris 8bcaa884b7 odnoklassniki now finally support retrieving count of likes over https 2014-12-09 17:45:04 +03:00
Artem Sapegin 3f87886af5 Delay counters initialization because it prevented counters to show up after reinitialization with the same URL. 2014-11-20 18:32:02 +03:00
Artem Sapegin 130f5e0c81 Do not request Odnoklassniki counter via HTTPS. 2014-11-20 15:49:07 +03:00
Artem Sapegin 8832317c42 Tweak Odnoklassniki couter request. 2014-11-20 15:31:34 +03:00
Artem Sapegin 534781298a Revert older Odnoklassniki counter API. 2014-11-20 15:30:33 +03:00
Artem Sapegin b4b3829c6d Revert "Change Odnoklassniki counter API to work via HTTPS."
This "new" API don't work anymore and won't be supported.

This reverts commit e3f9d54d99.
2014-11-20 15:19:30 +03:00
Artem Sapegin 6cabbf1dc0 Fix single button mode. 2014-11-06 11:53:17 +03:00
Rebrov Boris e3f9d54d99 Change Odnoklassniki counter API to work via HTTPS. 2014-10-23 18:00:15 +04:00
Artem Sapegin e30e52f6e5 Calculate real number of counters.
On HTTPS pages Google+ counter won’t work because Yandex Share API
doesn’t support HTTPS. In this case counter would never appear because
number of buttons is not the same as number of counters we could
request and show.
2014-10-09 11:08:28 +04:00
Artem Sapegin d8740c5177 Add comment explaining why there are only one Google+ counter per session. 2014-09-10 21:43:40 +04:00
Artem Sapegin 9a1abecffb Add comment. 2014-04-28 18:20:30 +04:00
Artem Sapegin 9a63f3b01c Fix typo in comment. 2014-04-28 18:20:30 +04:00
Alexey Tatarinov 84882968cb Update social-likes.js
Fix closure compiler error:
"ERROR - Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option.
        'class': this.getElementClassNames('counter'),"
2014-04-11 05:37:26 -07:00
Artem Sapegin 09a691c7a9 Service detection refactoring (#61). 2014-04-10 09:51:02 +04:00
fliptheweb d8f0845a8c Skip excess loop in detectService 2014-04-05 15:54:18 +11:00
fliptheweb f3444317c7 Optional detect service from data-service attribute 2014-04-05 01:31:14 +11:00
Artem Sapegin e0627dce23 Update jscs and other deps. 2014-04-04 17:00:38 +04:00
Artem Sapegin 73082c20fb Disable Google+ counter on HTTPS pages (close #58). 2014-04-01 13:11:56 +04:00
Artem Sapegin 5ed3e956e2 Always use HTTPS for Twitter (#58). 2014-04-01 13:11:21 +04:00
Artem Sapegin df66b102ca Toggle single button popup on button click. 2014-04-01 12:49:35 +04:00
Artem Sapegin 6d2fc9255c Fix paddings on single button popup in Birman skin in Safari. 2014-04-01 12:39:23 +04:00