Page 1 of 1

URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 15:56
by hujan86
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").

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 16:03
by fillerup

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 16:06
by jars_
Redirect Bypasser
just fix the version number in install.rdf.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 16:38
by hujan86
jars_ wrote:Redirect Bypasser
just fix the version number in install.rdf.
Is it okay to edit "Firefox" to "Pale Moon"?

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 17:11
by jars_
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 18:25
by riiis
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 18:43
by gracious1
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 19:08
by JustOff
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 20:52
by Goodydino
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-09, 22:34
by back2themoon
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?

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-10, 19:39
by tooshorttoolong
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-10, 23:42
by coffeebreak
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-11, 13:43
by tooshorttoolong
Thanks Coffeebreak; I used the manual method, that was easy.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-14, 06:16
by hujan86
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.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-18, 17:55
by Quaoar
jars_ wrote:Redirect Bypasser
just fix the version number in install.rdf.
It doesn't seem to affect Google search links.

Re: URL Cleanup Extensions for Pale Moon?

Posted: 2017-12-19, 07:34
by jars_
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