Skip to content

Instantly share code, notes, and snippets.

@ne-sachirou
Created July 10, 2011 16:44
Show Gist options
  • Save ne-sachirou/1074682 to your computer and use it in GitHub Desktop.
Save ne-sachirou/1074682 to your computer and use it in GitHub Desktop.
@ichitaso linkwithin #js
if (location.href.match(/^.+\/entry[\-0-9]*\.html$/g) || // 記事ページ
location.href.match(/^.+\/entry[\-0-9]*\.html\#cbox$/g)) { // コメントをクリックして入る記事ページ
document.write('<script>' +
'var linkwithin_site_id = 362768;' +
'var linkwithin_text = "他にもこんな記事があります";' +
'</script>' +
'<script src="http://www.linkwithin.com/widget.js"></script>');
}
@ne-sachirou
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment