[EXT] Download Status Bar

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
jendrew
Posts: 15
Joined: May 17th, 2015, 5:25 pm

Re: [EXT] Download Status Bar

Post by jendrew »

Hello:
Can you please advise -- how I may export my settings for this add-on?

I find the add-on key for me, so I would like to have a backup, in case i have to rebuild my fx profile.
thankyou
The_Rave
Posts: 95
Joined: January 25th, 2005, 8:36 am
Location: Germany

Re: [EXT] Download Status Bar

Post by The_Rave »

Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all

//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");
User avatar
joeg
Posts: 2616
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Re: [EXT] Download Status Bar

Post by joeg »

The_Rave wrote:Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all

//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");
Wow! It really works. Thanks very much.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.
omji
Posts: 3
Joined: April 11th, 2014, 10:55 pm

Re: [EXT] Download Status Bar

Post by omji »

It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks
User avatar
joeg
Posts: 2616
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Re: [EXT] Download Status Bar

Post by joeg »

omji wrote:It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks
How about trying The_Rave's fix?
Although every day is Judgment Day, I nonetheless feel like a room without a roof.
fauxreaper
Posts: 1
Joined: January 26th, 2016, 2:30 pm

Re: [EXT] Download Status Bar

Post by fauxreaper »

Where is located this "bootstrap.js"?
User avatar
HughHyatt
Posts: 41
Joined: July 16th, 2003, 6:04 am
Location: Metro Phila.
Contact:

Re: [EXT] Download Status Bar

Post by HughHyatt »

The_Rave wrote:Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all

//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");
I have 8 files in my home directory named "bootstrap.js". Five are in subdirectories of ~/.mozilla/firefox/, but none has more than 1,473 lines. Furthermore, I can't find anything relevant on the referenced page; what am I missing?
Use open source software; with no walls and fences, who needs Windows and Gates? — Luis Pinto

(Linux Mint 20.3 (una)/Win10) Firefox 107.0 (64-bit), Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
User avatar
joeg
Posts: 2616
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Re: [EXT] Download Status Bar

Post by joeg »

HughHyatt wrote:
The_Rave wrote:Regarding current problems with nightly. This is caused by this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1220564

change code in line 3577 of bootstrap.js in this way:

Code: Select all

//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");
I have 8 files in my home directory named "bootstrap.js". Five are in subdirectories of ~/.mozilla/firefox/, but none has more than 1,473 lines. Furthermore, I can't find anything relevant on the referenced page; what am I missing?
The "referenced page" is Greek to me, too.

As for "... 8 files in my home directory named 'bootstrap.js'", the point is that you have to find the specific bootstrap.js file for the Download Status Bar extension. On my Win7x64 machine, the extension ID is {6c28e999-e900-4635-a39d-b1ec90ba0c0f}.

And, just for the record, The_Rave's instructions are a tad misleading. He wrote

Code: Select all

   //var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
    var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");
He should have written
//var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
//var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");

That is, you have to replace everything in red with everything in green, or - said in another way - you have to change everything to the right of the "=".
Last edited by joeg on January 26th, 2016, 3:50 pm, edited 1 time in total.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.
User avatar
joeg
Posts: 2616
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Re: [EXT] Download Status Bar

Post by joeg »

fauxreaper wrote:Where is located this "bootstrap.js"?
Please see my reply to HughHyatt.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.
jumba
Posts: 1
Joined: January 26th, 2016, 11:33 pm

Re: [EXT] Download Status Bar

Post by jumba »

omji wrote:It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks
Hello! This was also reported in Pale Moon forum. The reason why the add-on now fails with Pale Moon 26.0.0 is because the add-on checks the Downloads API compatibility using version number 26. Now that Pale Moon has reached the version 26, it sets the "ff26above" flag to true and tries to use the new incompatible API calls with PM.

Here is a small patch to fix it:

Code: Select all

diff --git a/bootstrap.js b/bootstrap.js
index 50072c0..87cb47e 100755
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -1388,6 +1388,12 @@ DownloadBarComponent.prototype = {
                                this.windowtype = "mail:3pane";
                                DownloadBar.windowtype = "mail:3pane";
                        break;
+                       case "Pale Moon":
+                               this.ff26above=false;
+                               DownloadBar.ff26above=false;
+                               this.windowtype = "navigator:browser";
+                               DownloadBar.windowtype = "navigator:browser";
+                       break;
                        case "Fennec": break;
                        default: //"Firefox", "SeaMonkey"
                }
