Uses external javascript for nothing
-
This plugin add’s external javascript from socials sites. Tumblr, Twitter, Pinterest etc. For not reason, its not a frontend plugin. For this reason i have to give it 1 star. Slowing down site and causing any site using SSL to have a non full SSL protected site.
-
#modlook #Wrongplugin this is not a social Plugin or a Plugin that uses any code related to social sites. We believe this may have been posted on the wrong Plugin. You could download and test the version that existed at the time of this Review to confirm. Would you consider removing it? Thank you!
Hi.
Please check your own files.
\bulk-photo-to-product-importer-extension-for-woocommerce\extensions\sm-share-buttons\js\sm-scripts.js
it uses social services and theese scripts are loaded in the admin
sm-share-buttons.php
if(is_admin()) wp_enqueue_script( 'sm-scripts', $this->plugin_uri . '/js/sm.scripts.js' ); }
sm.scritps.js
(function(d,s,id){ var js,fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)){ js = d.createElement(s); js.id = id; js.src = 'https://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js,fjs); } })(document,'script','twitter-wjs'); (function(d,s,id){ var js,fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)){ js = d.createElement(s); js.id = id; js.src = 'https://platform.tumblr.com/v1/share.js'; fjs.parentNode.insertBefore(js,fjs); } })(document,'script','tumblr-sjs'); (function(d){ var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT'); p.type = 'text/javascript'; p.async = true; p.src = '//assets.pinterest.com/js/pinit.js'; f.parentNode.insertBefore(p, f); }(document)); (function() { var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true; li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//platform.stumbleupon.com/1/widgets.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s); })(); // Facebook Share function fbShare(url, title, descr, winWidth, winHeight) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('https://www.facebook.com/sharer.php?s=100&p[title]=' + title + '&p[summary]=' + descr + '&p[url]=' + url , 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); } // Twitter Share function twitterShare(url, descr, winWidth, winHeight ) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('https://twitter.com/share?url=' + url + '&text=' + descr , 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); } // Google+ Share function gplusShare(url, winWidth, winHeight ) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('https://plus.google.com/share?url=' + url , 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); } // Pinterest Share function pinterestShare(url, img, descr, winWidth, winHeight ) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('//pinterest.com/pin/create/button/?url=' + url + '&media=' + img + '&description=' + descr, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); } // Stumbleupon Share function stumbleuponShare(url, winWidth, winHeight ) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('https://www.stumbleupon.com/submit?url=' + url, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); } // LinkedIn Share function linkedinShare(url, title, descr, winWidth, winHeight ) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('https://www.linkedin.com/shareArticle?mini=true&url=' + url + '&title=' + title + '&summary=' + descr, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); } // Reddit Share function redditShare(url, winWidth, winHeight ) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('https://www.reddit.com/submit?url=' + url , 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight); }
Tags removed and the review is left. Though I did remove the duplicate review.
- The topic ‘Uses external javascript for nothing’ is closed to new replies.