From d8b1e52cd1091f70b100a4dfeb8bba25c1233f2c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 20 Mar 2012 14:08:43 +0900 Subject: [PATCH] update my-setpref --- _keysnail.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index afa2d91..0ce72de 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -158,15 +158,6 @@ plugins.options["twitter_client.use_jmp"] = true; //////////////////////////////////////////// // エクステ -ext.add("my-setpref2", function(){ - // navigator.platform - util.setPrefs( - { - "browser.cache.disk.parent_directory":"/tmp" - } - ); -}, "my setpref2"); - ext.add('my-setpref', function(){ util.setPrefs( { @@ -202,8 +193,16 @@ ext.add('my-setpref', function(){ "network.dns.disableIPv6":true, "refcontrol.actions":"@DEFAULT=@FORGE", "scrapbook.tabs.open":true - } + } ); + if(/^Linux/.test(navigator.platform)){ + util.setPrefs( + { + "browser.cache.disk.parent_directory":"/tmp", + "browser.cache.disk.capacity":524288 + } + ); + } display.showPopup("Keysnail", "My prefs done."); }, 'my setpref');