User avatar
joeg
Posts: 2616
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Re: [EXT] Download Status Bar

Post by joeg »

jumba wrote: Here is a small patch to fix it:...
Thanks. I don't use PaleMoon, but at least I've learned you can't just go around sticking code from one program into another, even if they're "related".
Although every day is Judgment Day, I nonetheless feel like a room without a roof.
omji
Posts: 3
Joined: April 11th, 2014, 10:55 pm

Re: [EXT] Download Status Bar

Post by omji »

jumba wrote:
omji wrote:It stop working for new Palemoon 26 browser.

Is there a fix or update please.
Thanks
Hello! This was also reported in Pale Moon forum. The reason why the add-on now fails with Pale Moon 26.0.0 is because the add-on checks the Downloads API compatibility using version number 26. Now that Pale Moon has reached the version 26, it sets the "ff26above" flag to true and tries to use the new incompatible API calls with PM.

Here is a small patch to fix it:

Code: Select all

diff --git a/bootstrap.js b/bootstrap.js
index 50072c0..87cb47e 100755
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -1388,6 +1388,12 @@ DownloadBarComponent.prototype = {
                                this.windowtype = "mail:3pane";
                                DownloadBar.windowtype = "mail:3pane";
                        break;
+                       case "Pale Moon":
+                               this.ff26above=false;
+                               DownloadBar.ff26above=false;
+                               this.windowtype = "navigator:browser";
+                               DownloadBar.windowtype = "navigator:browser";
+                       break;
                        case "Fennec": break;
                        default: //"Firefox", "SeaMonkey"
                }
Thanks ! It works.

It would be good for users that someone makes forked extension Download status bar,
and post link in Palemoon extension page.
The_Rave
Posts: 95
Joined: January 25th, 2005, 8:36 am
Location: Germany

Re: [EXT] Download Status Bar

Post by The_Rave »

joeg wrote: He wrote

Code: Select all

   //var s = [toHexString(hash.charCodeAt(i)) for (i in hash)].join("");
    var s = Array.from(hash, (c, i) => toHexString(hash.charCodeAt(i))).join("");
No i wrote it as mentioned and i will not repeat the wrong interpretation. The old line is due the "//" a comment now and will be ignored by js interpreter. The 2nd line is the active code now.

Every Nightly users should have basic skills about JS, knowledge about firefox profile path and meaning of files and folders in profile directory or should left files untouched or use only official builds. Backups of profile dir are mandatory before any changes of course.
User avatar
joeg
Posts: 2616
Joined: October 10th, 2003, 12:37 pm
Location: How can you be in two places at once, when you're not anywhere at all?

Re: [EXT] Download Status Bar

Post by joeg »

The_Rave wrote:Every Nightly users should have basic skills about JS, knowledge about firefox profile path and meaning of files and folders in profile directory or should left files untouched or use only official builds. Backups of profile dir are mandatory before any changes of course.
I'm an English teacher by profession. I readily confess to not knowing much about computers.

Even I, however, was able to get your fix to work, and I appreciate your help in fixing the extension.

As for the computer skills a Nightly user should have, I'll leave that to someone else. All I can say is that I've learned a lot about Fx over the years by simply using the Nightly, reading the posts to the various forums, and trying to apply what I've read.

In general, the forum members are polite and helpful, and I'm happy there are no "minimum computer knowledge entry requirements".

I repeat, thank you for your help in fixing Download Status Bar.
Although every day is Judgment Day, I nonetheless feel like a room without a roof.
The_Rave
Posts: 95
Joined: January 25th, 2005, 8:36 am
Location: Germany

Re: [EXT] Download Status Bar

Post by The_Rave »

As mentioned before you was able to help yourself with some hints and experience and this is the minimum requirement in this case. All users of an official firefox build will have no problems at the moment. I'm think the developer of this addon will fix this, if its needed for the official firefox builds.
Post Reply