Pure URL for Palemoon

Dedicated board for extension releases/support threads

Moderators: Lootyhoof, FranklinDM

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
moonbat
Knows the dark side
Knows the dark side
Posts: 5584
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-09, 04:32

I see. I'm developing on Linux and don't have access to a Windows box so it wouldn't be apparent for me.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
FranklinDM
Add-ons Team
Add-ons Team
Posts: 616
Joined: 2017-01-14, 02:40
Location: Philippines

Re: Pure URL for Palemoon

Unread post by FranklinDM » 2020-06-09, 15:21

back2themoon wrote:
2020-05-23, 17:03
The icon background is back. Currently on v.2.3. As before, it's only visible in the Status Bar.
Status Bar.png
The background referred to by back2themoon is actually a grey shadow, due to the following rules:

Code: Select all

#button-pureurl4pm[active="false"] {
	...
	box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
#button-pureurl4pm[active="true"] {
	...
	box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
#button-pureurl4pm {
	...
	box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
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: 5584
Joined: 2015-12-09, 15:45

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-12, 12:50

Changelog for 2.4
  • Fixed CSS background colors.
  • New feature: Toolbar button tooltip now displays count of links processed after the last page load.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2882
Joined: 2012-08-19, 20:32

Re: Pure URL for Palemoon

Unread post by back2themoon » 2020-06-12, 14:04

This is great, thanks for the fix (+FranklinDM for the tip). :thumbup:

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-12, 14:42

Changelog for 2.4.1
  • Log links cleaned on pages to toolkit console instead of browser console.
This is almost immediately after the last one but I was stuck figuring this out and it hit me just after I pushed the last fix. I'm striving to strictly stick to XUL instead of later added SDKs for maximum compatibility with UXP so it can be easily ported to other UXP applications (Borealis is supported at present).
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by adesh » 2020-06-12, 16:13

moonbat, can you provide the link to source? I can't find it on the extension page.

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-12, 16:24

Check now. Thought I'd added it before :oops:
Note that there is a separate branch called pureurl4pm-xul, which corresponds to what's in use now. The master branch still has the old bootstrap version, and I haven't figured out how to replace it.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-13, 05:35

Changelog for 2.4.2
  • Change tooltip for logging option.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-13, 19:17

Changelog for 2.4.3
  • New feature: Show last processed hostname in tooltip
  • Changed code to use Services.jsm instead of directly getting services.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-06-18, 07:32

So... is the minor issue of "intercepting requests" preventing FaceBook image adding in comments... fixable?

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-19, 07:24

That's assuming the problem is with Pure URL blocking parameters that are required there - if the page works after turning off Pure URL, then you can use the error log to find out what was filtered and compare the original to the filtered URL as recorded in the log output.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-06-21, 14:51

I already tried this in another thread, but nothing came of that.

When I log to Browser Console, and uncheck "intercept requests", adding images to FaceBook replies works, and there is nothing in the Console. Nothing to show.

Only when "intercept requests" is selected, do I get a nice juicy error to copy+paste.

Code: Select all

[PureURL:]Original URL: https://www.facebook.com/ajax/ufi/upload/?av=100005304496715&profile_id=100005304496715&source=19&target_id=100005304496715&__user=100005304496715&__a=1&__dyn=7AgNe-4amaUmgDxyHqAyqomzFEbEyGxuiEyAjFwRwCzob4q2i5UK3u2C3-ubyRyUrxuF98S5byEjKewXyEe8OdwJyFEg-2h1ycyXz8nxm1ixi4EG6Ehwj8mU8onwhqxW5o7Cul0XxK16xCWxS68nBy8pxCEdQ9wRyUvyoco5Xximf-786CEWu4F8O2HUvAKlxfwzxmfz9rBxe2i2iazUlxS2acyGwOGcAgrUWV8y2G5ojyFE-3m4oO68gy898e8Wqexp2UtGezEvwEy8ix22m1fxWEb8bGwCxe12xaUy58ym2mfxW68gABwkUjwVxe5E7622362W2K4E9ojwgrw&__csr=&__req=y&__beoa=0&__pc=PHASED%3ADEFAULT&dpr=1&__ccg=EXCELLENT&__rev=1002275080&__s=qpfngn%3Ahvdu93%3Awrxcxp&__hsi=6840812421389061622-0&__comet_req=0&fb_dtsg=AQHKLdZ1gwQG%3AAQH8B1qMXkj2&jazoest=21970&__spin_r=1002275080&__spin_b=trunk&__spin_t=1592750515
Cleaned URL:https://www.facebook.com/ajax/ufi/upload/?av=100005304496715&profile_id=100005304496715&target_id=100005304496715&__user=100005304496715&__a=1&__dyn=7AgNe-4amaUmgDxyHqAyqomzFEbEyGxuiEyAjFwRwCzob4q2i5UK3u2C3-ubyRyUrxuF98S5byEjKewXyEe8OdwJyFEg-2h1ycyXz8nxm1ixi4EG6Ehwj8mU8onwhqxW5o7Cul0XxK16xCWxS68nBy8pxCEdQ9wRyUvyoco5Xximf-786CEWu4F8O2HUvAKlxfwzxmfz9rBxe2i2iazUlxS2acyGwOGcAgrUWV8y2G5ojyFE-3m4oO68gy898e8Wqexp2UtGezEvwEy8ix22m1fxWEb8bGwCxe12xaUy58ym2mfxW68gABwkUjwVxe5E7622362W2K4E9ojwgrw&__csr=&__req=y&__beoa=0&__pc=PHASED%3ADEFAULT&dpr=1&__ccg=EXCELLENT&__rev=1002275080&__s=qpfngn%3Ahvdu93%3Awrxcxp&__hsi=6840812421389061622-0&__comet_req=0&fb_dtsg=AQHKLdZ1gwQG%3AAQH8B1qMXkj2&jazoest=21970&__spin_r=1002275080&__spin_b=trunk&__spin_t=1592750515

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-21, 15:00

The errant parameter seems to be 'source'. Remove it from the garbage parameter list and see if it helps.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-06-21, 16:43

I cannot find a single "source". Removed source@facebook.com, source_fb (or was it fb_source?) and src_fb (fb_src?).

Does nothing.

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-22, 04:42

Compare the parameters between original and cleaned URL then to see if there's anything else being removed, and remove them from the parameter list.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-06-22, 13:55

But "fix links" was always on. What makes a difference is "intercept requests". Un-checking that works. The URL stays the same, I don't even need to refresh the page.

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-22, 14:36

Maybe it makes background requests that were getting filtered.
Even then you'll see log activity. Original vs cleaned URL is for when it intercepts requests, original vs cleaned links is for what's already on a page.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

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

Re: Pure URL for Palemoon

Unread post by KlarkKentThe3rd » 2020-06-22, 20:25

When I log to console, and un-click "intercept request", I get either nothing, or....... this.

Code: Select all

"


                                            
 .d8888b.  888                       888    
d88P  Y88b 888                       888    
Y88b.      888                       888    This is a browser feature intended for 
 "Y888b.   888888  .d88b.  88888b.   888    developers. If someone told you to copy-paste 
    "Y88b. 888    d88""88b 888 "88b  888    something here to enable a Facebook feature 
      "888 888    888  888 888  888  Y8P    or "hack" someone's account, it is a 
Y88b  d88P Y88b.  Y88..88P 888 d88P         scam and will give them access to your 
 "Y8888P"   "Y888  "Y88P"  88888P"   888    Facebook account.
                           888              
                           888              
                           888              

See https://www.facebook.com/selfxss for more information.
"  
ocxGtirWfL3.js:13:1456
Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive. 
(unknown)
Use of getAttributeNode() is deprecated. Use getAttribute() instead.  
i5o2WYYkssS.js:26:1284
"


                                            
 .d8888b.  888                       888    
d88P  Y88b 888                       888    
Y88b.      888                       888    This is a browser feature intended for 
 "Y888b.   888888  .d88b.  88888b.   888    developers. If someone told you to copy-paste 
    "Y88b. 888    d88""88b 888 "88b  888    something here to enable a Facebook feature 
      "888 888    888  888 888  888  Y8P    or "hack" someone's account, it is a 
Y88b  d88P Y88b.  Y88..88P 888 d88P         scam and will give them access to your 
 "Y8888P"   "Y888  "Y88P"  88888P"   888    Facebook account.
                           888              
                           888              
                           888              

See https://www.facebook.com/selfxss for more information.
"  
ocxGtirWfL3.js:13:1456
Use of Mutation Events is deprecated. Use MutationObserver instead.  
FOmPi_VgiGQ.js:287:385
https://www.facebook.com/ : Unable to run script because scripts are blocked internally. 
(unknown)
unreachable code after return statement[Learn More]  
G0MKLmeCe1o.js:51:1450
unreachable code after return statement[Learn More]  
G0MKLmeCe1o.js:51:60274
unreachable code after return statement[Learn More]  
G0MKLmeCe1o.js:51:62388

        
Last time I tried I really did get nothing. I guess it only logs PureURL failures? This is the only information I can give you.

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

Re: Pure URL for Palemoon

Unread post by moonbat » 2020-06-23, 03:37

You want the error console, not the browser console.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37641
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Pure URL for Palemoon

Unread post by Moonchild » 2020-06-23, 10:23

Actually, you want the error or browser console, but not the web console.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite