Android용 Firefox가 용량을 너무 차지할때.

Firefox for Android는 앱 자체의 용량은 30MiB 밖에 안 하는데 데이터를 합치면 80MiB 정도 된다. 앱보다 쌓이는 데이터가 더 크다.
(Chrome for Android는 앱 자체부터 60MiB나 하기 때문에 전체 사용량은 90MiB를 찍는다. 둘을 합치면 좀 끔찍하다.)
요즘의 브라우저는 사이트별로 설정(위치정보 공개, 로컬스토리지 등)을 저장하기 때문에 Self-destructing cookies라는 플러그인을 설치해뒀지만 그래도 소용이 없었다. 그래서 결국은 검색을 했도 이런 글을 찾게 되었다. 설정이 아니라 캐시가 문제였다.

  1. Firefox가 캐시로 사용할 폴더를 만들고
  2. about:config에 들어가서
  3. browser.cache.disk.parent_directory라는 항목을 만들어서 그 디렉터리를 적어넣는다.

위와같이 설정하면 더이상 /data/data/org.mozilla.firefox/ 안에 캐시를 쌓지 않고 지정한 디렉터리에 캐시를 쌓게 된다. /data/와는 다르게 이건 루트권한이 없어도 삭제가 가능하므로 원하는 때에 지울 수 있다. 아니면 maximum_capacity 어쩌고 하는 값 자체를 줄여버리면 일정 크기 이상으로 캐시를 쌓지 않는다.

하지만 이렇게 해도 이미 쌓아놓은 캐시를 지우지는 않는다. 여전히 디스크 사용량은 돼지이기 때문에 지워줄 필요가 있다.
루트권한이 없다면 어쩔 수 없이 설정에 들어가 앱 데이터를 몽땅 지워버리면 되고 루트권한이 있다면 /data/data/org.mozilla.firefox/files/mozilla/<id>.default/Caches 디렉터리를 날려주면 된다. 이제 좀 불여우가 불돼지에서 벗어났다.

pentadactyl 사용법

Basic: green

middle: blue

expert: red

scroll:

h: scroll left

l: scroll right

j: scroll down

k: scroll up

gg: go top

G: go bottom

<number>%: goto <number> percent of page

focus:

f: follow link

F: follow link in a background tab

;;: mouse over on a link (useful in frame-like page)

;s: save a link or image

mamaging tab:

o: open url

O: open url based current url

t: tab open

T: tab open based current url

d: close current tab

r: reload current tab

R: reload current tab without cache

gt: goto next tab

gT: goto previous tab

<C-n>: goto next tab

<C-p>: goto previous tab

:tabm <number>: move tab to <number>

:pin: pin tab

misc:

gi: goto input box

gf: view source

gF: view source in external editor

<C-i>: edit inputbox in external editor

<C-v>: passthru one command

<C-z>: passthru any command until press <esc>

managing url:

H: goto previous page

L: goto next page

gu: goto upper directory

gU: goto root directory

<C-a>: increase number on url

<C-x>: decrease number on url

<

p style=”margin-left: 2em;”>]]: goto link labeled “next” or etc

pentadactylrc

"1.0rc1

loadplugins '\.(js|penta)$'
group user
highlight Hint font: bold 20px "Source Code Pro", monospace !important; margin: -.2ex; padding: 0 0 0 1px; outline: 1px solid rgba(0, 0, 0, .5); background: rgba(255, 248, 231, .8) !important; color: black !important;
map -count -modes=n j -builtin <count><C-d>
map -count -modes=n k -builtin <count><C-u>
set autocomplete=
set guioptions=brs
set hintkeys=asdfg;lkjhweio
set hintmatching=firstletters
set scroll=5
set showtabline=multitab
set hinttags+=a:not([name])

set editor='/usr/local/bin/mvim -f + +"sil! call cursor(0, <column>)" '

set passkeys=mail.google.com:'`~!#*+-./<C-Down><C-s><Enter>?INU[]acefjklmnopqrsuvxyz',*a,*n,*r,*s,*t,*u,ga,gc,gd,gi,gl,gs,gt,yo
set passkeys+=twitter.com:jkr.<cr>ln,gr,gh,ga,gf
set passkeys+=plus.google.com:jkonprl<Left><Right><Up><Down>
set strictfocus=twitter.com:laissez-faire,'chrome:*':laissez-faire,*:moderate

nmap -builtin <C-]> <C-v><esc>
imap -builtin <C-]> <esc>
tmap -builtin <C-]> <esc>

imap -builtin <C-p> <esc><C-p>
imap -builtin <C-n> <esc><C-n>

imap -builtin <cr> <pass>

js hints.addMode('h', "Echo title of element", function (elem) dactyl.echo(elem.title));
se extendedhinttags+=[h]:[title]

js hints.addMode('e', 'Focus input field', function(elem){dactyl.focus(elem);} );
se extendedhinttags+=[e]:input:not([type=hidden]),textarea,button,select

"map <esc> <C-v><esc><esc>

" vim: set ft=vim: