Firefox optimization output to USB Drive <Keitai FOX>

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Firefox optimization output to USB Drive <Keitai FOX>

Post by oryaaaaa »

Firefox optimization output to USB Drive (Multi language)

After it began to have opened it to the public, this software achieved
the download of 6000 in two days. I announced this at the same time
as Firefox1.0.

Mado no Mori NEWS , Goo News, Infoseek News, etc
http://www.forest.impress.co.jp/article ... aifox.html

Keitai FOX Ver1.2 88KB
http://dbp.cool.ne.jp/software/Keitaifox.exe

HDD C:Firefox >>>> USB Drive F:Firefox

You select and execute the USB drive (At the output destination).
You can compress about 5MB by using UPX.EXE. You can unnecessarily
execute UPX of course. 20MB is necessary for empty capacity of the
USB drive.

END. If you execute Firefox.exe at the output destination, you will be
able to use Firefox of desktop and the same extension, the bookmark,
and the plug-in.

Please report that I want to ask if you find strange English. :lol:

Thanks
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

Will portable Firefox be only an English version? It is difficult for the Japanese. I made it.
This makes Firefox of all the language specifications portable Firefox.

This corresponds to all almost plug-ins and extensions.
This is copied from desktop as is.
This is a design that everyone can easily use it.
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

WWW.NewFreeware.Com
http://www.newfreeware.com/internet/2443/

MozillaZine Firefox
http://forums.mozillazine.org/viewtopic.php?t=162483

The main code part

Code: Select all

