Creato da
Share My Page
My Social Accounts
Account FaceBook Account LinkedIn Account Twitter Account Google Plus Account Git Hub

First of all, in Chrome Extension:

Inline Code Considered Harmful
Does not accept inline JavaScript code. So you have to create their own JS and then import them in popup.html. So you have to do a rewrite of the code. 
Take a look at this link for more information on inline rewrite:
  "permissions": ["tabs",  "http://**", "http://**", "*"],
  "content_security_policy": "script-src 'self'; object-src 'self'",
Must be all on ONE LINE contained the key "content_security_policy"
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript" src="twitter.js"></script>
<script type="text/javascript" src="googleplus.js"></script>
and where you want it, insert:
<a href="" data-text="My personal Text"
class="twitter-share-button" data-url="" data-via="pasturenzi">Tweet</a>
<div class="g-plusone" data-annotation="inline" data-size="medium" data-width="300" data-href=""></div>
rewrites = [
 [/chrome-extension:\/\/([a-z]+)\.twitter\.com/, 'https://$'],
 [/chrome-extension:\/\/([a-z]+)\.twimg\.com/, 'https://$']
document.addEventListener('beforeload', function(e){
 for (var i = 0, rule; rule = rewrites[i]; i++) {
if (rule[0].test(e.url)) {
 e.srcElement.src = e.srcElement.src.replace(rule[0], rule[1]);
}, true);
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id))
}}(document, 'script', 'twitter-wjs');
  window.___gcfg = {lang: 'it'};
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
If you create these buttons in AJAX, you have to reload the widgets
//loading widgets Twitter in AJAX
$.getScript('', function(){
//loading widgets Google in AJAX
That's it.