URL Cleanup Extensions for Pale Moon? Topic is solved

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

Moderators: FranklinDM, Lootyhoof

User avatar
hujan86
Fanatic
Fanatic
Posts: 194
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


User avatar
jars_
Lunatic
Lunatic
Posts: 397
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: 194
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

User avatar
jars_
Lunatic
Lunatic
Posts: 397
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: 471
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: 891
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 🌗 Apollo 11 🌓 "One small step for [a] man, one giant leap for mankind." 🚀

JustOff

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.

Goodydino
Keeps coming back
Keeps coming back
Posts: 820
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
Moon Magic practitioner
Moon Magic practitioner
Posts: 2372
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?

tooshorttoolong
Fanatic
Fanatic
Posts: 137
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
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
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: 137
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: 194
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

Quaoar

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.

User avatar
jars_
Lunatic
Lunatic
Posts: 397
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