編集画面のサイドバーなどを消す


// ==UserScript==
// @name hd editmax
// @namespace http://hp.vector.co.jp/authors/VA024182/
// @description hateda edit size max ,sidebar del
// @include http://d.hatena.ne.jp/*/edit*
// ==/UserScript==


var sidebar = document.getElementById('sidebar');
if (sidebar) {
sidebar.parentNode.removeChild(sidebar);
}

そうじゃなくて。



// ==UserScript==
// @name hd editmax
// @namespace http://hp.vector.co.jp/authors/VA024182/
// @description hateda edit size max ,sidebar del
// @include http://d.hatena.ne.jp/*/edit*
// ==/UserScript==

function deldiv(id) {
var item = document.evaluate('//div[@id=\"' + id + '\"]' ,
document, null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
if (item.snapshotItem(0)) {
item.snapshotItem(0).parentNode.removeChild(item.snapshotItem(0));
}
}

function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}


deldiv('sidebar');
deldiv('neighbor-list');
deldiv('comment-list');
deldiv('referer-list');
addGlobalStyle(
'#main{ margin-left:0px ! important; } ' +
'#textarea-edit{ height:1000px ! important; }'
);

インストールはこちら
http://hp.vector.co.jp/authors/VA024182/txt/hated_editmax.user.js
http://userscripts.org/scripts/show/6884