133のをmapに突っ込んでも動いたよ
nnoremap ,q :js (function (ev, arg) { var id = content.document.getElementById("watch7-sidebar"); if (id.offsetHeight) id.style.display = "none"; else id.style.display = "block"; })();<CR>

上のはUserCommandにするとき何故かcontent削ってる
直接UserCommand叩けばid is nullとかでるし。content追加したら動いてるぽいしそれが問題じゃね?