Skip to content

Instantly share code, notes, and snippets.

@miukoba
Created January 13, 2012 15:37
Show Gist options
  • Save miukoba/1607010 to your computer and use it in GitHub Desktop.
Save miukoba/1607010 to your computer and use it in GitHub Desktop.
はてなブログで編集フォームとプレビューを並べて表示するブックマークレット(2012-01-13時点,はてな記法モードのみ,Mac・Chromeのみ動作確認済)
javascript : (function ()
{
var d = document;
var t = d.getElementById('textarea').style;
var p = d.getElementById('preview').style;
document.getElementsByClassName('tab-preview')[0].childNodes[0].onclick = function ()
{
document.getElementsByClassName('ui-tabs-selected')[0].className = 'tab-edit ui-state-default ui-corner-top';
};
t.width = "39%", t.float = "left", t.display = "block", p.width = "60%", p.float = "right", p.display = "block";
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment