AstroSkipper Posted November 1, 2022 Author Posted November 1, 2022 (edited) 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 For the installation of this button, the extension Custom Buttons is required which you can get from this post: https://msfn.org/board/topic/183923-extensions-and-custom-buttons-for-uxp-browsers-corrections-modifications-adjustments-and-special-recommendations/?do=findComment&comment=1226328 Cheers, AstroSkipper Edited November 1, 2022 by AstroSkipper Update of content 1
AstroSkipper Posted November 14, 2022 Author Posted November 14, 2022 (edited) 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 AstroSkipper 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: The variable security.csp.enable is set to true by Toggle CSP: The variable security.csp.enable is set to false by Toggle CSP: 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: I uploaded the Toggle CSP custom button as an XML file for an offline installation. Here is the download link: https://www.mediafire.com/file/fjgxbc09q4r31s4/Toggle_CSP.xml/file For the installation of this button, the extension Custom Buttons is required which you can get from this post: Cheers, AstroSkipper Edited February 21, 2023 by AstroSkipper Update of content 1
AstroSkipper Posted November 14, 2022 Author Posted November 14, 2022 (edited) Toggle media.autoplay.enabled - A custom button for toggling the Boolean variable media.autoplay.enabled created by AstroSkipper 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 Greetings from Germany, AstroSkipper Edited November 17, 2022 by AstroSkipper Update of content 3
luweitest Posted November 22, 2022 Posted November 22, 2022 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?
AstroSkipper Posted November 22, 2022 Author Posted November 22, 2022 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. 2
AstroSkipper Posted November 23, 2022 Author Posted November 23, 2022 (edited) 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. 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. 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. Kind regards, AstroSkipper Edited November 23, 2022 by AstroSkipper Update of content 2
luweitest Posted November 24, 2022 Posted November 24, 2022 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!
AstroSkipper Posted November 24, 2022 Author Posted November 24, 2022 (edited) 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 Buttons, my self-created custom buttons for toggling a Boolean variable and maybe, this thread, too. Am I right so far? Cheers, AstroSkipper Edited November 25, 2022 by AstroSkipper 2
luweitest Posted November 25, 2022 Posted November 25, 2022 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! Anyway, what I need is a little toggle function, and it would be better if you could add a restart command.
AstroSkipper Posted November 25, 2022 Author Posted November 25, 2022 (edited) 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! 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 Buttons, my self-created custom buttons for toggling a Boolean variable and maybe, this thread, too. Am I right so far? 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. And what I mean, of course, should only be done if the technical contents of this author are also worth it. Any ideas? Edited November 26, 2022 by AstroSkipper Update of content 1
luweitest Posted November 27, 2022 Posted November 27, 2022 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. And what I mean, of course, should only be done if the technical contents of this author are also worth it. Any ideas? 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.
AstroSkipper Posted November 27, 2022 Author Posted November 27, 2022 (edited) 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 ... 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 ... By the way, a restart feature is trivial and easy to implement into my toggle button. I already did it, and the modified toggle button works perfectly. Edited December 1, 2022 by AstroSkipper Update of content 3
AstroSkipper Posted February 25, 2023 Author Posted February 25, 2023 (edited) 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: 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 Edited October 28, 2023 by AstroSkipper Update of content 3
dmiranda Posted March 8, 2023 Posted March 8, 2023 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! 1
AstroSkipper Posted March 9, 2023 Author Posted March 9, 2023 (edited) 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. Here is the link to the site with all available Pale Moon extensions by RealityRipple once again: https://realityripple.com/Software/XUL/ Cheers, AstroSkipper Update notification! 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/ Cheers, AstroSkipper Edited March 9, 2023 by AstroSkipper 2
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now