PageSourceSearch

https://fungus-media.com/wp-content/themes/modest/js/social-button.js?ver=5.4.24

js fungus-media.com collected 2026-10-07 04:07:49 UTC 2,806 bytes, 95 lines download raw bytes

1 
2(function(d, s, id) {
3  var js, fjs = d.getElementsByTagName(s)[0];
4  if (d.getElementById(id)) return;
5  js = d.createElement(s); js.id = id;
6  js.src = "//connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v2.3";
7  fjs.parentNode.insertBefore(js, fjs);
8}(document, 'script', 'facebook-jssdk'));
9
10
11
12
13!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.async=true;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
14 
15
16  window.___gcfg = {lang: 'ja'};
17 
18  (function() {
19    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
20    po.src = 'https://apis.google.com/js/plusone.js';
21    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
22  })();
23
24//Twitterのシェア数を取得
25function get_social_count_twitter(url, selcter) {
26  jQuery.ajax({
27  url:'http://urls.api.twitter.com/1/urls/count.json',
28  dataType:'jsonp',
29  data:{
30    url:url
31  },
32  success:function(res){
33    jQuery( selcter ).text( res.count || 0 );
34  },
35  error:function(){
36    jQuery( selcter ).text('0');
37  }
38  });
39}
40
41//Facebookのシェア数を取得
42function get_social_count_facebook(url, selcter) {
43  jQuery.ajax({
44    url:'https://graph.facebook.com/',
45    dataType:'jsonp',
46    data:{
47      id:url
48    },
49    success:function(res){
50      jQuery( selcter ).text( res.shares || 0 );
51    },
52    error:function(){
53      jQuery( selcter ).text('0');
54    }
55  });
56}
57
58//Google+のシェア数を取得
59function get_social_count_googleplus(url, selcter) {
60  jQuery.ajax({
61    type: "get", dataType: "xml",
62    url: "http://query.yahooapis.com/v1/public/yql",
63    data: {
64      q: "SELECT content FROM data.headers WHERE url='https://plusone.google.com/_/+1/fastbutton?hl=ja&url=" + url + "' and ua='#Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36'",
65      format: "xml",
66      env: "http://datatables.org/alltables.env"
67    },
68    success: function (data) {
69      var content = jQuery(data).find("content").text();
70      var match = content.match(/window\.__SSR[\s*]=[\s*]{c:[\s*](\d+)/i);
71      var count = (match != null) ? match[1] : 0;
72
73      jQuery( selcter ).text(count);
74    }
75  });
76}
77
78//はてなブックマークではてブ勝を取得
79function get_social_count_hatebu(url, selcter) {
80  jQuery.ajax({
81    url:'http://api.b.st-hatena.com/entry.count?callback=?',
82    dataType:'jsonp',
83    data:{
84      url:url
85    },
86    success:function(res){
87      jQuery( selcter ).text( res || 0 );
88    },
89    error:function(){
90      jQuery( selcter ).text('0');
91    }
92  });
93}
94
95

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.