Stand by...

powertwitterの文字化けを解消する

使用前 使用後

動機

  1. powertwitterのリンク展開機能は素敵だけど、リンク先タイトルが日本語だと文字化けして悲しい。
  2. powertwitter.jsを観察してみると、どうやら本文中のリンクをpowertwitter.me の req.php に渡して、あちらでよろしく処理されたJSONを受け取って表示しているご様子。
  3. で、そのよろしく処理が文字化けしててよろしくない。
  4. リンクのタイトルを持ってくる部分だけ横取りしてみよう。

機能

  • 外部リンク先が日本語のタイトルでも(他の言語もたぶん)文字化けせずに表示してくれる。
  • 日本のTwitter連動画像投稿サービス(携帯百景とモバツイ経由のはてなフォトライフ)の画像を表示してくれる。
  • 本家よりちょっとだけ正確にfaviconを取得してくれる。
  • それ以外は本家のPowerTwitterに順ずる。

携帯百景に対応 モバツイ経由のはてなフォトライフに対応

使い方

  1. powertwitter.js を探す。
    Windowsなら[ C:\Documents and Settings\(ユーザー名)\Application Data\Mozilla\Firefox\Profiles\(ほにゃらら).default\extensions\{b2509cd4-17cd-45ed-8146-a82af038f493}\content\powertwitter.js ]辺りにあるはず。
  2. powertwitter.js の1210行目辺りを編集する。
     twitter_JSON.src= ptLinkParseService + "?action=parseLink&version="+ptVersionNumber+"&format=json&linkNumber="+i+ptPreferences+"&url="+escape(ptThisLink.href);

     twitter_JSON.src= "http://flyer.to/_temp/pt/req.php" + "?action=parseLink&version="+ptVersionNumber+"&format=json&linkNumber="+i+ptPreferences+"&url="+escape(ptThisLink.href);

仕組み

  • ちょっと前バージョンで中身はこんな感じ。
  • 戻り値の組み合わせを観察したいのでログ取ってます。
	$linkNumber = htmlentities( $_GET['linkNumber'] , ENT_QUOTES );
	$url = htmlentities( $_GET['url'] , ENT_QUOTES );
	
	$pt_format = file_get_contents("http://powertwitter.me/req.php?action=parseLink&version=1.35&format=json&linkNumber={$linkNumber}&url={$url}");
	
	$json = substr( $pt_format , 15 , -2 );

	$log = fopen("results.txt","a");
	fwrite( $log , "linkNumber[{$linkNumber}]\n" . "url[{$url}]\n" . print_r( json_decode( $json ) , true ) . "\n\n" );
	fclose( $log );

	$obj = json_decode($json);
	
	if( $obj->type == 'generic' ) {

		if ( preg_match(  "/(.*?)<\/title>/i" , mb_convert_encoding( file_get_contents( $obj->url ) , "utf-8" , "auto" ) , $matches ) ) {
			$html_title = $matches[1];
		} else {
			$html_title = $obj->url;
		}

		$html_domain = parse_url( $obj->url , PHP_URL_HOST );

		$obj->results = "<div style='font-size: 11px; width: 80%; margin: 10px 0px 10px 26px; background-color: #f7f7f7; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 5px; '><img style='margin-right: 4px; float: left;' src='http://google.com/s2/favicons?domain={$html_domain}'>{$html_title}</div>";

	}
	$json = json_encode($obj);
	$pt_format = "ptCbLinkExpand({$json});";
	echo $pt_format;
