Xiaopei's DokuWiki

These are the good times in your life,
so put on a smile and it'll be alright

User Tools

Site Tools


it:firefox

Firefox

proxy

ssh -ND 8080 user@ssh.server

在Firefox设置SOCKS远程域名解析,主要是为了防止DNS污染,具体设置方法是,在Firefox地址栏中,输入 about:config ,按确认,修改里面的一项数值,改成 network.proxy.socks_remote_dns=true 就可以了。

about:config

关闭所有tab后关闭窗口

browser.tabs.closeWindowWithLastTab;false

必装插件

开发相关

通用

  • add to search bar
  • delicious - 用了很久的书签, 搜索功能有些差, ifttt 上有接口, 但现在怎么总记不住登陆 8-O
  • xmarks - 新用的书签工具, 但怎么也总记不住登陆 8-O
  • downthemall!
  • FEBE - 备份插件
  • flagfox
  • Site Launcher, 通过快捷键访问常用站点(及bookmarklet)1)
    • dokuwiki link
      javascript:window.prompt("Copy%20to%20clipboard:%20Ctrl+C,%20Enter",%20"[["+location.href+"|"+document.title+"]]");window.focus();
    • 简体繁体转换 2)
      javascript:(function(){var%20s=document.getElementById("tongwenlet_cn");if(s!=null){document.body.removeChild(s);}var%20s=document.createElement("script");s.language="javascript";s.type="text/javascript";s.src="http://tongwen.openfoundry.org/NewTongWen/tools/bookmarklet_cn.js";s.id="tongwenlet_cn";document.body.appendChild(s);%20})();
  • screengrab
  • 按网页的 headings 生成目录
    • table of contents, 这个插件写得很烂, 会在 <input> 内容中莫名其妙地加 “close”
    • 现在改用 HeadingsMap, 快捷键是 Option-O
  • MeasureIt
  • cacheviewer
  • vimium-firefox
    f - follow link
    F - follow link in new tab
    yf - copy link
    yy - copy current location
    Ctrl+[ - blur from HTML or XUL control
    gg - scroll to top
    G - scroll to bottom
    h,j,k,l - scroll to left/top/bottom/right (? 不知到干啥用)

dotjs

GreaseMonkey user scripts are great, but you need to publish them somewhere and re-publish after making modifications. With dotjs, just add or edit files in ~/.js

Bonus: files in ~/.js have jQuery 1.9 loaded, regardless of whether the site you're hacking uses jQuery.

Double bonus: ~/.js/default.js is loaded on every request, meaning you can stick plugins or helper functions in it.

grease monkey + grease fire

必装搜索引擎

  • google.com
  • baidu
  • wikipedia(en)
  • wikipedia(zh)
  • urban dictionary

阻止那些不存在的网站的社交脚本

  1. 安装 adblock
  2. customer filters
  3. add filter group
  4. filter rules 如下:
||twitter.com^
||facebook.com^
||apis.google.com/js/plusone.js
||gravatar.com

Grease Monkey

it/firefox.txt · Last modified: 2014/12/06 19:26 by admin