Skip to content

Commit

Permalink
add signed addons for libgen & searchfox engines.
Browse files Browse the repository at this point in the history
  • Loading branch information
aminomancer committed Jan 5, 2022
1 parent d87788d commit a0dafdd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ The `userContent.css` file handles stuff like the devtools, some UI pages and co

So `userContent.css` isn't strictly required for the rest of the theme to work, but without it you'll find some elements look inconsistent with the theme, and it also takes care of some issues that make the fabled global dark mode harder to realize. If you already have a `userContent` file, I'd suggest changing its name to `custom-content.css` and placing it in the [resources/in-content](/resources/in-content) folder. The theme doesn't include this file, since it's purely intended for end-user modifications, but it automatically loads the file if it exists. It loads last and therefore wins any conflicts of equal priority & specificity. You can also delete any of the [content stylesheets](/resources/in-content) you don't want to use, or remove their `@import` rules from userContent.css.

I've bundled some of my addons in this repo as well. They are in the [extensions](extensions) folder. My custom new tab page is signed (it's a modded fork of [Tab Notes](https://addons.mozilla.org/firefox/addon/tab-notes) by wildsky) but you will still need to "install addon from file" in `about:addons` since you're not downloading the extension package from a Mozilla domain. There are several search engine addons in the [extensions/search-extensions](extensions/search-extensions) folder. These simply add one-off search engines for websites like Google Images or YouTube, and some include search suggestions/autocomplete. Firefox already comes with Amazon and Wikipedia addons, but they have ugly icons and unnecessarily long labels. Mine are simply called Amazon and Wikipedia, and have icons that match the theme. Some of Firefox's built-in search engines also lack search suggestions even though the websites can provide suggestions. Some are signed and hosted on AMO, but others remain unsigned due to [an AMO bug](https://github.com/mozilla/addons-linter/issues/3911). You can download the following from AMO: [YouTube](https://addons.mozilla.org/firefox/addon/youtube-opensearch-engine); [Google Translate](https://addons.mozilla.org/firefox/addon/google-translate-engine); [Firefox Add-ons](https://addons.mozilla.org/firefox/addon/amo-opensearch-engine); [Bugzilla](https://addons.mozilla.org/firefox/addon/bugzilla-engine); [MDN Web Docs](https://addons.mozilla.org/firefox/addon/mdn-engine).
I've bundled some of my addons in this repo as well. They are in the [extensions](extensions) folder. My custom new tab page is signed (it's a modded fork of [Tab Notes](https://addons.mozilla.org/firefox/addon/tab-notes) by wildsky) but you will still need to "install addon from file" in `about:addons` since you're not downloading the extension package from a Mozilla domain. There are several search engine addons in the [extensions/search-extensions](extensions/search-extensions) folder. These simply add one-off search engines for websites like Google Images or YouTube, and some include search suggestions/autocomplete. Firefox already comes with Amazon and Wikipedia addons, but they have ugly icons and unnecessarily long labels. Mine are simply called Amazon and Wikipedia, and have icons that match the theme. Some of Firefox's built-in search engines also lack search suggestions even though the websites can provide suggestions. Some are signed and hosted on AMO, but others remain unsigned due to [an AMO bug](https://github.com/mozilla/addons-linter/issues/3911). You can download the following search engines from AMO: [YouTube](https://addons.mozilla.org/firefox/addon/youtube-opensearch-engine); [Google Translate](https://addons.mozilla.org/firefox/addon/google-translate-engine); [Firefox Add-ons](https://addons.mozilla.org/firefox/addon/amo-opensearch-engine); [Searchfox](https://addons.mozilla.org/firefox/addon/searchfox-engine); [Bugzilla](https://addons.mozilla.org/firefox/addon/bugzilla-engine); [MDN Web Docs](https://addons.mozilla.org/firefox/addon/mdn-engine); [Library Genesis](https://addons.mozilla.org/firefox/addon/libgen-engine).

</details>

Expand Down Expand Up @@ -270,7 +270,7 @@ Normally in Firefox, the default search icon in the urlbar is a magnifying glass

If you want to use a UI language pack other than English for Firefox Nightly, you need to follow some additional steps. Mozilla only releases language packs for Release and Beta builds, but these can still be made compatible with Nightly builds. Find the latest Firefox [release directory](https://archive.mozilla.org/pub/firefox/releases/), click it, then click the subdirectory for your OS, e.g. win64. From there, scroll down to the folder labeled xpi. In here, locate the file with your language code, e.g. `zh-TW.xpi` for traditional Chinese.

If you simply click the language pack link, Firefox will try to install it directly and tell you it's incompatible. Instead you need to download it and unpack it with 7-zip. You can try downloading it with another browser, but I prefer to use [Multithreaded Download Manager](https://addons.mozilla.org/firefox/addon/multithreaded-download-manager/?utm_source=github.com/aminomancer/uc.css.js&utm_medium=referral), which lets you download the file by opening a context menu on the link.
If you simply click the language pack link, Firefox will try to install it directly and tell you it's incompatible. Instead you need to download it and unpack it with 7-zip. You can try downloading it with another browser, but I prefer to use [Multithreaded Download Manager](https://addons.mozilla.org/firefox/addon/multithreaded-download-manager), which lets you download the file by opening a context menu on the link.

Once you've downloaded the xpi file, unpack it with 7-zip. Delete the folder labeled `META-INF`, then open the `manifest.json` file in a text editor. Search for the property labeled `strict_max_version` and delete it. Make sure you delete the trailing comma on the `strict_min_version` line above it. In the `id` property above it, replace `@firefox.mozilla.org` with `@your-name`. Save the file, then select all the files in the unpacked folder, right click, and hit "Add to archive..." to bundle it all up in a zip file. You can zip it any way you want, as long as you zip the folder contents, not the folder. That is, `manifest.json` should be in the archive root.

Expand Down Expand Up @@ -1082,7 +1082,7 @@ Adds new menus to the context menu that appears when you right-click a tab (in t

Also optionally adds a context menu to the history panel's subview pages for "Recently closed tabs" and "Recently closed windows" with various functions for interacting with the closed tabs and their session history. You can right-click a closed tab item to open the context menu, then click "Remove from List" to get rid of it. You can click "Remove from History" to not only remove the closed tab item, but also forget all of the tab's history — that is, every page it navigated to. The same can be done with recently closed windows. From this menu you can also restore a tab in a new window or private window, bookmark a closed tab/window, and more.

With another option, the script will add container colors to recently closed tab items. As with container tabs in general, this is meant to work in tandem with [Firefox Multi-Account Containers](https://addons.mozilla.org/firefox/addon/multi-account-containers/?utm_source=github.com/aminomancer/uc.css.js&utm_medium=referral) but does not require the extension, since a slimmer version of it is built into Firefox. If you open a tab with the "Personal" container and then close it and open the recently closed tabs menu, the tab you closed will show up with a little blue stripe on its edge. This feature (and several others) can be configured from within the script file.
With another option, the script will add container colors to recently closed tab items. As with container tabs in general, this is meant to work in tandem with [Firefox Multi-Account Containers](https://addons.mozilla.org/firefox/addon/multi-account-containers) but does not require the extension, since a slimmer version of it is built into Firefox. If you open a tab with the "Personal" container and then close it and open the recently closed tabs menu, the tab you closed will show up with a little blue stripe on its edge. This feature (and several others) can be configured from within the script file.

</details>

Expand Down
File renamed without changes.
Binary file not shown.
Binary file not shown.

0 comments on commit a0dafdd

Please sign in to comment.