</pre>
<h3>課題</h3>
<ul>
<li>たまに素の状態でも化けない時があるよね。</li>
<li>たまにpowertwitter.jsが外部リンクを取りこぼしてる時があるよね。</li>
<li>たまに外部リンクののタイトルを取りこぼしてる時があるよね。</li>
<li>リプライ元の文章を表示できるようになったらもっと嬉しいね。</li>
</ul>
<h3>参考</h3>
<ul>
<li><a onclick="javascript:pageTracker._trackPageview('/outgoing/powertwitter.me/');"  href="http://powertwitter.me/" target="_blank">http://powertwitter.me/</a></li>
<li><a onclick="javascript:pageTracker._trackPageview('/outgoing/twitter.ww-ape.com/step3/powertwitter/');"  href="http://twitter.ww-ape.com/step3/powertwitter/" target="_blank">PowerTwitter -動画や画像のサムネイルを表示できたりする事が可能になるFirefoxアドオン-</a></li>
</ul>
<!-- AddThis Sharing Buttons below -->
                <div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://flyer.to/?p=1045' addthis:title='powertwitterの文字化けを解消する' >
                    <a class="addthis_button_preferred_1"></a>
                    <a class="addthis_button_preferred_2"></a>
                    <a class="addthis_button_preferred_3"></a>
                    <a class="addthis_button_preferred_4"></a>
                    <a class="addthis_button_compact"></a>
                    <a class="addthis_counter addthis_bubble_style"></a>
                </div>
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://flyer.to/?p=1589" title="WordPressのTwitter ToolsがInternal Server Errorを吐く (2012/03/13)">WordPressのTwitter ToolsがInternal Server Errorを吐く</a> (0)</li>
	<li><a href="http://flyer.to/?p=910" title="ヒウィッヒヒィー.png (2009/07/23)">ヒウィッヒヒィー.png</a> (0)</li>
	<li><a href="http://flyer.to/?p=581" title="ustream API を使ってみる (2009/05/20)">ustream API を使ってみる</a> (0)</li>
	<li><a href="http://flyer.to/?page_id=822" title="TwitterBot (2009/07/19)">TwitterBot</a> (12)</li>
	<li><a href="http://flyer.to/?p=685" title="phpでGoogle AJAX Language APIを叩いて翻訳させる (2009/06/18)">phpでGoogle AJAX Language APIを叩いて翻訳させる</a> (1)</li>
</ul>

     <script type="text/javascript"><!--
google_ad_client = "pub-0858859586535744";
google_ad_slot = "7738103451";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>     
<!-- Generated by Simple Tags 2.4.5 - http://wordpress.org/extend/plugins/simple-tags -->
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://flyer.to/?p=1589" title="WordPressのTwitter ToolsがInternal Server Errorを吐く (2012/03/13)">WordPressのTwitter ToolsがInternal Server Errorを吐く</a> (0)</li>
	<li><a href="http://flyer.to/?p=910" title="ヒウィッヒヒィー.png (2009/07/23)">ヒウィッヒヒィー.png</a> (0)</li>
	<li><a href="http://flyer.to/?p=581" title="ustream API を使ってみる (2009/05/20)">ustream API を使ってみる</a> (0)</li>
	<li><a href="http://flyer.to/?page_id=822" title="TwitterBot (2009/07/19)">TwitterBot</a> (12)</li>
	<li><a href="http://flyer.to/?p=685" title="phpでGoogle AJAX Language APIを叩いて翻訳させる (2009/06/18)">phpでGoogle AJAX Language APIを叩いて翻訳させる</a> (1)</li>
</ul>

    </div><!-- .entry -->
    <div class="entry-meta">
     <span class="entry-cats"><a href="http://flyer.to/?cat=1" rel="category">チラシの裏</a> / </span>
     <span class="entry-cmts"><a href="http://flyer.to/?p=1045#comments">1 Comment</a></span>
     <span class="entry-tags"><strong>Tags:</strong> <a href="http://flyer.to/?tag=firefox" rel="tag">firefox</a>, <a href="http://flyer.to/?tag=javascript" rel="tag">javascript</a>, <a href="http://flyer.to/?tag=json" rel="tag">JSON</a>, <a href="http://flyer.to/?tag=php" rel="tag">php</a>, <a href="http://flyer.to/?tag=powertwitter" rel="tag">powertwitter</a>, <a href="http://flyer.to/?tag=twitter" rel="tag">ついったー</a><br /></span>
     <span class="entry-admin"></span>
    </div><!-- .entry-meta -->
   </div><!-- .post -->
   <div class="clear"></div>
  </div><!-- .postdiv -->
  <div class="navigation">
     </div><!-- .navigation -->
  <div class="clear"></div>
    <hr />
  <div id="social">
		<div class="social-post">
		<div id="loading" style="display:none">
			<input type="hidden" id="reload_url" value="http://flyer.to/index.php?social_controller=auth&social_action=reload_form&redirect_to=http://flyer.to/?p=1045&post_id=1045" />
			ログイン中…		</div>
			<div id="respond" class="comment-respond">
		<h3 id="reply-title" class="comment-reply-title">プロフィール <small><a rel="nofollow" id="cancel-comment-reply-link" href="/?p=1045#respond" style="display:none;">キャンセル</a></small></h3>			<form action="http://flyer.to/wp-comments-post.php" method="post" id="commentform" class="comment-form">
				<div class="social-sign-in-links social-clearfix">
		<a class="social-twitter social-imr social-login comments" href="http://flyer.to/index.php?social_controller=auth&social_action=authorize&key=twitter&post_id=1045" id="twitter_signin" target="_blank">Twitterでサインイン</a>
		<a class="social-facebook social-imr social-login comments" href="http://flyer.to/index.php?social_controller=auth&social_action=authorize&key=facebook&post_id=1045" id="facebook_signin" target="_blank">Facebookでサインイン</a>
	</div>
<div class="social-divider">
	<span>または</span>
</div>
<p class="social-input-row social-input-row-comment"><label for="comment" class="social-label">コメント</label><textarea id="comment" name="comment" class="social-input" required="required"></textarea></p><p class="social-input-row social-input-row-author"><label for="author" class="social-label">お名前</label><input id="author" name="author" class="social-input" required="required" type="text" value="" /></p>
<p class="social-input-row social-input-row-email"><label for="email" class="social-label">メールアドレス</label><input id="email" name="email" class="social-input" required="required" type="text" value="" /><small class="social-help">非公開</small></p>
<p class="social-input-row social-input-row-url"><label for="url" class="social-label">ウェブサイト</label><input id="url" name="url" class="social-input" type="text" value="" /></p>
<p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="投稿する" /> <input type='hidden' name='comment_post_ID' value='1045' id='comment_post_ID' />
<input type='hidden' name='comment_parent' id='comment_parent' value='0' />
<input type="hidden" id="use_twitter_reply" name="use_twitter_reply" value="0" /><input type="hidden" id="in_reply_to_status_id" name="in_reply_to_status_id" value="" /></p><div id="commentform-extras"><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="93bf18c385" /></p><p style="display: none;"><input type="hidden" id="ak_js" name="ak_js" value="107"/></p></div>			</form>
			</div><!-- #respond -->
		</div>
	<div id="social-tabs-comments">
				<ul class="social-nav social-clearfix">
			<li class="social-all social-tab-main social-current-tab"><a href="#" rel="social-all"><span>1件の返信</span></a></li>
			<li class="social-wordpress"><a href="#" rel="wordpress"><span>0 Comments</span></a></li>
			<li class="social-twitter"><a href="#" rel="social-twitter"><span>0 Tweets</span></a></li>
			<li class="social-facebook"><a href="#" rel="social-facebook"><span>0 Facebook</span></a></li>
			<li class="social-pingback"><a href="#" rel="social-pingback"><span>1 Pingback</span></a></li>
		</ul>

		<!-- panel items -->
		<div id="social-comments-tab-all" class="social-tabs-panel social-tabs-first-panel">
			<div id="comments" class="social-comments">
				<div class="social-last-reply-when">最後の返信は2009/10/27でした。</div><div class="cf-clearfix"></div>				<ol class="social-commentlist">
				<li class="pingback even thread-even depth-1 social-comment social-clearfix social-pingback" id="li-comment-2693">
<div class="social-comment-inner social-clearfix" id="comment-2693">
	<div class="social-comment-header">
		<div class="social-comment-author vcard">
			<cite class="social-fn fn"><a href='http://flyer.to/archives/1076' rel='external nofollow' class='url'>2009-10-27のつぶやき | Flyer.to</a></cite>		</div>
		<!-- .comment-author .vcard -->
		<div class="social-comment-meta social-comment-meta-pingback">
			<span class="social-posted-from">
								<span>ビュー</span>
							</span>
			<a href="http://flyer.to/?p=1045#comment-2693" class="social-posted-when" target="_blank">2009/10/27</a>
		</div>
	</div>
	<div class="social-comment-body">
				<p>[…] powertwitterの完全日本語版を作りたい。 <a href="http://flyer.to/archives/1045" rel="nofollow">http://flyer.to/archives/1045</a> だけだと手の届かない部分がある。 # […]</p>
	</div>
			<div class="social-actions entry-meta">
			</div>
		<!-- .reply -->
