如何切换'包含文档'更容易在cloudant仪表板内?

时间:2015-02-12 13:56:14

标签: cloudant

目前只需点击几下即可切换' include_docs'云量仪表板内的标志。如果你这么做,那可能需要花费一些时间。

如何加快这个过程?

1 个答案:

答案 0 :(得分:0)

我创建了一个javascript bookmarklet

javascript:(function(){
   if(document.location.toString().contains('include_docs=true')){
      document.location=document.location.toString().replace('include_docs=true', '')
   } else {
      if (document.location.toString.contains('?') {
          document.location+='&include_docs=true'
      } else {
          document.location+='?include_docs=true'
      }
   }
}())

当我想打开或关闭'include_docs'时,我只需点击书签工具栏中的这个书签即可。

注意:我只在firefox上测试了这个。