Pure URL for Palemoon

Dedicated board for extension releases/support threads

Moderators: FranklinDM, Lootyhoof

Forum rules
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
User avatar
nicolaasjan
Moon lover
Moon lover
Posts: 90
Joined: 2017-07-28, 14:44
Location: The Netherlands

Re: Pure URL for Palemoon

Unread post by nicolaasjan » 2020-06-25, 11:25

moonbat wrote:
2020-06-25, 11:04
If you mean parameters from the CAA version - that is a different extension with a different ID, so it can't be directly ported. You can always copy the string value for extensions.pure-url@palemoon.garbage_fields from about:config for backup though.
No, sorry I wasn't clear about that.
It happened in your version.
Very strange indeed...

But I guess it will be OK from now on?

PS,
In Basilisk with v2.5, Googles' ved parameter is now properly removed :thumbup:
(first uninstalled the CAA version and deleted all it's prefs)
Last edited by nicolaasjan on 2020-06-25, 11:46, edited 1 time in total.
Linux Mint 20.3 Mate 64bit
Pale Moon latest

User avatar
adesh
Board Warrior
Board Warrior
Posts: 1277
Joined: 2017-06-06, 07:38

Re: Pure URL for Palemoon

Unread post by adesh » 2020-06-25, 11:36

moonbat, update problems can be prevented if there are separate prefs for user added and user removed (default) parameters. I guess technically it is difficult to manage this with one field unless you use something other than comma delimited fields as the pref value.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-25, 16:41

adesh wrote:
2020-06-25, 11:36
I guess technically it is difficult to manage this with one field unless you use something other than comma delimited fields as the pref value.
Yeah, pretty much. The core of the extension as it originally was made is to construct one big regex out of all the parameters and apply it to the URLs in requests and when fixing them on pages.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-25, 16:42

Changelog for 2.6
  • Add support for fixing urlencoded URLs.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-26, 05:11

Changelog for 2.6.2
  • Reverted urlencoding patch.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
hujan86
Fanatic
Fanatic
Posts: 194
Joined: 2017-09-27, 06:50

Re: Pure URL for Palemoon

Unread post by hujan86 » 2020-06-26, 10:42

moonbat wrote:
2020-06-26, 05:11
Changelog for 2.6.2
  • Reverted urlencoding patch.
Was there a problem with "urlencoded URLs"?
Avatar's Source: yereverluvinuncleber

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-26, 11:23

hujan86 wrote:
2020-06-26, 10:42
Was there a problem with "urlencoded URLs"?
Yes, it broke Facebook, and was too complicated to fix.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-07-03, 03:07

Changelog for 2.7.1
  • Removed page injection script for modifying page links, moved functions to main extension directly.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-07-03, 05:35

I wouldn't mind learning just that that means.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-07-03, 05:39

KlarkKentThe3rd wrote:
2020-07-03, 05:35
I wouldn't mind learning just that that means.
This extension as originally designed (what I forked from) inserts a script into evey webpage to process and clean links. The problem is that communication between the script and the rest of the extension becomes complicated (especially when I added the counting processed links feature), so I got rid of the script so that all the code runs from within the extension only. This is just an internal code change and doesn't affect its behavior :)
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-07-04, 02:12

That's how all extensions should work in my humble opinion. Not inserting scripts, but keeping them internally contained.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-07-04, 06:55

KlarkKentThe3rd wrote:
2020-07-04, 02:12
That's how all extensions should work in my humble opinion. Not inserting scripts, but keeping them internally contained.
Yeah, pretty much. Greasemonkey scripts are better suited for situations requiring script injection - which in turn make sense only for small localized changes to a specific site. The communication between the extension and script has to go through DOM events, and one has to be careful of security holes there.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-07-04, 07:55

The 4th of July brings a big update with independence from shortened URLs :mrgreen:

Changelog for 3.0
  • NEW FEATURE: Resolve URL shortened links on pages and display target in a tooltip over the link.
  • Added complete changelog to repo.
  • Updated description in install.rdf.
  • Added expanded links processed count and feature status to toolbar button
    tooltip.
  • Added large toolbar icons, now they resize correctly.
  • Disable toolbar button and Tools menu option on non-webpages like about: pages.
  • Remove inject.js.
  • Use a preference branch for extension preferences instead of Services.prefs.
  • Added default garbage field utm_cta.
For now, it supports expanding links from tinyurl and bit.ly, and there isn't a UI to add more yet. t.co doesn't work, they use some other mechanism than a HTTP redirect.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

htuyar
Moonbather
Moonbather
Posts: 69
Joined: 2015-09-11, 10:19
Location: Istanbul

Re: Pure URL for Palemoon

Unread post by htuyar » 2020-07-04, 16:34

The O'Reilly Programming Newsletter includes links like this one:

https://link.oreilly.com/FCiMW00qS0F0T0Hq000SrQ2

which redirects to:

https://livecodestream.dev/post/2020-06 ... amlQIn0%3D

where the mkt_tok parameter seems to be a candidate for the garbage field of this extension. I've added it to my list and posting it here in case it's useful.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-07-04, 22:56

moonbat wrote:
2020-07-04, 07:55
The 4th of July brings a big update with independence from shortened URLs :mrgreen:

Changelog for 3.0
  • NEW FEATURE: Resolve URL shortened links on pages and display target in a tooltip over the link.
  • Added complete changelog to repo.
  • Updated description in install.rdf.
  • Added expanded links processed count and feature status to toolbar button
    tooltip.
  • Added large toolbar icons, now they resize correctly.
  • Disable toolbar button and Tools menu option on non-webpages like about: pages.
  • Remove inject.js.
  • Use a preference branch for extension preferences instead of Services.prefs.
  • Added default garbage field utm_cta.
For now, it supports expanding links from tinyurl and bit.ly, and there isn't a UI to add more yet. t.co doesn't work, they use some other mechanism than a HTTP redirect.
Best present.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-07-05, 00:00

Speaking of presents, this is strange. As if it's not there, cannot do anything. Using community Mac build, latest.
You do not have the required permissions to view the files attached to this post.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-07-05, 03:32

KlarkKentThe3rd wrote:
2020-07-05, 00:00
As if it's not there, cannot do anything.
It will stay disabled if you are not on a webpage, such as an about: page or a new tab. Switch to a regular webpage and it turns back on.
htuyar wrote:
2020-07-04, 16:34
where the mkt_tok parameter seems to be a candidate for the garbage field of this extension. I've added it to my list and posting it here in case it's useful.
Thanks. In general, this is how you identify such parameters - just manually remove them from a URL and reload the page to see if it still works correctly.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-07-05, 03:47

It is enabled. I restarted the browser. This must be a bug.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4984
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-07-05, 03:53

On what page did it happen?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-07-05, 05:07

I do not remember, pretty sure after the last upgrade and restart. Maybe.