Created
August 5, 2015 22:27
-
-
Save davidlwatsonjr/4bc18308cee5317d2add to your computer and use it in GitHub Desktop.
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
javascript: (function() { | |
var url = encodeURIComponent(location.href); | |
var w = 47; | |
var h = 86; | |
var ifr = document.createElement('iframe'); | |
ifr.style.position = 'fixed'; | |
ifr.style.top = '10px'; | |
ifr.style.left = '10px'; | |
ifr.style.width = w + 'px'; | |
ifr.style.height = h + 'px'; | |
ifr.style.border = 'none'; | |
ifr.style.zIndex = 2147483647; | |
ifr.src = '//www.facebook.com/plugins/like.php?href=' + url + '&show_faces=false&width=' + w + '&height=' + h + '&layout=box_count&action=like&share=true'; | |
ifr.scrolling = 'no'; | |
ifr.frameborder = 0; | |
document.getElementsByTagName('body')[0].appendChild(ifr); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment