URL Cleanup Extensions for Pale Moon?

General discussion, compatibility and contributed extensions.

Moderators: satrow, Lootyhoof, FranklinDM

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

URL Cleanup Extensions for Pale Moon?

Unread post by hujan86 » 2017-12-09, 15:56

Is there any extensions in the same vein as Neat URL, Lean URL, Pure URL that work with Pale Moon? Its purpose is to remove unneeded URL parameters when I clicked on a link (e.g. "utm_content").
Avatar's Source: yereverluvinuncleber
SierraChart_100 wrote:Firefox started off good and gradually descended into absurdity.
Moonraker wrote:Palemoon is still the only fully customised browser available.
Image

fillerup
Astronaut
Astronaut
Posts: 502
Joined: 2014-05-19, 19:14
Location: Finland

Re: URL Cleanup Extensions for Pale Moon?

Unread post by fillerup » 2017-12-09, 16:03


jars_
Lunatic
Lunatic
Posts: 253
Joined: 2016-12-27, 00:12

Re: URL Cleanup Extensions for Pale Moon?

Unread post by jars_ » 2017-12-09, 16:06

Redirect Bypasser
just fix the version number in install.rdf.

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

Re: URL Cleanup Extensions for Pale Moon?

Unread post by hujan86 » 2017-12-09, 16:38

jars_ wrote:Redirect Bypasser
just fix the version number in install.rdf.
Is it okay to edit "Firefox" to "Pale Moon"?
Avatar's Source: yereverluvinuncleber
SierraChart_100 wrote:Firefox started off good and gradually descended into absurdity.
Moonraker wrote:Palemoon is still the only fully customised browser available.
Image

jars_
Lunatic
Lunatic
Posts: 253
Joined: 2016-12-27, 00:12

Re: URL Cleanup Extensions for Pale Moon?

Unread post by jars_ » 2017-12-09, 17:11

hujan86 wrote:just fix the version number in install.rdf.
Is it okay to edit "Firefox" to "Pale Moon"?
version number ёпт! ;)
in orig we have:

<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>32.0</em:minVersion>
<em:maxVersion>46.*</em:maxVersion>
</Description>
</em:targetApplication>



edit version:

<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>24.0</em:minVersion>
<em:maxVersion>46.*</em:maxVersion>
</Description>
</em:targetApplication>


... then install.

riiis
Lunatic
Lunatic
Posts: 439
Joined: 2014-05-17, 15:51
Location: USA

Re: URL Cleanup Extensions for Pale Moon?

Unread post by riiis » 2017-12-09, 18:25

hujan86 wrote:Is there any extensions in the same vein as Neat URL, Lean URL, Pure URL that work with Pale Moon?
"Pure URL" is listed at the Pale Moon Known Incompatible Add-ons website, along with the workaround extension Redirect Remover. The "Known Incompatible Add-ons" website is a good resouce to check, before posting , for "Known Incompatible Add-ons". For me, "Redirect Remover" installed directly from AMO (Click "+ Add to Firefox" button). Thus, unlike "Redirect Bypasser", there will be no need to modify, beforehand, Redirect Remover's "install.rdf" file.

User avatar
gracious1
Keeps coming back
Keeps coming back
Posts: 857
Joined: 2016-05-15, 05:00
Location: humid upstate NY

Re: URL Cleanup Extensions for Pale Moon?

Unread post by gracious1 » 2017-12-09, 18:43

hujan86 wrote:
jars_ wrote:Redirect Bypasser
just fix the version number in install.rdf.
Is it okay to edit "Firefox" to "Pale Moon"?
You can also use Moon Tester Tool, developed by a member of the Pale Moon team, to install this extension. It will make the necessary changes to the install.rdf for you.
20 July 1969 🌗 50th Anniversary of Apollo 11 🌓 "One small step for [a] man, one giant leap for mankind." 🚀

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1767
Joined: 2015-09-03, 19:47
Location: UA
Contact:

Re: URL Cleanup Extensions for Pale Moon?

Unread post by JustOff » 2017-12-09, 19:08

Off-topic:
gracious1 wrote:developed by a member of the Pale Moon team
Let me clarify, I'm just an ordinary participant of the Pale Moon community, and not a member of the Pale Moon team. The fact that I manage the browser localization as a coordinator also does not give me any official status, but only specific duties taken voluntarily.
Here are the add-ons I made in a spare time. That was fun!

Goodydino
Lunatic
Lunatic
Posts: 493
Joined: 2017-10-10, 21:20

Re: URL Cleanup Extensions for Pale Moon?

Unread post by Goodydino » 2017-12-09, 20:52

hujan86 wrote:
jars_ wrote:Redirect Bypasser
just fix the version number in install.rdf.
Is it okay to edit "Firefox" to "Pale Moon"?
That "Firefox" is a remark. It has markers around it to tell the software to ignore it. What needs to be changed are the ID number of the application and the min and max version numbers for the application. You can find a set of those things in any Pale Moon theme. Swapping those lines would work.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1402
Joined: 2012-08-19, 20:32

Re: URL Cleanup Extensions for Pale Moon?

Unread post by back2themoon » 2017-12-09, 22:34

Some of the mentioned extensions are very old, shouldn't these type of extensions maintain some sort of updated list for their redirects? Or is it not relevant?
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

tooshorttoolong
Fanatic
Fanatic
Posts: 130
Joined: 2017-09-11, 14:28

Re: URL Cleanup Extensions for Pale Moon?

Unread post by tooshorttoolong » 2017-12-10, 19:39

fillerup wrote:i use clean links: https://github.com/diegocr/CleanLinks/releases
How do you install it?

I tried Redirect Bypasser but I don’t see how it can be made to clean URLs.

coffeebreak
Board Warrior
Board Warrior
Posts: 1710
Joined: 2015-09-26, 04:51
Location: U.S.

Re: URL Cleanup Extensions for Pale Moon?

Unread post by coffeebreak » 2017-12-10, 23:42

tooshorttoolong wrote:
fillerup wrote:i use clean links: https://github.com/diegocr/CleanLinks/releases
How do you install it?

Here are a couple methods, either of which worked for me...

Alternative 1. As mentioned here: https://forum.palemoon.org/viewtopic.php?f=44&t=15769#p114602:
  • Download the source code zipped folder from /releases to a convenient location. This is essentially CleanLinks with a different file extension.
  • Unzip it with your preferred archiving software.
  • Inside that unzipped folder (CleanLinks-2.7.0) is a 2nd folder/directory of same name that contains the CleanLinks files. Those files will need to be in the root directory of the xpi for installing CleanLinks.
  • So open that 2nd directory, select all the files inside and send them to a new zipped folder. (In other words: DO NOT include the folder - ONLY ZIP UP ITS CONTENTS.)
  • Change the file extension of the newly created zipped folder from .zip to .xpi.
  • Install by dragging the xpi onto the add-ons manager (about:addons), or by clicking the gear at top of the add-ons manager page and selecting "Install Add-on From File...".
Alternative 2. Install using the extension XPICompiler:
  • As before... Download the CleanLinks source code zipped folder from /releases.
  • Install XPICompiler.
  • Put about:xpiler into the address bar, hit Enter. It provides an internal page with prompts to follow for making the downloaded zipped folder into a useable xpi for installing locally.
  • Install by dragging...etc., as above.

tooshorttoolong
Fanatic
Fanatic
Posts: 130
Joined: 2017-09-11, 14:28

Re: URL Cleanup Extensions for Pale Moon?

Unread post by tooshorttoolong » 2017-12-11, 13:43

Thanks Coffeebreak; I used the manual method, that was easy.

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

Re: URL Cleanup Extensions for Pale Moon?

Unread post by hujan86 » 2017-12-14, 06:16

I'm unsure how to configure the rules in Redirect Bypasser. So I opted to try Clean Links. Through trial & error, I found that the option Redirect Watcher & HTTP Observer must be enabled in order to clean all the links. So thanks so much, fillerup, JustOff & Coffeebreak.
Avatar's Source: yereverluvinuncleber
SierraChart_100 wrote:Firefox started off good and gradually descended into absurdity.
Moonraker wrote:Palemoon is still the only fully customised browser available.
Image

Quaoar
Newbie
Newbie
Posts: 6
Joined: 2017-11-20, 00:41

Re: URL Cleanup Extensions for Pale Moon?

Unread post by Quaoar » 2017-12-18, 17:55

jars_ wrote:Redirect Bypasser
just fix the version number in install.rdf.
It doesn't seem to affect Google search links.

jars_
Lunatic
Lunatic
Posts: 253
Joined: 2016-12-27, 00:12

Re: URL Cleanup Extensions for Pale Moon?

Unread post by jars_ » 2017-12-19, 07:34

It doesn't seem to affect Google search links.
Of course. for Google, Yandex need special. ways.
for google GM script:

Code: Select all

// ==UserScript==
// @name       AntiGoogle
// @namespace  AntiGoogle
// @version    0.1.5
// @description  Skip redirection URL on Google search results.
// @include    /https?:\/\/www.google\.[^\/]+\/search.+/
// @include    /https?:\/\/google\.[^\/]+\/search.+/
// @copyright  yup, 2016
// @grant       none
// @run-at         document-start
// ==/UserScript==

function ClearLinks() {
  var links, i;

  links = document.getElementsByTagName("a");
  for (i = links.length-1; i >= 0 ; i--) {
    var link = links[i];
    if (link.hasAttribute("onmousedown")) {
      if (link.removeEventListener) {
        link.removeEventListener("mousedown", link.onmousedown, false);
      } else if(link.detachEvent) {
        link.detachEvent("onmousedown", link.onmousedown);
      }
      link.removeAttribute("onmousedown");
    }
    if (link.hasAttribute("onmouseup")) {
      if (link.removeEventListener) {
        link.removeEventListener("mouseup", link.onmouseup, false);
      } else if(link.detachEvent) {
        link.detachEvent("onmouseup", link.onmouseup);
      }
      link.removeAttribute("onmouseup");
    }
    if (link.hasAttribute("onclick")) {
      if (link.removeEventListener) {
        link.removeEventListener("click", link.click, false);
      } else if(link.detachEvent) {
        link.detachEvent("click", link.click);
      }
      link.removeAttribute("onclick");
    }

    if (link.href.indexOf("url?sa=") > -1)
      link.setAttribute("href", decodeURIComponent(link.href.split('&').filter(item => item.substr(0,4) == 'url=')[0].substring(4)))

  }

  links = document.getElementsByClassName("i3599");
  for (i = links.length-1; i >= 0 ; i--) links[i].removeAttribute("jsaction");

  links = document.getElementsByClassName("i3596");
  for (i = links.length-1; i >= 0 ; i--) links[i].removeAttribute("jsaction");

  setTimeout(ClearLinks, 2000);
};
setTimeout(ClearLinks, 20);
for google + yandex GM script Remove_Fake_Links · Infocatcher

Locked