Created
July 10, 2011 16:44
-
-
Save ne-sachirou/1074682 to your computer and use it in GitHub Desktop.
@ichitaso linkwithin #js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
before https://gist.github.com/1074530