Created
September 10, 2010 11:00
-
-
Save negipo/573449 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
// ==UserScript== | |
// @name MixiCheckEverywhere | |
// @namespace http://polog.com/ | |
// @include * | |
// ==/UserScript== | |
var html = [ | |
'<iframe src="http://plugins.mixi.jp/favorite.pl?href=' + encodeURIComponent(location.href)+'&service_key=..."', | |
' scrolling="no"', | |
' frameborder="0"', | |
' allowTransparency="true"', | |
' style="border:0; overflow:hidden; width:450px; height:80px;"></iframe>' | |
].join(''); | |
var div = document.createElement('div'); | |
div.innerHTML = html; | |
div.style.cssText = 'position:fixed;top: 50%; left: 49%; margin-right: -580px; -moz-transform: scale(20.0)'; | |
document.body.appendChild(div); | |
function log(s){unsafeWindow.console.log(s)}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment