Title: Uses external javascript for nothing
Last modified: June 4, 2017

---

# Uses external javascript for nothing

 *  [Kim Vinberg](https://wordpress.org/support/users/dicmdk/)
 * (@dicmdk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/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.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WPPluginCo.com](https://wordpress.org/support/users/wppluginco/)
 * (@wppluginco)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/uses-external-javascript-for-nothing/#post-9194212)
 * #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!
 *  Thread Starter [Kim Vinberg](https://wordpress.org/support/users/dicmdk/)
 * (@dicmdk)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/uses-external-javascript-for-nothing/#post-9195098)
 * 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 = 'http://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('http://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('http://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('http://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('http://www.reddit.com/submit?url=' + url , 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
       }
       ```
   
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [9 years, 2 months ago](https://wordpress.org/support/topic/uses-external-javascript-for-nothing/#post-9195309)
 * Tags removed and the review is left. Though I did remove the duplicate review.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uses external javascript for nothing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bulk-photo-to-product-importer-extension-
   for-woocommerce_a7d6e0.svg)
 * [WPPC Bulk Photo to Product Importer Extension for WooCommerce (Free)](https://wordpress.org/plugins/bulk-photo-to-product-importer-extension-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bulk-photo-to-product-importer-extension-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bulk-photo-to-product-importer-extension-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/bulk-photo-to-product-importer-extension-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulk-photo-to-product-importer-extension-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulk-photo-to-product-importer-extension-for-woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/uses-external-javascript-for-nothing/#post-9195309)