Created
July 29, 2010 07:50
-
-
Save negipo/497549 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ==UserScript== | |
// @name LikeLoudlyEveryWhere | |
// @namespace http://polog.com/ | |
// @include http://* | |
// @include https://* | |
// ==/UserScript== | |
(function (){ | |
if(unsafeWindow.self != unsafeWindow.top){ | |
return; | |
} | |
var wrapper = document.createElement('div'); | |
wrapper.style.cssText = 'position: fixed; top: 50%; left: 50%; width:200px; margin-right: -50px; -moz-transform: scale(8.0)'; | |
wrapper.innerHTML = '<iframe src="http://www.facebook.com/plugins/like.php?href=' + encodeURI(location.href) + '&layout=standard&show_faces=true&width=200&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:80px;" allowTransparency="true"></iframe>'; | |
document.body.appendChild(wrapper); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment