Search the Community
Showing results for tags 'userChrome.js'.
-
Mypal 68 in Windows XP – Custom Buttons and Extensions @feodor2 created a great new browser called Mypal 68, a browser for Windows XP based on Firefox 68. It is still in development. Here is the link: https://github.com/Feodor2/Mypal68. Mypal 68 is the first one which bases on Firefox Quantum targeting Windows XP. We already have a thread about Mypal 68 generally. It is here, started by @Jody Thornton: https://msfn.org/board/topic/183495-mypal-68/. Logically, we will stick with this browser in Windows XP for a long time. The goal of this thread is to make this browser as comfortable as possible and to enhance its functionality. Purpose and structure of this thread All Pale Moon, New Moon and abandoned Mypal browser editions support old legacy UXP-based extensions. In contrast to them, the new Mypal 68 is a browser which actually only supports webextensions, like Firefox editions 57+. Therefore, all our beloved legacy extensions can't be used anymore except those ported to webextensions by their developers. Especially all custom buttons extensions don't work anymore and there are no replacements among the webextensions. In the past I created some custom buttons by using JavaScript, but none of them can be loaded in Mypal 68. Starting from Firefox 57, we have to notice following rule: the higher version, the more restricted in customization of the browser's UI and its functions. And if you think, all of these new webextensions will work in Mypal 68, then you will be disappointed once again. And exactly that is the reason I created this thread. The purpose of it is on the one hand to collect and provide information about useful, fully working extensions and on the other hand to show alternatives for implementing custom buttons, all in Mypal 68. The idea is one useful, fully working custom button or extension, one post. Custom buttons in Mypal 68 The implementation of a custom button into Mypal 68 is much more complicated than it was in the case of UXP-based browsers. As already stated, all old custom button extensions don't work anymore. The same applies to created custom buttons targeting these CB extensions. There are no replacements among the webextensions. So what can we do? The answer is using scripts. In the profile folder of Mypal 68 a new subfolder "chrome" has to be created if not already existent. These scripts can be copied to this chrome folder and loaded at next browser start. They contain new functions or buttons to enhance functionality or usability of Mypal 68. Unfortunately, the compatibility of these userscripts *.uc.js depends on the targeted version of Firefox. Therefore, only a few of them will work natively in Mypal 68 unless you are able to modify them or write your own scripts. And there are some requirements to be fulfilled to get them working in Mypal 68. Reqiurements for custom buttons, other script-generated objects and CSS code implementations in Mypal 68 1. In the profile folder of Mypal 68 a new folder "chrome" and a subfolder "css" of folder chrome have to be created if not already existent. Now you should have the following structure in your profile folder: mypal_profile_folder\ mypal_profile_folder\chrome\ mypal_profile_folder\chrome\css\ 2. Five files have to be added to Mypal 68. Copy config.js to Mypal's installation folder, next to mypal.exe. Copy config-prefs.js to \defaults\pref inside Mypal installation folder, next to channel-prefs.js. Finally, save userChrome.js, userChrome.css and userChrome.xml into Mypal chrome folder. 3. The variable general.config.sandbox_enabled has to be set to false in about:config which should be done automatically by file config-prefs.js after restarting the browser. Two further variables will be set by this file: general.config.filename to string config.js and general.config.obscure_value to value 0. Another variable toolkit.legacyUserProfileCustomizations.stylesheets has to be set to true which should be done automatically by config.js. 4. Now, new custom button UC.JS scripts can be added to the profile's chrome folder. They all end with the extension .uc.js, for example RestartFirefoxButton_Movable.uc.js. In some cases, the userChrome.css file has to be edited to load additional CSS files needed by the already added UC.JS script files. In any case, all CSS stylesheets files have to be copied to the css subfolder from where they have to be always imported by the userChrome.css file via the import command. This is the download link of the package MYPAL_68_CB_requirements.7z I created which contains all required files for the custom buttons and CSS implementations posted by me: https://www.mediafire.com/file/m84enyyuz7up01y/Mypal_68_CB_requirements.7z/file Extensions in Mypal 68 As already mentioned, Mypal 68 supports only web extensions. We can try to use all web extensions which are provided on official Firefox Extensions homepage: https://addons.mozilla.org/en-US/firefox/extensions/. But do not think each of them will work in Mypal 68! First we have to take account of the minimum version number less or equal to 68, of course, but that's not all. A lot of supposedly compatible extensions don't work in Mypal 68. For example, many "Clear Cache" extensions don't do their job properly. You think the cache has been deleted by clicking, but that's a fallacy. Either you have to install some so-called "native applications" which have to be installed in your system to grant access to restricted functions in Mypal 68, unfortunately not being Windows XP compatible like, for example, node.js, a JavaScript runtime built, or they simply don't work as expected. The same applies to the so-called browser restart extensions. They are not able to perform a complete, real restart of Mypal 68. I found a lot of them, and they are all crap. Anyway, beware of these useless, crappy extensions! Update notification: 10/06/2022: The file MYPAL_68_CB_requirements.7z has been updated and corrected. Download link above. 11/06/2022: New beta version released: Mypal 68.12.4b. Download link: https://github.com/Feodor2/Mypal68/releases/download/68.12.4b/mypal-68.12.4.en-US.win32.zip 10/08/2022: New beta version released: Mypal 68.12.5b. Download link: https://github.com/Feodor2/Mypal68/releases/download/68.12.5b/mypal-68.12.5.en-US.win32.zip 14/05/2023: New beta version released: Mypal 68.13.0b. Download link: https://mega.nz/file/QaY1zLLY#PhGLpVBfu51To4sjqSgfjaLX6nyebwye82FliTf41yA 28/06/2023: New beta version released: Mypal 68.13.1b. Download link: https://github.com/Feodor2/Mypal68/releases/download/68.13.1b/mypal-68.13.1.en-US.win32.zip 15/07/2023: New beta version released: Mypal 68.13.2b. Download link: https://github.com/Feodor2/Mypal68/releases/download/68.13.2b/mypal-68.13.2.en-US.win32.zip 07/10/2023: New beta version released: Mypal 68.13.3b. Download link: https://github.com/Feodor2/Mypal68/releases/download/68.13.3b/mypal-68.13.3.en-US.win32.zip 17/10/2023: New beta version released: Mypal 68.13.4b. Download link: https://github.com/Feodor2/Mypal68/releases/download/68.13.4b/mypal-68.13.4.en-US.win32.zip 30/10/2023: New beta version released: Mypal 68.13.5b. Download link: https://github.com/Feodor2/Mypal68/releases/download/68.13.5b/mypal-68.13.5.en-US.win32.zip 11/11/2023: New beta version released: Mypal 68.13.6b. Download link: https://github.com/Feodor2/Mypal68/releases/tag/68.13.6b 18/11/2023: New beta version released: Mypal 68.13.7b. Download link: https://github.com/Feodor2/Mypal68/releases/tag/68.13.7b 07/01/2024: New beta SSE version released: Mypal 68.13.8b. Download link: https://github.com/Feodor2/Mypal68/releases/tag/68.13.8b 17/02/2024: New beta version released: Mypal 68.13.9b. Download link: https://codeberg.org/Theodor2/Mypal68/releases/tag/68.13.9b 24/04/2024: New beta version released: Mypal 68.14.0b. Download link: https://codeberg.org/Theodor2/Mypal68/releases/tag/68.14.0b 04/05/2024: New beta version released: Mypal 68.14.1b. Download link: https://codeberg.org/Theodor2/Mypal68/releases/tag/68.14.1b 01/06/2024: New beta version released: Mypal 68.14.2b. Download link: https://codeberg.org/Theodor2/Mypal68/releases/tag/68.14.2b 21/07/2024: New beta version + beta SSE version released: Mypal 68.14.3b. Download link: https://codeberg.org/Theodor2/Mypal68/releases/tag/68.14.3b 03/08/2024: New beta version + beta SSE version released: Mypal 68.14.5b. Download link: https://codeberg.org/Theodor2/Mypal68/releases/tag/68.14.4b 25/11/2024: New beta version version released: Mypal 68.14.5b. Download link: https://github.com/Feodor2/Mypal68/releases/tag/68.14.5b In this thread, please post only useful custom buttons or extensions, tested and fully working in the most recent version of Mypal 68! If not, a note is necessary which version of Mypal is targeted. "Useful" means this custom button or extension should have a meaningful and real benefit for its user, contrary to just only working or looking nice. The post should include a headline with the name of the custom button or extension in bold and font size 18, a short description (one sentence including purpose and version number), some important remarks regarding to installation or usage, if necessary, and a download link, of course. All posted custom buttons, script-generated objects, CSS code implementations, extensions or special articles that meet these conditions will be listed alphabetically in the second or third post, with a link to the member's original comment for better overview. Due to the modular character of this thread, each posted custom button or extension can be upvoted or liked separately with credits to their poster. Any opinions, experiences, discussions, or questions about these custom buttons or extensions are explicitly welcome. But one thing must be totally clear, everything should relate to this topic. That means please stay on-topic! If you enjoyed this thread, or maybe you found it interesting and helpful, we would be pleased about any reaction by liking or upvoting and of course commenting. Kind regards, AstroSkipper
- 329 replies
-
2
-
- userChrome.css
- Custom Buttons
-
(and 3 more)
Tagged with: