Proton sites

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
adoxa
Astronaut
Astronaut
Posts: 580
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Proton sites

Post by adoxa » 2026-01-02, 02:44

After the recent post on ProtonVPN I revisited it and noticed its Pricing page had missing elements - turns out it wants URL.canParse, as does their IP address and Authenticator pages. Here's a Greasemonkey script to provide it.

Code: Select all

// ==UserScript==
// @name        canParse
// @namespace   adoxa
// @include     https://proton*/*
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==

URL.canParse = function (path, base) {
	try {
		new URL(path, base);
		return true;
	}
	catch (err) {
		return false;
	}
};

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1137
Joined: 2020-11-03, 06:47
Location: Philippines

Re: Proton sites

Post by jobbautista9 » 2026-01-02, 03:43

URL.canParse() will be in the next milestone release this year, FYI, so fortunately this workaround won't be needed in the future: Issue #2865 (UXP)
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.