"ttp://" to "http://"

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
ICBM5643

"ttp://" to "http://"

Unread post by ICBM5643 » 2018-01-23, 05:36

Is there a way to get URLs that begin with "ttp://" and "ttps://" to redirect to the respective "http://" and "https://" versions of their URLs?
For example: ttps://forum.palemoon.org/ would become https://forum.palemoon.org/.

I've noticed that this feature is present in Firefox, Waterfox, and Basilisk, but it seems to be left out of Pale Moon. The reason I'm asking is because some Japanese communities have a thing called "h removal" (h抜き) where the "h" is removed from "http" to prevent search engines from crawling the link, possibly avoid referral pages, and use it as a workaround to post links due to some boards not allowing full links to be posted since bots typically spam the full link to whatever website they're advertising. If not, that's fine.

GMforker

Re: "ttp://" to "http://"

Unread post by GMforker » 2018-01-23, 08:32


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

Re: "ttp://" to "http://"

Unread post by Moonchild » 2018-01-23, 08:39

There is no cure for PEBCAK.
Last edited by Moonchild on 2018-01-23, 08:47, edited 2 times in total.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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

Re: "ttp://" to "http://"

Unread post by Moonchild » 2018-01-23, 08:56

Let's hook this up in Issue #1600
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

ICBM5643

Re: "ttp://" to "http://"

Unread post by ICBM5643 » 2018-01-23, 14:14

Moonchild wrote:There is no cure for PEBCAK.
Yeah, I was expecting this kind of response. I appreciate the replies though.

User avatar
karlkracher
Fanatic
Fanatic
Posts: 129
Joined: 2015-12-05, 17:40
Location: berlin / germany

Re: "ttp://" to "http://"

Unread post by karlkracher » 2018-01-23, 14:39

Other boards are replacing "http" with "hxxp", the possibilities are unlimited. Perhaps this can be done in an extension for the people who really need it.

Swicher
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2017-07-09, 13:12

Re: "ttp://" to "http://"

Unread post by Swicher » 2018-02-01, 22:23

ICBM5643 wrote:Is there a way to get URLs that begin with "ttp://" and "ttps://" to redirect to the respective "http://" and "https://" versions of their URLs?
karlkracher wrote:Other boards are replacing "http" with "hxxp", the possibilities are unlimited.
One way to solve it could be with the modification of Redirector that I publish in viewtopic.php?p=132282#p132282 that allows to redirect anything to anything else (the original version only works with http or https links). To work correctly you must use regular expressions, for example:
  • To redirect ttp/s to http/s: ^ttp(s?.+)
  • hxxp/s to http/s: hxxp(s?.+)
And in the "Redirect To" field you must add http$1

Locked