I wrote a simple script to add links to that page in three places: (i) the PaleMoon forum, (ii) the PaleMoon website, (iii) the Add-Ons menu. I figured some of you might also be interested in this very minor mod, so I'm sharing it here.
The text of the link is long to do justice to the name of the repo by Legacy Collector, but customizeable.
Enjoy!
WHAT THIS DOES
1. Adds Link on the Forum:
2. Adds Link in the Menu of the Main PaleMoon page:
3. Adds Link on the Add-Ons page:
DISCLAIMER
This is a basic script that will break when some of the underlying web pages change.
TESTED ENVIRONMENT
- PaleMoon 28
- requires Greasemonkey for Pale Moon (using 3.31.4)
HOW TO INSTALL
0. Make sure you've installed Greasemonkey for Pale Moon (using 3.31.4)
How? On the page linked above, search for greasemonkey-3.31.4-pm_forkBranch.xpi
Click and allow PaleMoon to install.
GreaseMonkey allows user scripts to modify web pages on the fly (among other features).
1. Copy the Script to your Clipboard
Click the "Select All' link, then hit Ctrl + C
Code: Select all
// ==UserScript==
// @name PaleMoon Add-On Repo
// @namespace palemoon_addons
// @description Adds links to PaleMoon Forum Pages
// @include http*://www.palemoon.org/*
// @include http*://forum.palemoon.org/*
// @include http*://addons.palemoon.org/extensions/*
// @version 1
// @grant none
// ==/UserScript==
(function() {
// config
var link_text = 'Legacy Firefox Add-Ons Repo'
// end config
var this_url = content.document.location
// two kinds of pages: forum page, and addons page on main PM site
var addons_page_pattern = new RegExp('addons\.palemoon\.org/extensions')
var main_page_pattern = new RegExp('www\.palemoon\.org')
var is_addons_page = addons_page_pattern.test(this_url)
var is_main_page = main_page_pattern.test(this_url)
var repo_link = '<a href="http://legacycollector.org/firefox-addons/index.html" target="_blank">' +
link_text +
'</a>'
var bold_repo_link = '<b>' + repo_link + '</b>'
var standard_replace_pattern = '$1 ' + bold_repo_link
if (is_addons_page) {
parse_pattern = new RegExp('(<h1>Extensions</h1>)')
replace_pattern = standard_replace_pattern
}
else if (is_main_page) {
parse_pattern = new RegExp('(<li class="li_nc"><a href="https://addons.palemoon.org/extensions/")')
replace_pattern = '<li class="li_nc">' +
repo_link +
'</li> ' +
'$1'
}
else {
// this page is a Forum page
parse_pattern = new RegExp('(<span itemprop="title">Forum index</span></a></span>)')
replace_pattern = standard_replace_pattern
}
document.body.innerHTML= document.body.innerHTML.replace(
parse_pattern,
replace_pattern
)
})()
3. At the Bottom Left of the next window, select "Use Script from Clipboard"
4. Refresh the pages on which you want to try the script (F5)
5 (Optional). If you want to customize the TEXT of the link:
On a page where the script is active, click the GreaseMonkey pull-down. At the bottom, right-click 'PaleMoon Addo-On Repo'. This opens a text window with the script. Look for the // config section. Modify this line:
var link_text = 'Legacy Firefox Add-Ons Repo'