Skip to content

Instantly share code, notes, and snippets.

@negipo
Created September 10, 2010 11:00
Show Gist options
  • Save negipo/573449 to your computer and use it in GitHub Desktop.
Save negipo/573449 to your computer and use it in GitHub Desktop.
// ==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