Jump to content

Extensions and custom buttons for UXP browsers - Corrections, modifications, adjustments, and special recommendations


Recommended Posts

Toggle GIF Animation - A custom button for controlling the GIF animation on a specific website

Toggle GIF Animation is a custom button for controlling the GIF animation on a specific website. A simple left-click onto the toolbar button stops immediately the animation of all loaded GIF images without reloading the page, and the CPU load is back to normal subsequently. A further left-click will start the animation again. Absolutely great especially for computers which are under-performing, equipped with an old, weak CPU! The GIF animation is generally enabled and will only be toggled on the current website by this button. Tested version: 0.3.0, created by Infocatcher. I uploaded the Toggle GIF Animation custom button as an XML file for an offline installation.
Here is the download link: https://www.mediafire.com/file/87ua0k6ageqgslz/Toggle_GIF_Animation-0.3.0.xml/file link.gif
For the installation of this button, the extension Custom Buttons is required which you can get from this posthttps://msfn.org/board/topic/183923-extensions-and-custom-buttons-for-uxp-browsers-corrections-modifications-adjustments-and-special-recommendations/?do=findComment&comment=1226328

Cheers, AstroSkipper matrix.gif

 

Edited by AstroSkipper
Update of content
Link to comment
Share on other sites

  • 2 weeks later...

Toggle CSP - A custom button for toggling the Boolean variable security.csp.enable from true to false and vice versa in about:config created by gif_23.gifAstroSkipper

Toggle CSP is a custom button for toggling the Boolean variable security.csp.enable from true to false and vice versa in about:config. The status of this variable is shown by the button itself in the form of an image that changes its colour, i.e. its image accordingly. Actually, I created this button for the specific boolean variable security.csp.enable, but the code of this button is universal and can be easily modified to toggle other Boolean variables, too if you change its code slightly. The user has only to change the name of this button, the string of the Boolean variable and optional, but useful, its images. Very simple changes. It works perfectly in all UXP browsers such as New Moon 28, Serpent 52 and even in Serpent 55. Here are some screenshots:

New-Moon-Toggle-CSP.png

The variable security.csp.enable is set to true by Toggle CSP:

New-Moon-Toggle-CSP-True.png

The variable security.csp.enable is set to false by Toggle CSP:

New-Moon-Toggle-CSP-False.png

The functionality of Toggle CSP can be checked excellently and observed live, so to speak, by opening the variable security.csp.enable in about:config and clicking on the custom button.

And here is the JavaScript code of my button:

/*Initialization Code*/

    var prefName = "security.csp.enable";

    var enabledImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAO1JREFUOE9jZPgPhFQFIAOpCalqGNi31HQdfQz8R6Gb4drVwLGNwGlQGWQxWAC5Iqnjg7LnwtSD/G0GFYSFpzSQzwTEfWjiIANhPgCx7aGG6COpg6bD/wxuWLzagWYgcgSCDDSG6pmHzcBuHGEH83IEmjxI3A4qpoDNQJBrcMFcpDCDqYFZFACV248chiBJayzGgcLrA5I4SF0tTCOQNsCiByxkBLXlJVTBOSCdA8RiaGEIMnADkoGmuAwEGSqO5C2QxlYgPg8VY4bSoCQCgqFIasPQDMViB2ZI/iFKFUQfCUqJy/WjBhIXTnhUAQCxF7FzNVSQlgAAAABJRU5ErkJggg==";

    var disabledImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAOlJREFUOE9j/M/AAERUBCADqYlBzhvpBv6jMAjgYagGiW04ToMajCwGYoPC3BVJHR+UPRemHqTADCoIiyBpIJ8JiPvQxEEGwnwAYttDDdFHUgd2IUjSDYtXO9AMRE4RID3GUD3zsBnYjSPsYF6OQJMHidtBxRSwGQhyDa40mYsUZjA1MIsCoHL7kcMQJGmNxUBQeH1AEgepq4VpBNIGWPSAw9AIastLqIJzQDoHiMXQwhBk4AYkA01xGQgyVBzJWyCNrUB8HirGDKVBSQSkNhRJbRiaoUTl5T94whc93IkykJQCZNRAygtbAOb2sXODGkDmAAAAAElFTkSuQmCC";


    this.onclick = function (aE) {
       if (aE.button === 0) {
          Services.prefs.setBoolPref(prefName, !Services.prefs.getBoolPref(prefName));
          setSelfImage();
       }
    };

    function setSelfImage() {
       if (Services.prefs.getBoolPref(prefName))
          self.image = enabledImage;
       else
          self.image = disabledImage;
    }

    setSelfImage();

