@woshichuanqilz
2015-11-01T08:26:19.000000Z
字数 739
阅读 1613
firefox
这个例子的核心是在Vimperator中调用一个JavaScript。
下面这段文字写到Vimperatorrc里面就可以了。
" Change firefox stylennoremap <silent> <A-s> :js ChangeStyle()<CR>js <<EOFChangeStyle = function() {var id = [1];var service = Components.classes["@userstyles.org/style;1"].getService(Components.interfaces.stylishStyle)for (var i=0; i < id.length; i++){var style = service.find(id[i], service.REGISTER_STYLE_ON_CHANGE);style.enabled = !style.enabled;style.save();}}EOF
做这个问题困扰我的东西是, 网上下载的一个Vimperatorrc的文件中有一句是错误的, 导致后面的设置没有生效, 而我在写这个东西的时候, 就是接在这个句子后面写的这个函数。救国导致问题。
所以, 还希望大家能够注意到这个问题避免弯路。
How to change the color of the command line in Vimperator .
Depending on the mode, that would probably be the CmdLine highlighting:highlight CmdLine background: #191919; color: #afafaf; font-size: 9pt;See :highlight.
