Topic: Firefox Universal Plugin Development  (Read 35678 times)

0 Members and 1 Guest are viewing this topic.

Firefox Universal Plugin Development
« on: October 04, 2012, 11:47:03 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
Hi,

Here's the place to discuss the Mozilla Firefox (universal) plugin.

Mozilla Firefox

ila_rendered

This plugin supports current 32 bit Firefox versions and has been tested with v41 to v56. You should be able to use it with official milestone releases
as with beta versions. Confirmed working with Win8.1SE x86/x64.

Requirements:
  • sufficient RAM ~ 2 GB if you want to use Flash or Firefox add-ons
  • Support for the Flash plugin (not recommended though)
  • Internet connection for fetching the Mozilla installer (optional)
  • additionally my script ยป Sumatra PDF universal if you want to equip Firefox with the ability to display PDF files (defunct)
  • Win8.1SE+ as project

This is the best and most convenient script for Mozilla Firefox around: Set everything you want to, include bookmarks, add-ons, and utilize additional search plugins.

(Download link below)

Put the Firefox universal script into ..\Apps\Network and the Sumatra PDF script into ..\Apps\Supplementary\Office.
Originally, both scripts have been developed for Win7PESE.

Enjoy! :wink:

Note: Please read the [Info] section of the plugin concerning the handling of upcoming Firefox versions.
« Last Edit: November 01, 2017, 10:05:17 AM by Mikka, Reason: Updated Firefox script »

Re: Additional web browser scripts
« Reply #1 on: October 05, 2012, 12:53:41 PM »

ChrisR

  • Win7PE SE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 2911
Thank you Mikka, I'm a fan of Opera but really nice to have alternatives.
For fans of Firefox or I know less SRWare Iron. In slight, there is also the good QTWeb.

:cheers:

Re: Additional web browser scripts
« Reply #2 on: October 06, 2012, 12:35:26 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
I published those two scripts because I think they fit perfectly in Win7PESE and represent the remaining groups.
There are quite a few Mozilla users and a growing percentage that prefer Chromium (WebKit browsers).

Personally, I'm fond of Firefox, primarily due to its great expandability (add-ons, user scripts, pref hacks and so forth).
I didn't yet manage to include these amenities in the script, however they're on my agenda (every help is highly welcome!).
For instance, it would be great to have add-ons like AdBlock Plus, OptimizeGoogle etc. in the build.

On the other hand, there is Iron. People using it appreciate its speed and simplicity. It's superior to QtWeb regarding GUI and stability and it's updated more often.
Compared to Google's Chrome, Iron rates better, too.

Opera, finally, is a remnant of former times (=browser plus mail client), but my first choice when it comes to online banking. :thumbsup:

Re: Additional web browser scripts
« Reply #3 on: October 21, 2012, 02:08:57 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
The Firefox script has been updated to version 4.

Re: Additional web browser scripts
« Reply #4 on: December 04, 2012, 09:35:50 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
The Firefox script now holds theoven.org as default homepage address.
I guess this will make some guys at reboot.pro quite happy...
:grin:

Re: Additional web browser scripts
« Reply #5 on: December 20, 2012, 01:32:48 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7389
Hi Mikka,

thanks for updates  :thumbsup: ,
hopefully will use on next months  :cool:

don't forget to update [Main] Contact= in future updates  :wink:

Happy Christmas
 :xmas-beer:

Re: Additional web browser scripts
« Reply #6 on: February 03, 2013, 01:00:15 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
Major update for Mozilla Firefox (universal): Now with the ability to include Firefox extensions (add-ons).
Upon request further details may follow.

Re: Additional web browser scripts
« Reply #7 on: February 03, 2013, 02:09:07 PM »

ChrisR

  • Win7PE SE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 2911
Major update for Mozilla Firefox (universal): Now with the ability to include Firefox extensions (add-ons).
Upon request further details may follow.
Thank you for the many fans of Firefox with all available extensions  :thumbsup:

Re: Additional web browser scripts
« Reply #8 on: April 15, 2013, 05:45:57 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
New version of the Mozilla Firefox script is available. Now DirectX dependency is announced in the description, CopyFlash method has been revised for Windows x64 (as WB system), ensuring that the correct files are copied.

Version 8 was successfully tested with Win8PESE as well.
« Last Edit: April 21, 2013, 01:39:14 AM by Mikka, Reason: Replaced by slightly improved version 8 »

Re: Additional web browser scripts
« Reply #9 on: April 23, 2013, 06:16:26 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
Version 9 of Mozilla Firefox universal script should be more compatible with Gena, hopefully.
Version 4 of SRWare Iron universal script has been uploaded as well (might have some compatibility issues).

Any feedback is highly welcome.

Re: Additional web browser scripts
« Reply #10 on: April 24, 2013, 01:16:44 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1982
Hi Mikka,

Thanks for the updated plugin. I haven't fully tested with Gena, but I have a couple of initial things for compatibility.

When a space in an IniWrite parameter is made, it needs to be enclosed with quotes otherwise a warning is made in the log. For example:
IniWrite,%DownloadFolder%\core\application.ini,Crash Reporter,Enabled,0
-->
IniWrite,%DownloadFolder%\core\application.ini,"Crash Reporter",Enabled,0

When you have a comma in a TxtAddline parameter, it needs to be escaped otherwise there is an error. For example:
TxtAddline,%_prefjs_%,"user_pref(#$qbrowser.startup.homepage#$q, #$q%HomepageUrl%#$q);",Append
-->
TxtAddline,%_prefjs_%,"user_pref(#$qbrowser.startup.homepage#$q#$c #$q%HomepageUrl%#$q);",Append

Regards,
Galapo.

Re: Additional web browser scripts
« Reply #11 on: April 24, 2013, 12:33:33 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1982
Also, this  lines like this are not compatible with WB 077rc2, which does not recognise "NoWarn,NoRec":

FileDelete,%TargetFfxIni%\profile\extensions\*.cmd,NoWarn,NoRec

For the time being leave them off. I'm trying to create a function to delete files and folders that accept wildcards. Just need some time...

Regards,
Galapo.

Re: Additional web browser scripts
« Reply #12 on: April 25, 2013, 03:35:16 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
Let's hope your list won't become too long, but what you reported so far seems no big deal.

FileDelete,%TargetFfxIni%\profile\extensions\*.cmd,NoWarn,NoRec

For the time being leave them off. I'm trying to create a function to delete files and folders that accept wildcards. Just need some time...

Here comes a quick draft:
ShellExecute,Hide,cmd.exe,"/c cd #$q%TargetFfxIni%\profile\extensions#$q && For #$pi In (*.*) Do (@If Not #$p~xi==.xpi Del/f #$pi)"

What about ordinary ...,NoWarn and ...,NoRec lines, could they pose problems?

And what about this very line?
TxtAddline,%_prefjs_%,"user_pref(#$qbrowser.bookmarks.file#$q#$c #$qX:\\Users\\Default\\AppData\\Roaming\\Mozilla\\Firefox\\profile\\%BookmarksFile%#$q);",Append

Does a path like X:\Users\Default\AppData\Roaming\Mozilla\Firefox\profile\ work for Gena?
Unfortunately, a valid path has to be hard coded in prefs.js for Firefox to work...
« Last Edit: November 05, 2015, 10:15:31 AM by Mikka, Reason: Obsolete attachment removed »

Re: Additional web browser scripts
« Reply #13 on: April 25, 2013, 04:08:19 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7389
Hi Mikka,

Galapo's addition for wildcards is about to be ready in a shortwhile  :wink:
Something we delayed and forgot a long while now, will be ready, and easy to use, very soon.....


I guess, for your last question, check "User Profile Folder" usage here
http://theoven.org/index.php?topic=473.0



As far as I can see, like in all applications, FireFox use same subfolder under app-data (..\Mozilla\Firefox\Profiles)
so I guess (not tested) this is what you are looking for:
Code: [Select]
IniRead,%ProjectDir%\Script.Project,BasePath,Appdata,%AppData%
Set,%FireFoxAppDataFolder%,%TargetProfilesBaseDir%\%AppData%\Mozilla\Firefox\Profiles

:turtle:

Re: Additional web browser scripts
« Reply #14 on: April 25, 2013, 04:44:17 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1982
Hi Mikka,

For deleting of files using wildcards, you can now use the following:

Code: [Select]
Call,FileDeleteX,%TargetFfxIni%\profile\extensions\*.cmd

For the bookmarks location with Gena, you could use something like this:
Code: [Select]
IniRead,%ProjectDir%\Script.Project,Settings,SettingsDrive,%SettingsDrive%
IniRead,%ProjectDir%\Script.Project,BasePath,Appdata,%AppData%
Set,%t%,%SettingsDrive%\%AppData%\Mozilla\Firefox\Profiles
StrFormat,REPLACE,%t%,\,\\,%t%
TxtAddline,%_prefjs_%,"user_pref(#$qbrowser.bookmarks.file#$q#$c #$q%t%\\%BookmarksFile%#$q);",Append

Regards,
Galapo.
« Last Edit: April 26, 2013, 01:41:27 AM by Galapo »

Re: Additional web browser scripts
« Reply #15 on: April 26, 2013, 12:38:48 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1982
Codes updated in post above. :wink: Thanks to Lancelot for helping me. :smile:

Regards,
Galapo.

Re: Additional web browser scripts
« Reply #16 on: April 28, 2013, 07:27:49 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
Great, Galapo, thank you. I'm quite contented with Firefox universal right now.
[Update:] I've uploaded the current state later, in the meantime you may [also] have a look at my Sumatra PDF universal script.

Some hints [improvements?] regarding AutoIt maybe...?
« Last Edit: May 04, 2013, 12:07:38 AM by Mikka »

Re: Additional web browser scripts
« Reply #17 on: May 04, 2013, 01:21:05 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
I'm revising my SRWare Iron script (fixed an "inconsistency" for v26, investigating ability to use Chrome extensions), I liked Galapo's suggestion for dynamically detecting %AppData%, I wonder whether there's a similar way to write (Win7PESE)
X:\Users\Default\AppData\Local\Chromium [%LocalAppData%\Chromium]
which might equate to
X:\Documents and Settings\Default User\Local Settings\Application Data\Chromium
for non-W7 based projects like Gena?

It seems that there's no pre-defined LocalAppData in Script.Project (as there's no variable %LocalAppData% in older Windows version). Is there an "elegant" solution?

Re: Additional web browser scripts
« Reply #18 on: May 06, 2013, 01:54:13 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7389
Hi Mikka,

"Default User" of Application data never required on PE so far ;)

I guess (from info provided) what you need is something like that (with default project options):

Code: [Select]
[BasePath]
...
DUAppData=Users\Default\AppData\Local

Code: [Select]
[BasePath]
...
DUAppData=GenaP\Default User\Application Data

.. following similar syntax on coding...
(please first test to see how it goes)

reminding: I am sure you  do not mix "local application data for user" with "default user" , only reminding,
  there is also a local settings app data for "user", on Gena it is around here (do not know where on nt6x but I guess similar)
    GenaP\GenaU\Local Settings\Application Data

:turtle:

Re: Additional web browser scripts
« Reply #19 on: May 19, 2013, 04:05:20 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 240
Hi Lancelot,

DUAppData=Users\Default\AppData\Local is correct.

Maybe that line ought to be added to the section [BasePath], for the nonce I commented the relevant code in my script. But nice to have for a future version.

In the meantime I made a couple of changes for the Iron script. The automated integration of extensions essentially works (successfully tested for version 24), and it would be perfect if Google didn't fuckmess up version 25! Beginning with Chrome/Iron 25 (the current version is also affected) the once recommended silent method does no longer work (for "security" reasons...).

So integrating crx extensions will now result in a moronic click fest to authorise each single item at first run.
This will surely annoy the hell out of you! :mad:

 

Powered by EzPortal