Procedure Copy2tmp()
  DeleteDirectory(ExePath()+"firefox", "", #PB_FileSystem_Recursive)
  CopyDirectory(GetPathPart(FirefoxFile), ExePath()+"firefox", "", #PB_FileSystem_Recursive)
  CopyDirectory(ProfileDir, ExePath()+"firefox\profile","", #PB_FileSystem_Recursive)
  DeleteDirectory(ExePath()+"firefox\profile\Cache", "", #PB_FileSystem_Recursive)
  DeleteDirectory(ExePath()+"firefox\profile\Cache.Trash", "", #PB_FileSystem_Recursive)
  DeleteDirectory(ExePath()+"firefox\uninstall", "", #PB_FileSystem_Recursive) 

  If ReadFile(1, ExePath()+"firefox\profile\prefs.js")
    CreateFile(2, ExePath()+"firefox\profile\prefs.js.new")
    While Eof(1)=0 
      UseFile(1)
      A$ = ReadString() +Chr(13)+ Chr(10)
      If FindString(A$, "C:\", 0)
      ElseIf FindString(A$, "browser.cache.disk.capacity", 0)
      ElseIf FindString(A$, "browser.download.manager.retention", 0)
      ElseIf FindString(A$, "browser.download.useDownloadDir", 0)
      ElseIf FindString(A$, "browser.formfill.enable", 0)
      ElseIf FindString(A$, "browser.history_expire_days", 0)
      ElseIf FindString(A$, "browser.Buffererences.lastpanel", 0)
      ElseIf FindString(A$, "browser.shell.checkDefaultBrowser", 0)
      ElseIf FindString(A$, "extensions.disabledObsolete", 0)
      ElseIf FindString(A$, "network.cookie.lifetimePolicy", 0)
      ElseIf FindString(A$, "network.cookie.BuffersMigrated", 0)
      Else
        Debug A$
        UseFile(2)
        WriteString(A$)
        UseFile(1)
      EndIf
    Wend
    CloseFile(1)
    UseFile(2)
    WriteStringN("user_pref("+Chr(34)+"browser.cache.disk.capacity"+Chr(34)+", 0);")
    WriteStringN("user_pref("+Chr(34)+"browser.download.manager.retention"+Chr(34)+", 1);")
    WriteStringN("user_pref("+Chr(34)+"browser.download.useDownloadDir"+Chr(34)+", false);")
    WriteStringN("user_pref("+Chr(34)+"browser.formfill.enable"+Chr(34)+", false);")
    WriteStringN("user_pref("+Chr(34)+"browser.history_expire_days"+Chr(34)+", 0);")
    WriteStringN("user_pref("+Chr(34)+"browser.preferences.lastpanel"+Chr(34)+", 0);")
    WriteStringN("user_pref("+Chr(34)+"browser.shell.checkDefaultBrowser"+Chr(34)+", false);")
    WriteStringN("user_pref("+Chr(34)+"extensions.disabledObsolete"+Chr(34)+", true);")
    WriteStringN("user_pref("+Chr(34)+"network.cookie.lifetimePolicy"+Chr(34)+", 2);")
    WriteStringN("user_pref("+Chr(34)+"network.cookie.prefsMigrated"+Chr(34)+", true);")
    CloseFile(2)
    Delay(500)
    RenameFile(ExePath()+"firefox\profile\prefs.js", ExePath()+"firefox\profile\prefs.js.old")
    RenameFile(ExePath()+"firefox\profile\prefs.js.new",ExePath()+"firefox\profile\prefs.js")
    DeleteFile(ExePath()+"firefox\profile\prefs.js.old")
  EndIf
  
  If ReadFile(3, ExePath()+"firefox\profile\chrome\chrome.rdf")
    CreateFile(4, ExePath()+"firefox\profile\chrome\chrome.rdf.new")
    While Eof(3)=0 
      UseFile(3)
      A$ = ReadString() +Chr(13)+ Chr(10)
      Debug A$
      MS1=FindString(A$, "jar:file:",0)
      If MS1>0
        MS2=FindString(A$, "extensions",MS1)
        MS3.s=Mid(A$, MS1, MS2-MS1)
        A$=ReplaceString(A$, MS3, "jar:resource:/profile/")
      EndIf
      UseFile(4)
      WriteString(A$)
      UseFile(3)
    Wend   
    CloseFile(3)  
    CloseFile(4)
    Delay(500)
    RenameFile(ExePath()+"firefox\profile\chrome\chrome.rdf", ExePath()+"firefox\profile\chrome\chrome.rdf.old")
    RenameFile(ExePath()+"firefox\profile\chrome\chrome.rdf.new",ExePath()+"firefox\profile\chrome\chrome.rdf")
    DeleteFile(ExePath()+"firefox\profile\chrome\chrome.rdf.old")
  EndIf
  
  
  If ReadFile(5, ExePath()+"firefox\chrome\chrome.rdf")
    CreateFile(6, ExePath()+"firefox\chrome\chrome.rdf.new")
    While Eof(5)=0 
      UseFile(5)
      A$ = ReadString() +Chr(13)+ Chr(10)
      Debug A$
      MS1=FindString(A$, "jar:file:",0)
      If MS1>0
        MS2=FindString(A$, "extensions",MS1)
        MS3.s=Mid(A$, MS1, MS2-MS1)
        A$=ReplaceString(A$, MS3, "jar:resource:/") 
      EndIf
      UseFile(6)
      WriteString(A$)
      UseFile(5)
    Wend   
    CloseFile(5)  
    CloseFile(6)
    Delay(500)
    RenameFile(ExePath()+"firefox\chrome\chrome.rdf", ExePath()+"firefox\chrome\chrome.rdf.old")
    RenameFile(ExePath()+"firefox\chrome\chrome.rdf.new",ExePath()+"firefox\chrome\chrome.rdf")
    DeleteFile(ExePath()+"firefox\chrome\chrome.rdf.old")
  EndIf
  
  If UPXFile<>""
    SetGadgetText(#Button_Run,"UPX") 
  Else
    SetGadgetText(#Button_Run,"MOVE") 
  EndIf  
EndProcedure
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

http://www.forest.impress.co.jp/article ... nking.html

This software was the most famous software news of Japan, and it became
the second ranking place on the week.

1.... Firefox Ver1.0
2..... KeitaiFox Ver1.2 (This Software)
3..... DivX Pro Plasma Code
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

So this software is to allow the execution of Firefox from a USB drive?

What is the difference in this and just installing firefox to a USB flash drive?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

I think the software copies all your profile settings etc....... and maybe back again.... keeping it in sync ?! Not sure....

He seems to be onto a winner in Japan at least !

Good luck to him, if I had such a device I'd give it a go.

well done Oryaaaaa ;)

Are there many PB sales in Japan ? Maybe Oryaaa could do a little marketing whilst he's at it ?!

:D
Paid up PB User !
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

>Karbon

Yes, it is the one operated with USB Memory Drive.
Portable Firefox and the principle of operation are the same. (*)
When Firefox Ver1.0 is installed in USB Memory Drive, it is not possible to
operate with other personal computers.
The personal computer can be used at most cafes and the schools in Japan.
It is communicated by wireless LAN. The USB memory drive is widespread.

C: Keitaifox.exe (RUN)
C: Firefox+Bookmark+Extenshon >To> USB Memory Drive

* Portable Firefox cannot be displayed in Japanese.
However, if this tool is used, any language can be used.

>dontmailme

When the friend heard it from Fred in 2003, the Japanese was three people.
They are not accustomed to an English manual though everyone thinks
the concern to be high.

I think that PureBasic spreads more in Japan if it is possible to buy it on
the maximum software sales site "VECTOR" in Japan.
http://www.vector.co.jp/
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

2004/12/14 ... 2005/01/11
http://www.forest.impress.co.jp/lib/

KeitaiFox was chosen as the highest carefully selected software library in Japan.
I begin to use PureBasic, and the first heroic deed.

I help the Japanese version of everybody release.
Post Reply