</div><!-- #comment-2693 -->
</li><!-- #comment-## -->
				</ol>
							</div>
		</div>
			</div>
	<!-- #Comments Tabs -->
	</div>
 </div> <!-- #content -->
 <hr />
 <div id="sidebar">
  <div class="widget"><h3 class="widget-header"><a class="rsswidget" href="http://tumblr.flyer.to/rss"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="http://flyer.to/wp-includes/images/rss.png" alt="RSS" /></a> <a class="rsswidget" href="">tumblr</a></h3><div class="widget-content blocklink"></div></div>		<div class="widget">		<h3 class="widget-header">最近の投稿</h3><div class="widget-content blocklink">		<ul>
					<li>
				<a href="http://flyer.to/?p=1782">DJのおしらせ</a>
						</li>
					<li>
				<a href="http://flyer.to/?p=1772">Macbook Air 11インチの人が、2016年に買えるPCの検討</a>
						</li>
					<li>
				<a href="http://flyer.to/?p=1759">「ACBSP.exe は動作を停止しました」の解決策</a>
						</li>
					<li>
				<a href="http://flyer.to/?p=1744">THE INTERVIEWS #2</a>
						</li>
					<li>
				<a href="http://flyer.to/?p=1740">THE INTERVIEWS #1</a>
						</li>
				</ul>
		</div></div>		<div class="widget"><h3 class="widget-header">最近のコメント</h3><div class="widget-content blocklink"><ul id="recentcomments"><li class="recentcomments"><a href="http://flyer.to/?p=641&cpage=1#comment-32261">2009-06-04のつぶやき</a> に <span class="comment-author-link"><a onclick="javascript:pageTracker._trackPageview('/outgoing/yourcybercoins.pro/old-republic/the-old-republic-cartel-coins-free/star-wars-the-old-republic-240-cartel-coins-free/');"  href='http://yourcybercoins.pro/old-republic/the-old-republic-cartel-coins-free/star-wars-the-old-republic-240-cartel-coins-free/' rel='external nofollow' class='url'>star wars the old republic 240 cartel coins free</a></span> より</li><li class="recentcomments"><a href="http://flyer.to/?p=1694&cpage=1#comment-26970">2012-05-16のつぶやき</a> に <span class="comment-author-link"><a onclick="javascript:pageTracker._trackPageview('/outgoing/www./');"  href='http://www./' rel='external nofollow' class='url'>http://www./</a></span> より</li><li class="recentcomments"><a href="http://flyer.to/?p=641&cpage=1#comment-26942">2009-06-04のつぶやき</a> に <span class="comment-author-link"><a onclick="javascript:pageTracker._trackPageview('/outgoing/autoversicherungeinfach.info/3-versicherung-fahranfänger.html');"  href='http://autoversicherungeinfach.info/3-versicherung-fahranfänger.html' rel='external nofollow' class='url'>3 versicherung fahranfänger</a></span> より</li><li class="recentcomments"><a href="http://flyer.to/?p=641&cpage=1#comment-26591">2009-06-04のつぶやき</a> に <span class="comment-author-link"><a onclick="javascript:pageTracker._trackPageview('/outgoing/fanveyb.com');"  href='http://fanveyb.com' rel='external nofollow' class='url'>Emeline</a></span> より</li><li class="recentcomments"><a href="http://flyer.to/?p=1694&cpage=1#comment-26579">2012-05-16のつぶやき</a> に <span class="comment-author-link"><a onclick="javascript:pageTracker._trackPageview('/outgoing/hsqfptlg.com');"  href='http://hsqfptlg.com' rel='external nofollow' class='url'>Lois</a></span> より</li></ul></div></div><div class="widget"><h3 class="widget-header">Links</h3><div class="widget-content blocklink">
	<ul class='xoxo blogroll'>
<li><a href="http://firefox.jp">firefox.jp</a></li>
<li><a href="http://hey.dj/" title="XOOPSをカスタマイズして作りました。">Hey.DJ</a></li>
<li><a href="http://astore.amazon.co.jp/flyerto-22" title="なんか買ってくれると僕が喜ぶ">J@Amazon</a></li>
<li><a href="http://bcphotoshare.com/photos/64837" title="JのPhotoShare">J@PhotoShare</a></li>
<li><a href="http://twitter.com/flyer_to" title="JのTwitter">J@Twitter</a></li>
<li><a href="http://mumei.co.jp/" title="2002年に作った酒場。2008年には渋谷にも増えた。">無銘喫茶/無銘食堂</a></li>
<li><a href="http://densan.cc/" title="2008年に作った新しい会社">電算室</a></li>

	</ul>
</div></div>
<div class='widget'>
<h3 class='widget-header'>Random Images</h3>
<div class='widget-content blocklink'><ul class='randomigame'>
<li><a href='http://flyer.to/?p=248'><img src='http://flyer.to/_files/6b-150x150.jpg' alt='まだ1/4なのに窮屈'  /></a></li>
 
<li><a href='http://flyer.to/?p=345'><img src='http://flyer.to/_files/22a-150x150.jpg' alt='22a'  /></a></li>
 
<li><a href='http://flyer.to/?p=98'><img src='http://flyer.to/_files/p-640-480-23dad9e3-215e-420d-b9a2-a4a0015ffd9f.jpeg' alt='random image'  /></a></li>
 
<li><a href='http://flyer.to/?p=326'><img src='http://flyer.to/_files/13a-150x150.jpg' alt='13a'  /></a></li>
 
<li><a href='http://flyer.to/?p=869'><img src='http://flyer.to/_files/m_200907071540124a52edcc2a8bf.jpeg-150x150.jpg' alt='PK102 で無銘食堂の壁に映してみる'  /></a></li>
</ul></div></div>
 </div> <!-- #sidebar -->
 <hr />
 <div class="clear"></div>
 </div> <!-- #mainblock -->
<div id="headerdiv">
  <ul id="menu-header" class="menu"><li id="menu-item-1650" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1650"><a href="http://flyer.to">Home</a></li>
<li id="menu-item-1649" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1649"><a href="http://flyer.to/?cat=127">Cancer</a></li>
<li id="menu-item-1651" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1651"><a href="http://astore.amazon.co.jp/flyerto-22">Store</a></li>
<li id="menu-item-1647" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1647"><a href="http://flyer.to/?page_id=121">Contact</a></li>
<li id="menu-item-1648" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1648"><a href="http://flyer.to/?page_id=119">About</a></li>
</ul></div> <!-- #headerdiv -->
<div id="footer">
 This page took 1.615 seconds of computer labor to produce.
 Proudly powered by <a href="http://wordpress.org/">WordPress</a> & <a href="http://hellobmw.com/">LoseMyMind II</a><!-- Please keep my link. Thanks very much. -->.<br />
 Copyright © <a href="http://flyer.to/">Flyer.to</a>.
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shCore.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushCSharp.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushPhp.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushJScript.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushJava.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushVb.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushSql.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushXml.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushDelphi.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushPython.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushRuby.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushCss.js"></script>
<script class="javascript" src="http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/shBrushCpp.js"></script>
<script class="javascript">
dp.SyntaxHighlighter.ClipboardSwf = 'http://flyer.to/wp-content/plugins/google-syntax-highlighter/Scripts/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script>

