URL Rewriter by papush

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
Baloo
Fanatic
Fanatic
Posts: 167
Joined: 2017-08-24, 15:02

URL Rewriter by papush

Unread post by Baloo » 2022-05-31, 15:39

This fork of Redirector has not been updated in almost a year, since August of 2021. https://addons.palemoon.org/addon/url-rewriter/

Anyone willing to target this to Pale Moon version 31?
Image
Image

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

Re: URL Rewriter by papush

Unread post by moonbat » 2022-06-01, 05:14

Why does it need to be updated? Seems to be working fine on 31 here.
"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: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: I'm working on a new E-mail client for UXP.

Unread post by moonbat » 2022-06-01, 05:17

andyprough wrote:
2022-05-31, 16:41
I'll be happy to do some forking and updating, including on URL Rewriter,
But why? There's nothing wrong with the extension on 31, it works fine.
"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
andyprough
Astronaut
Astronaut
Posts: 698
Joined: 2020-05-31, 04:33

Re: URL Rewriter by papush

Unread post by andyprough » 2022-06-01, 05:31

moonbat wrote:
2022-06-01, 05:14
Why does it need to be updated? Seems to be working fine on 31 here.
You are right, works great, oh well.

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 937
Joined: 2017-12-14, 12:59

Re: URL Rewriter by papush

Unread post by gepus » 2022-06-01, 06:06

@Baloo

As long as the user doesn't change the default value for extensions.strictCompatibility, 'max version' shouldn't be an issue.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2183
Joined: 2018-05-05, 13:29

Re: URL Rewriter by papush

Unread post by vannilla » 2022-06-01, 08:10

It wouldn't hurt to have an active maintainer though, you know. ;)

User avatar
Baloo
Fanatic
Fanatic
Posts: 167
Joined: 2017-08-24, 15:02

Re: URL Rewriter by papush

Unread post by Baloo » 2022-06-03, 16:10

Good to see that this still works on Pale Moon 31. I think it got disabled when the version numbers of the last few times got jumbled up and I got a bit scared that it would no longer work. I wouldn't mind there being an active maintainer either though.... :)
Image
Image

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4279
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: URL Rewriter by papush

Unread post by Pallid Planetoid » 2022-10-17, 19:30

Newly installed - doesn't work for me ("enable" function in drop-down doesn't seem to do anything as well as the add-on options or settings) - basically unable to do anything with the add-on. It seems totally unresponsive as far as I can tell (tried installing twice). I've installed this add-on in the past and found it to at least be functional at that time (as far as using the add-on to create URL redirects).
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

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

Re: URL Rewriter by papush

Unread post by moonbat » 2022-10-17, 23:29

Working fine here.
"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
Figueroa
Moonbather
Moonbather
Posts: 73
Joined: 2021-04-06, 18:32

Re: URL Rewriter by papush

Unread post by Figueroa » 2022-10-19, 01:14

Maybe your redirect rules are malformed. Try this one:
{
"exampleUrl": "https://twitter.com/buitengebieden/status/1582354904269541377",
"includePattern": "*/twitter.com/*",
"excludePattern": "",
"redirectUrl": "$1/nitter.ca/$2",
"patternType": "W",
"unescapeMatches": false,
"escapeMatches": false,
"disabled": false
}

Or post a rule that isn't working for you.

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4279
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: URL Rewriter by papush

Unread post by Pallid Planetoid » 2022-10-19, 15:19

I was unable to enter anything - the function/button options for the add-on (to add redirects) were all unresponsive hence unable to add any redirects (installed twice - I had used this add-on some time ago and all functions were responsive at that time so I had been able to add redirects then). I just wanted to try a redirect on a site (NV Energy), but it probably wouldn't have helped anyway.

Thanks for the feedback. :thumbup:
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: URL Rewriter by papush

Unread post by Kris_88 » 2022-10-19, 17:03

Pallid Planetoid wrote:
2022-10-19, 15:19
the function/button options for the add-on (to add redirects) were all unresponsive.
What do you see in the Error console/Browser console while trying to add redirect?

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4279
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: URL Rewriter by papush

Unread post by Pallid Planetoid » 2022-10-19, 18:28

Installing the add-on (error console):

Code: Select all

Timestamp: 10/19/2022 11:19:57 AM
Error: TypeError: document.getElementById(...) is null
Source File: chrome://butwhymod/content/browser.js
Line: 28
Timestamp: 10/19/2022 11:19:57 AM
Error: TypeError: document.getElementById(...) is null
Source File: chrome://butwhymod/content/browser.js
Line: 28
Clicking any function has not response.png
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4279
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: URL Rewriter by papush

Unread post by Pallid Planetoid » 2022-10-19, 18:35

Followup: disabled "butWhyMod" add-on - reinstalled "URL Rewriter".

No errors in the "error console" this time.

But still the "URL Rewriter" remains unresponsive as before (see previous screen-shot).

I figured disabling the add-on that was producing errors and re-installing the "URL Rewriter" (with no errors in the "error console") would have fixed the problem.

But without any errors and still no response clicking on the "URL Rewriter" buttons/functions it appears the errors are irrelevant to the add-on issue --- so I'll just give up on this add-on (like I said, my idea to redirect a page probably wouldn't have helped or even worked anyway).

Thanks for the help.
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: URL Rewriter by papush

Unread post by Kris_88 » 2022-10-19, 20:52

This is strange, because this add-on works for me.
However, it uses jQuery, so there is a lot of code and it is very difficult to understand where the problem arises.

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

Re: URL Rewriter by papush

Unread post by moonbat » 2022-10-20, 00:03

The butWhyMod author is an idiot. I sent him a fix for the terrible UI his extension has (changing the text as well as the state of the checkbox, wtf) and he completely ignored it. Extension authors not respecting the global namespace leads to such conflicts, when they refer to a variable used globally by the browser or that conflicts with other extensions instead of defining everything within a block unique to their extension.
"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
andyprough
Astronaut
Astronaut
Posts: 698
Joined: 2020-05-31, 04:33

Re: URL Rewriter by papush

Unread post by andyprough » 2022-10-20, 01:41

moonbat wrote:
2022-10-20, 00:03
The butWhyMod author is an idiot. I sent him a fix for the terrible UI his extension has (changing the text as well as the state of the checkbox, wtf) and he completely ignored it. Extension authors not respecting the global namespace leads to such conflicts, when they refer to a variable used globally by the browser or that conflicts with other extensions instead of defining everything within a block unique to their extension.
Appears to be an abandoned project. Zero commits in three years.

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

Re: URL Rewriter by papush

Unread post by moonbat » 2022-10-20, 01:44

Yeah it was two years since I contacted him, was surprised to get a reply saying he will fix it but after that nothing.
At any rate, you don't need this extension when uBlock Origin can easily do the same with proper filter lists.
"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
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4279
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: URL Rewriter by papush

Unread post by Pallid Planetoid » 2022-10-20, 11:58

moonbat wrote:
2022-10-20, 00:03
The butWhyMod author is an idiot. I sent him a fix for the terrible UI his extension has (changing the text as well as the state of the checkbox, wtf) and he completely ignored it. Extension authors not respecting the global namespace leads to such conflicts, when they refer to a variable used globally by the browser or that conflicts with other extensions instead of defining everything within a block unique to their extension.
Your frustrations are understandable (and agree that the add-on dev is not very responsible), but that said, this "conflict with other extensions" as you refer to it, has nothing to do with the problem I'm having - see: viewtopic.php?f=46&t=28422&e=1&view=unread#p233172 (two posts above yours).
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

Michaell
Lunatic
Lunatic
Posts: 282
Joined: 2018-05-26, 18:13

Re: URL Rewriter by papush

Unread post by Michaell » 2022-10-20, 12:42

moonbat wrote:
2022-10-20, 01:44
Yeah it was two years since I contacted him, was surprised to get a reply saying he will fix it but after that nothing.
At any rate, you don't need this extension when uBlock Origin can easily do the same with proper filter lists.
Off-topic:
He did fix it. Here's the link to the xpi download page, have to click the download button to actually download the extension.
https://github.com/sleepingkirby/butWhyMod/blob/xul/releases/butWhyMod_xul.xpi
Win10home(1709), PM33.0.0-portable as of Feb 1, '24

Locked