Topic: Firefox Universal Plugin Development  (Read 54755 times)

Re: Firefox universal script development
« Reply #60 on: October 04, 2015, 10:42:22 AM »

NexusFred

  • Jr. Chef
  • **
  • Location: Europe
  • Date Registered: Sep 2015
  • Posts: 20
Incorporate all the tweaks seems complicate because they is so many.

- Change the buttons order in the Personal Bar
- Add/Remove buttons in the Personal Bar
- Do the same with the Status Bar > Status-4-Evar
- Activate/Disable the auto-fit for Image
- Set the default page zoom or for a specific website
- Change the homepage
- Set Open new page in a new page or a new tab
- Set the default open applications
- Set the slide speed
- etc etc

Well tweak Firefox  :grin:

Best Regards

Re: Firefox universal script development
« Reply #61 on: October 04, 2015, 01:18:13 PM »

Lancelot

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

I guess you can attach plugin directly to topic post, 2.68 MB should be ok, if not let me know.

*
Remembering old posts,
 Probably since your last visit, we have
  Call,TargetAppdata
    etc...
      which make things tidy and easy,
       See end of Macro Library, Call topic: http://theoven.org/index.php?topic=45.0

See You
:turtle:

Re: Firefox universal script development
« Reply #62 on: October 04, 2015, 06:36:26 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 256
@NexusFred:
Flexible customization to the UI is not simple and so would be a .js import option! We may discuss a few of the tweaks, though.
Integration of arbitrary add-ons isn't a trivial task either and will get more complicated as soon as Mozilla will switch on mandatory signatures.
This will incite people to redundantly upload their customized add-ons to receive individual signatures which is totally crazy in my opinion.
That's why I ponder on reducing functionality of the Firefox script to keep it operative in future ...

@Lancelot:
Yes, ML improvements is on my agenda. Could you give me an example of what to replace by Call,TargetAppdata?
:undecided:

Re: Firefox universal script development
« Reply #63 on: October 04, 2015, 06:52:15 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
@Lancelot:
Yes, ML improvements is on my agenda. Could you give me an example of what to replace by Call,TargetAppdata?
:undecided:
You can test results inside builder codebox,

MacroLibrary have "New CodeBox" button to get a codebox ready to test things.
ex:
- Click MacroLibrary "New CodeBox" button.
- Click CodeBox button at top middle.
-
inside codebox, at the end of [Process] Add
Code: [Select]
Call,TargetAppdata
Echo,%TargetAppdata%,Warn
-
hit green play button at very right topish (near wizard button),
-
than hit "Log" button (at top middle, right of Codebox button).

******
This way, You can test all commands quickly,
MacroLibrary Call page have test example of all commands http://theoven.org/index.php?topic=45.0  :thumbsup:

+
Reminding history, you had asked in very past about putting files to AppData folder ;)
 Than we created and provided some ways at that times,
    later we improved simpler commands with Macro Library..


**********
Spend some time, follow above example, try to figure out,
 things are easier than introducing on a post.  :wink:
   Like writing how to ride a bicycle on a post to someone who never ride a bicycle ...

:turtle:

Re: Firefox universal script development
« Reply #64 on: October 11, 2015, 01:57:01 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 256
@Lancelot:
Okay, I checked your ML suggestion as I'm working on a new script version anyway.

For the nonce, I won't change the variable treatment. The reason is, that I need %AppData%, which is a mere substring of the result given by Call,TargetAppdata.
I need to construct two different variables with %AppData%, and filtering %TargetAppdata% afterwards is cumbersome (with the modest possibilities of WB macros).
Btw, I also use %SettingsDrive% and didn't find a ML substitution for that, either.

@NexusFred:
  • Change/add buttons (order) in the Personal Bar: this depends on the file xulstore.json.
    I cannot tell a way to automate this for arbitrary add-ons, in any case it would be very extensive.
  • Activate/Disable the auto-fit for Image: should be possible, but maybe not "by default".
  • Set the default page zoom or for a specific website: Too particular.
  • Change the homepage: This option already exists.
  • Set tweak x... All this requires modifying prefs.js, which will get too complex.
    The last releases I cut things down, adding security tweaks but reducing UI excesses.
« Last Edit: October 12, 2015, 09:22:07 AM by Mikka, Reason: correction of wording mistake »

Re: Firefox universal script development
« Reply #65 on: October 11, 2015, 02:05:53 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
@Lancelot:
Okay, I checked your ML suggestion as I'm working on a new script version anyway.

For the nonce, I won't change the variable treatment. The reason is, that I need %AppData%, which is a mere substring of the result given by Call,TargetAppdata.
I need to construct two different variables with %AppData%, and filtering %TargetAppdata% afterwards is cumbersome (with the modest possibilities of WB macros).
Btw, I also use %SettingsDrive% and didn't find a ML substitution for that, either.

As you wish  :thumbsup:
 
Reminding, After improvments, and updating all files on servers we manage,
 we remove old syntax and old organisations , slowly in time,
   information given to users like above, further up to Plugin Author.  :thumbsup:

*
 SettingsDrive not required anymore as you should have seen with Call,TargetAppdataOS or
Call,TargetAUAppdataOS
  Still if there are other requirements, development continue with reports & feedbacks.  :thumbsup:

:turtle:

Re: Firefox universal script development
« Reply #66 on: October 11, 2015, 03:03:34 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 256
Well, comparing %TargetAppdataOS% to %SettingsDrive%\%AppData% - they're not identical.
IMO, using IniRead,%ProjectDir%\script.project,BasePath,Appdata,%AppData% to populate var strings is still best practice.

Re: Firefox universal script development
« Reply #67 on: October 11, 2015, 03:29:23 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks,

A lucky feedback, Chris seem to miss BuildType on some SE projects  :smile:

Try with latest Macro Library, currently v42.r123
Tip: There is "small green" download button on Macro Library

now it should give you what you need, if not let us know.

*
I added above post as an example on FAQ http://theoven.org/index.php?topic=834.0
Ctrl+F
Development of both Syntax and Organisations always continues,
....

reminding: iniread you use above will fail in some future, Call,TargetAppdataOS
 and other Calls will continue developing  :wink:



:turtle:

Re: Firefox universal script development
« Reply #68 on: October 11, 2015, 04:41:04 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 256
Same result, I'll stick to IniRead ...

Re: Firefox universal script development
« Reply #69 on: October 11, 2015, 05:07:51 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Don't give too much information,
 Aladdin is at south east.  :wink:

Here works perfect.

Well, on my side, you were informed.  :thumbsup:

:turtle:

Re: Firefox universal script development
« Reply #70 on: October 12, 2015, 09:31:42 AM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 256
Here works perfect.
%SettingsDrive%\%AppData% equals X:\Users\Default\AppData\Roaming which is what I'm looking for.
OTOH, %TargetAppdataOS% equals X:\Users\Administrator\AppData\Roaming.
And I dislike the idea of additionally replacing "Administrator" or %username% by "Default" to get the correct result...

Re: Firefox universal script development
« Reply #71 on: October 12, 2015, 10:06:34 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
I don't know which project , which settings ( mode ) you are working on,

after you boot,
at cmd prompt

Code: [Select]
Echo %appdata%

result must be same with Call,TargetAppdataOS -> %TargetAppdataOS%
 if not feedback (project + settings)  :thumbsup:


And I dislike the idea of additionally replacing "Administrator" or %username% by "Default" to get the correct result...
Than create a topic and write to Chris and JFX :
 you dislike the idea of additionally replacing "Administrator" or %username% by "Default"


On my side:
 if there is a new user profile  ( + adjustments ) [ ex: with name "Mikka" ] ,
  I will do the adjustments so Call,TargetAppdataOS work as expected, plugins like firefox continue working nice.

:turtle:
« Last Edit: October 12, 2015, 10:06:49 AM by Lancelot »

Re: Firefox universal script development
« Reply #72 on: October 12, 2015, 12:39:24 PM »

Mikka

  • Code Baker
  • Chef
  • ***
  • Location: Germany
  • Date Registered: May 2012
  • Posts: 256
Lancelot, you're right:
In Win8.1SE Call,TargetAppdataOS -> %TargetAppdataOS% == %appdata% in the build.
Obviously, there is a discrepancy between script.project and ML, as I've got
both X:\Users\Default\AppData... and X:\Users\Administrator\AppData...
And its content is similar or identical: that's bad.

This is to fix before I release the next script version.
Thanks for the hint.
« Last Edit: October 12, 2015, 12:40:08 PM by Mikka »

Re: Firefox universal script development
« Reply #73 on: October 12, 2015, 01:22:13 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
ML always follow projects  :wink:  :thumbsup:

Great all figured out nicely  :magic: :cheerleader: :xmas-beer:

Have fun developing next Firefox plugin version  :great:

See You
:turtle:

Re: Firefox universal script development
« Reply #74 on: October 20, 2015, 10:59:40 PM »

Mr_Cool59

  • Apprentice
  • *
  • Date Registered: Feb 2012
  • Posts: 3
only doing what i was told even tho i know this is the wrong section

i have tried to build a win 8.1 x64 with the Firefox script from Mikka but i keep getting a xpcom error when i try and start it. the build completes just fine since it does not error out. it should also be noted that it also does this with a portable version of Firefox as well when i use the portable apps.com script also.

Re: Firefox universal script development
« Reply #75 on: October 21, 2015, 08:56:41 AM »

Kvark

  • Jr. Chef
  • **
  • Date Registered: Sep 2015
  • Posts: 69
only doing what i was told even tho i know this is the wrong section

i have tried to build a win 8.1 x64 with the Firefox script from Mikka but i keep getting a xpcom error when i try and start it. the build completes just fine since it does not error out. it should also be noted that it also does this with a portable version of Firefox as well when i use the portable apps.com script also.

Almost the same for me. Tried the latest Firefox script under Win7PE SE x64 and got two errors:
1) pdh.dll is missing (however, the file exists)
2) XPCOM error

I've tried to perform a clean Firefox installation under Win7PE built with the plugin disable; I installed Firefox in a running PE system. After successful installation it still fails to start. The errors are the same.

It seems that this is not a script issue, but a 64-bit Win7PESE problem.
« Last Edit: October 21, 2015, 01:18:34 PM by Kvark »

Re: Firefox universal script development
« Reply #76 on: October 21, 2015, 02:17:45 PM »

Roootman

  • Jr. Chef
  • **
  • Date Registered: Mar 2013
  • Posts: 44
It seems that this is not a script issue, but a 64-bit Win7PESE problem.

I also tried on a Win 8.1 PESE X64 and a Win 10 PESE X64 with the exact same error.  Whatever the cause is it's common to the 64 bit PE builds with WOW64.

Re: Firefox universal script development
« Reply #77 on: October 21, 2015, 06:34:33 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
but a 64-bit Win7PESE problem.
opposite:
Win7PESE builds and boot fine,
Than
plugins provide missing things that are special for their tasks
 (ex: like getting FireFox application operational)

well if it is not special to FireFox, than it can be considered differently..

Still, Chris and JFX (also following JFX design) very mostly (not always, up to consideration .. ) add none core things to get application portability, so end user life is easier...
 + plugins still provide missing things ;).

It is only a nice balance, getting end user life easier result above wrong perception.

 :wink:


edit:
See also JFX reply 1 here : http://theoven.org/index.php?topic=1486
« Last Edit: October 21, 2015, 07:05:48 PM by Lancelot »

Re: Firefox universal script development
« Reply #78 on: October 22, 2015, 08:20:40 AM »

Kvark

  • Jr. Chef
  • **
  • Date Registered: Sep 2015
  • Posts: 69
It works now! I've added dependencies for pdh.dll, pdhui.dll and hid.dll to provide the 64-bit compatibility. The new script version is attached. Tested on Win7PE SE x64.

Re: Firefox universal script development
« Reply #79 on: October 22, 2015, 08:55:29 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks Kvark,

Minor fix:
Code: [Select]
Require_FileQ,pdh.dll
Require_FileQ,pdhui.dll
is enough

Require_FileQ,pdh.dll.mui
Require_FileQ,pdhui.dll.mui

not required

Macro Library : Require_FileQ
http://theoven.org/index.php?topic=43.0

Tip:
Require_FileQ available for all plugins

:turtle:

 

Powered by EzPortal