<!-- tracker added by Ultimate Google Analytics plugin v1.6.0: http://www.oratransplant.nl/uga -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1609896-3");
pageTracker._initData();
pageTracker._trackPageview();
</script>
<script type="text/javascript"><!--
var ID="100224425";var AD=3;var FRAME=0;
// --></script>
<script src="http://j1.ax.xrea.com/l.j?id=100224425" type="text/javascript"></script>
<noscript><a href="http://w1.ax.xrea.com/c.f?id=100224425" target="_blank"><img src="http://w1.ax.xrea.com/l.f?id=100224425&url=X" alt="AX" border="0"></a></noscript>
<!-- AdSense Manager v4.0.3 (1.616 seconds.) --><!-- Powered by WPtouch: 4.3.11 --><script data-cfasync="false" type="text/javascript">
var addthis_config = {"data_track_clickback":true,"ui_atversion":300,"ignore_server_config":true};
var addthis_share = {};
</script>
                <!-- AddThis Settings Begin -->
                <script data-cfasync="false" type="text/javascript">
                    var addthis_product = "wpp-5.3.4";
                    var wp_product_version = "wpp-5.3.4";
                    var wp_blog_version = "4.7.15";
                    var addthis_plugin_info = {"info_status":"enabled","cms_name":"WordPress","plugin_name":"Share Buttons by AddThis","plugin_version":"5.3.4","anonymous_profile_id":"wp-556dcffd8c49873b8edaf7fc2ff19a88","plugin_mode":"WordPress","select_prefs":{"addthis_per_post_enabled":true,"addthis_above_enabled":false,"addthis_below_enabled":true,"addthis_sidebar_enabled":false,"addthis_mobile_toolbar_enabled":false,"addthis_above_showon_home":true,"addthis_below_showon_home":true,"addthis_above_showon_pages":true,"addthis_below_showon_pages":true,"addthis_above_showon_categories":true,"addthis_below_showon_categories":true,"addthis_above_showon_archives":true,"addthis_below_showon_archives":true,"addthis_above_showon_posts":true,"addthis_above_showon_excerpts":true,"addthis_below_showon_posts":true,"addthis_below_showon_excerpts":true,"addthis_sidebar_showon_home":true,"addthis_sidebar_showon_posts":true,"addthis_sidebar_showon_pages":true,"addthis_sidebar_showon_archives":true,"addthis_sidebar_showon_categories":true,"addthis_mobile_toolbar_showon_home":true,"addthis_mobile_toolbar_showon_posts":true,"addthis_mobile_toolbar_showon_pages":true,"addthis_mobile_toolbar_showon_archives":true,"addthis_mobile_toolbar_showon_categories":true,"sharing_enabled_on_post_via_metabox":true},"page_info":{"template":"posts","post_type":""}};
                    if (typeof(addthis_config) == "undefined") {
                        var addthis_config = {"data_track_clickback":true,"ui_atversion":300,"ignore_server_config":true};
                    }
                    if (typeof(addthis_share) == "undefined") {
                        var addthis_share = {};
                    }
                    if (typeof(addthis_layers) == "undefined") {
                        var addthis_layers = {};
                    }
                </script>
                <script
                    data-cfasync="false"
                    type="text/javascript"
                    src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4e8ba62c480e69c3 "
                    async="async"
                >
                </script>
                <script data-cfasync="false" type="text/javascript">
                    (function() {
                        var at_interval = setInterval(function () {
                            if(window.addthis) {
                                clearInterval(at_interval);
                                addthis.layers(addthis_layers);
                            }
                        },1000)
                    }());
                </script>
                <script type='text/javascript' src='http://flyer.to/wp-content/plugins/akismet/_inc/form.js?ver=3.2'></script>
<link rel='stylesheet' id='addthis_output-css'  href='http://flyer.to/wp-content/plugins/addthis/css/output.css?ver=4.7.15' type='text/css' media='all' />
<script type='text/javascript' src='http://flyer.to/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var _wpcf7 = {"recaptcha":{"messages":{"empty":"\u3042\u306a\u305f\u304c\u30ed\u30dc\u30c3\u30c8\u3067\u306f\u306a\u3044\u3053\u3068\u3092\u8a3c\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}}};
/* ]]> */
</script>
<script type='text/javascript' src='http://flyer.to/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.6.1'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var Sociali18n = {"commentReplyTitle":"\u8fd4\u4fe1\u3092\u6295\u7a3f"};
/* ]]> */
</script>
<script type='text/javascript' src='http://flyer.to/wp-content/plugins/social/assets/social.js?ver=3.1.1'></script>
<script type='text/javascript' src='http://flyer.to/wp-includes/js/wp-embed.min.js?ver=4.7.15'></script>
<!--wp_footer--></div> <!-- #footer -->
</div> <!-- #page -->
<!-- 88 queries. -->
</body>
</html>