For using my custom button with other Boolean variables, you have to change the strings of var prefName, var enabledImage and var disabledImage. Furthermore, the name and image of your new custom button in its editor above the /*Initialization Code*/ should be changed, too. Here is a further screenshot of the button's editor. I have outlined all the areas to be changed with red rectangles:

Toggle-CSP.png

I uploaded the Toggle CSP custom button as an XML file for an offline installation.
Here is the download linkhttps://www.mediafire.com/file/fjgxbc09q4r31s4/Toggle_CSP.xml/file link.gif
For the installation of this button, the extension Custom Buttons is required which you can get from this post:


Cheers, AstroSkipper matrix.gif

Edited by AstroSkipper
Update of content
Link to comment
Share on other sites

Toggle media.autoplay.enabled - A custom button for toggling the Boolean variable media.autoplay.enabled created by gif_23.gifAstroSkipper

The custom button Toggle media.autoplay.enabled  is the same button as Toggle CSP except the changes I already described in my previous post. It's an example how easy another Boolean variable can be toggled by this button. And, I created this version at the very special request of @Mathwiz. I also changed the button images, of course. A green image always means the value true, a red image the value false. Of course, this can be changed and adapted to the user's needs at any time.

Here is the download link
https://www.mediafire.com/file/lvsq0ss3xuinxwe/Toggle_media.autoplay.enabled.xml/file link.gif

Greetings from Germany, AstroSkipper matrix.gif

Edited by AstroSkipper
Update of content
Link to comment
Share on other sites

I am glad to come upon Custom Buttons addon here. It is very convenient for toggle job. But it lacks document, and the forum it used to be has been closed. So I installed one xml file here and modified it, only one line:

var prefName = "browser.tabs.remote.force-enable";

This pref works after restart the browser. How could I add a restart command?

Link to comment
Share on other sites

8 hours ago, luweitest said:

I am glad to come upon Custom Buttons addon here. It is very convenient for toggle job. But it lacks document, and the forum it used to be has been closed. So I installed one xml file here and modified it, only one line:

var prefName = "browser.tabs.remote.force-enable";

This pref works after restart the browser. How could I add a restart command?

The prefs I had to toggle in the past didn't need any restart of the browser. But, you can add a restart button and place it next to your toggle button. I have a restart button which comes with the extension Toolbar Buttons.

Link to comment
Share on other sites

On 11/22/2022 at 3:32 AM, luweitest said:

I am glad to come upon Custom Buttons addon here. It is very convenient for toggle job. But it lacks document, and the forum it used to be has been closed. So I installed one xml file here and modified it, only one line:

var prefName = "browser.tabs.remote.force-enable";

This pref works after restart the browser. How could I add a restart command?

I checked my browsers referring to the pref browser.tabs.remote.force-enable. In New Moon 28, it is locked. Therefore, it can't be toggled there. In Serpent 52, Serpent 55 and Firefox 52.9.0 ESR, this pref doesn't exist at all. So, I have to ask you in which browser you actually want to toggle this pref. :dubbio: Or, did you create this pref yourself in Serpent or Firefox? Anyway!  I do have a solution to implement minimal code for an immediate, automatical restart of New Moon or Pale Moon and a bit more code in the case of Firefox or Serpent (Basilisk) after toggling a Boolean pref. :yes: But first, I need an answer and some more detailed information about your configuration (browser, OS). :) Also I should mention that I don't use multi-process mode, and my system is Windows XP Professionaö SP3 + POSReady 32Bit with a single-core CPU. At the moment, I can test it only on this machine. smilie_denk_24.gif

Kind regards, AstroSkipper matrix.gif

Edited by AstroSkipper
Update of content
Link to comment
Share on other sites

The pref "browser.tabs.remote.force-enable" is for toggling the multi-process mode in Serpent 52. My system is dual core CPU, 4GB RAM,  Windows XP SP3 32bit with all POSReady patches. I'd like to use the abundant RAM, so I normally switch multi-process on; but some add-ons do not work under multi-process mode, or I need debug something, I will turn it off. Adding a restart code would save me some clicks and seconds!

Link to comment
Share on other sites

On 11/22/2022 at 3:32 AM, luweitest said:

I am glad to come upon Custom Buttons addon here. It is very convenient for toggle job. But it lacks document, and the forum it used to be has been closed. So I installed one xml file here and modified it, only one line:

var prefName = "browser.tabs.remote.force-enable";

This pref works after restart the browser. How could I add a restart command?

16 hours ago, luweitest said:

The pref "browser.tabs.remote.force-enable" is for toggling the multi-process mode in Serpent 52. My system is dual core CPU, 4GB RAM,  Windows XP SP3 32bit with all POSReady patches. I'd like to use the abundant RAM, so I normally switch multi-process on; but some add-ons do not work under multi-process mode, or I need debug something, I will turn it off. Adding a restart code would save me some clicks and seconds!

I read your first post again and noticed some misunderstandings. The extension Custom Buttons, which I uploaded here, is required for installing custom buttons, but itself cannot toogle anything. For toggling a Boolean variable, you need to install one of my custom buttons Toggle CSP or Toggle media.autoplay.enabled and have to modify its code which you already seem to have done such as described in this post: 

And, it definitely works. I know that because I've created and tested these custom buttons. Just to clarify, you won't find any documents about these custom buttons even if the old custom buttons forum was still alive. These buttons never existed before. I created them, saved them as an XML file and uploaded them for my readers. And now, you would appreciate additional code for an immediate, automatical restart of Serpent 52 after toggling the variable browser.tabs.remote.force-enable using my custom button. You need this restart to apply the toggled setting in terms of the multiprocess mode.
And, you like the extension Custom Buttonsmy self-created custom buttons for toggling a Boolean variable and maybe, this thread, too. sclindoeil.gif Am I right so far? :dubbio:

Cheers, AstroSkipper matrix.gif

Edited by AstroSkipper
Link to comment
Share on other sites

Yes, you are all right. I followed your guidance in this thread, installed one of your toggling button's xml file as an template and made the modification. I know a little javascript, but am not a professional programmer, so when I saw the blank code window of Custom Buttons I am numb. That's why I thought some help document should be provided with the add-on, or your template should be integrated in as template when creating new button. Yet now I think maybe the document I am expecting is not about "Custom Buttons", but the knowledge of the browser's javascript programming interface. I am not into this! :crazy: Anyway, what I need is a little toggle function, and it would be better if you could add a restart command.:)

Link to comment
Share on other sites

On 11/25/2022 at 2:25 AM, luweitest said:

Yes, you are all right. I followed your guidance in this thread, installed one of your toggling button's xml file as an template and made the modification. I know a little javascript, but am not a professional programmer, so when I saw the blank code window of Custom Buttons I am numb. That's why I thought some help document should be provided with the add-on, or your template should be integrated in as template when creating new button. Yet now I think maybe the document I am expecting is not about "Custom Buttons", but the knowledge of the browser's javascript programming interface. I am not into this! :crazy: Anyway, what I need is a little toggle function, and it would be better if you could add a restart command.:)

Ok! Very good!

My statement was:

On 11/25/2022 at 12:59 AM, AstroSkipper said:

And, you like the extension Custom Buttonsmy self-created custom buttons for toggling a Boolean variable and maybe, this thread, too. sclindoeil.gif Am I right so far? :dubbio:

Your answer is:

On 11/25/2022 at 2:25 AM, luweitest said:

Yes, you are all right.

What do you think? What can you do here to support an author of a thread with technical contents, to show him your genuine interest, to appreciate his work he has already done, and to ensure that he is motivated to continue all this and make him generating new, requested code for someone with whom he has never had contact, especially if he shares his work for free? Truth be told, this kind of support I mean has unfortunately diminished a lot or has always been sparse for real work with technical content and is, however, made in droves for every inanity or, rather, for every crap, especially non-technical one, in this forum nowadays.  :whistle: And what I mean, of course, should only be done if the technical contents of this author are also worth it. :yes: Any ideas? :dubbio:

Edited by AstroSkipper
Update of content
Link to comment
Share on other sites

On 11/25/2022 at 10:37 AM, AstroSkipper said:

Truth be told, this kind of support I mean has unfortunately diminished a lot or has always been sparse for real work with technical content and is, however, made in droves for every inanity or, rather, for every crap, especially non-technical one, in this forum nowadays.  :whistle: And what I mean, of course, should only be done if the technical contents of this author are also worth it. :yes: Any ideas? :dubbio:

Sorry my English is not good enough to be sure about the meaning of this paragraph. Anyway this auto-restart feature is trivial, so we could just omit it if hard work is required to implement.  I appreciate Custom Buttons addon and your work on it.

Link to comment
Share on other sites

 

On 11/27/2022 at 4:38 AM, luweitest said:

I appreciate Custom Buttons addon and your work on it.

Thanks for your appreciation! :) But unfortunately, others and me can't see it in my posts above ... :whistle:

On 11/27/2022 at 4:38 AM, luweitest said:

Sorry my English is not good enough to be sure about the meaning of this paragraph. Anyway this auto-restart feature is trivial, so we could just omit it if hard work is required to implement.

If you don't understand what I wrote about the valuation of technical contents (which is a kind of support of authors), why don't you use an online translation service? For example, DeepL? The English I wrote was crystal clear. Anyway! The fact that I even have to mention this grievance in terms of valuation should actually not really be necessary ... :no:

By the way, a restart feature is trivial and easy to implement into my toggle button. smilie_denk_24.gif I already did it, and the modified toggle button works perfectly. :cheerleader: 

Edited by AstroSkipper
Update of content
Link to comment
Share on other sites

  • 2 months later...

My German language pack for New Moon 28 - Fixed - Part 1

For New Moon 28, I use the German language pack from here: https://github.com/JustOff/pale-moon-localization/releases/download/28.10.0_RC1/de.xpi which I modified and corrected myself a long time ago in terms of the dev tools. Here is a screenshot of the Web Developer menu (Web-Entwickler) of New Moon 28.10.6a1 (32-bit) (2023-01-19) with my fixed German language pack already installed:

Web-Entwickler-Men.png

My modified language pack is fully working, and all has been translated. If you are German like me, or German is your native language, you are lucky and can use my already modified language pack file de-mod-content-dev.xpi. Here is the link: https://www.mediafire.com/file/99riihhfrxrju2k/de-mod-content-dev.xpi/file 

Cheers, AstroSkipper matrix.gif

Edited by AstroSkipper
Update of content
Link to comment
Share on other sites

  • 2 weeks later...
On 11/24/2022 at 4:57 AM, luweitest said:

The pref "browser.tabs.remote.force-enable" is for toggling the multi-process mode in Serpent 52. My system is dual core CPU, 4GB RAM,  Windows XP SP3 32bit with all POSReady patches. I'd like to use the abundant RAM, so I normally switch multi-process on; but some add-ons do not work under multi-process mode, or I need debug something, I will turn it off. Adding a restart code would save me some clicks and seconds!

Hi the. I do not use this (I prefer to have a no e10 profile for such things. But you may try https://custombuttons.sourceforge.net/forum/viewtopic.php?f=4&t=44002&sid=7ecc5da3152e2e2c7bb62e23921106c4

It installs well on custom buttons, but it needs testing. Cheers!

Link to comment
Share on other sites

On 9/19/2022 at 1:04 AM, AstroSkipper said:

RealityRipple Software - Pale Moon Extensions

All Pale Moon extensions, created by RealityRipple Software, can be installed in New Moon 28, although their website claims that the extensions are only compatible with Pale Moon 31.*. You just have to modify an entry in the file install.rdf inside each of their xpi files.
Here is an example of their original code:

<em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
    <em:minVersion>31.0</em:minVersion>
    <em:maxVersion>31.*</em:maxVersion>

And here is the modification:

<em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
    <em:minVersion>28.10.0</em:minVersion>
    <em:maxVersion>31.*</em:maxVersion>

BTW, these extensions can also be made compatible with Serpent by using the extension Serpent Tester Tool, for example. Here is a link: https://msfn.org/board/topic/183923-extensions-and-custom-buttons-for-uxp-browsers-corrections-modifications-adjustments-and-special-recommendations/?do=findComment&comment=1226306. My recommended extensions from RealityRipple are Grabit, ExtExp, BIZARRE, uTube, MTube, GeoFlag, qrThis, and Open Registry Key. All of them can be installed in New Moon 28 with the modification above without any problems, and they are working fine as expected. ssupercool2.gif
Here is the link to the site with all available Pale Moon extensions by RealityRipple once again: https://realityripple.com/Software/XUL/ link.gif

Cheers, AstroSkipper matrix.gif

Update notification! update.gif

All Pale Moon extensions, created by RealityRipple Software have been updated and are now available in version 32.0 or 32.1. Here is the link once again: https://realityripple.com/Software/XUL/ link.gif

Cheers, AstroSkipper ecrire-ordi.gif

Edited by AstroSkipper
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...