Smile4ever / Neat-URL

Neat URL cleans URLs, removing parameters such as Google Analytics' utm parameters.
Other
617 stars 36 forks source link

Neat URL

Neat URL is a browser extension that cleans URLs, removing parameters such as Google Analytics' utm parameters. Download for Firefox or download for Chrome.

Example

Before:

After:

Why should I use this?

Are you tired of handing over data to Google or other companies?

Do you want to see neater URLs?

Neat URL is just what you're looking for!

Default blocked parameters

See the default configuration here

Parameter rules

A parameter is something that starts with ?. You can add your own parameter in the options of Neat URL. The ? is ommitted in the options, so a ?ved parameter becomes "ved". There are a few exceptions to this rule (see below)

Parameters can be global (for every domain):

utm_source

Parameters can contain @ signs (domain-specific):

nb@tweakers.net

Parameters can contain @ signs with a wildcard so every subdomain will match too (root wildcard domain):

param@*.wired.com

Parameters can contain @ signs with a wildcard at the end of a domain name (matches every domain name which begins with "google" and ends in an unknown suffix, called suffix wildcard domain):

param@google.*

Mixing a root wild card domain with a suffix wildcard domain in the same parameter is also possible:

param@*.google.* (too many wildcards)

Parameters can contain a wildcard at the end or before the domain sign:

utm_*
utm_*@omgubuntu.co.uk
*@omgubuntu.co.uk

Parameters can also apply globally (first rule), except for a (wildcard) domain (second rule):

ref
!ref@amazon.co.uk

The excluded domain always takes precedence. Should you include "ref" and "!ref", "!ref" will apply.

Other valid parameters - ending parameters (exceptions to the ? rule):

$/ref@amazon.* (remove everything after /ref on Amazon domains - this will only apply when there are no query parameters left after removing the filtered query parameters. Exception: Amazon product pages parameters are cleaned like they contain two dollar signs)
$$/ref@amazon.* (remove everything after /ref on Amazon domains - this will always apply, even when there are other query parameters after removing the filtered query parameters - this option is available because the user should be in control but beware that double dollar signs are dangerous, it might break the URL)

Other valid parameters - hash parameters (exceptions to the ? rule):

#xtor=RSS-8 (remove this parameter - be sure to include its value as well when you are using anchor tags)
#xtor=RSS-8@futura-sciences.com for example this URL https://www.futura-sciences.com/magazines/espace/infos/actu/d/astronautique-curiosity-franchi-succes-dune-dingo-gap-52289/#xtor=RSS-8
#?pk_campaign (normal parameters that come after a hash sign, for example this URL https://vivaldi.com/blog/teamblog/vivaldi-1-13-adds-window-panel/#pk_campaign=newsletter&pk_kwd=community gets changed to https://vivaldi.com/blog/teamblog/vivaldi-1-13-adds-window-panel/#pk_kwd=community)
#?pk_campaign@vivaldi.com (same as above, but domain-matched instead of global)

Invalid parameters:

|ved (this is some random string - not supported, it will not work)
/ref@amazon.*$ (dollar sign should be at the beginning)
ref@* (domain cannot be a wildcard, use ref instead to apply globally)

Recommended parameters

Parameters meant for the general public are included as default blocked parameters. You can add your own parameters for specific websites that are not (yet) supported by default. Parameters with only one or two letters will never be included in Neat URL by default, unless they can be given a domain.

For Tweakers.net: nb@tweakers.net, u@tweakers.net

For Vivaldi.com:

?pk_campaign@vivaldi.com, #?pk_kwd@vivaldi.com

Google Analytics - tracking https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters

tid, aip, ds, qt, uid, uip, ua, geoid, dr, cn, cs, cm, ck, cc, ci, gclid, dclid, linkid cid (campaign id, but used for other purposes by other websites - not included by default anymore)

Google (possibly tracking)

Google (tracking status unknown)

Google (non tracking)

Tracking

For addons.mozilla.org: src@addons.mozilla.org, source@addons.mozilla.org, surveyversion@addons.mozilla.org, updateChannel@addons.mozilla.org, fxVersion@addons.mozilla.org, isDefaultBrowser@addons.mozilla.org, searchEngine@addons.mozilla.org, syncSetup@addons.mozilla.org, type@addons.mozilla.org, flowId@addons.mozilla.org

(only works when extensions.webextensions.restrictedDomains is edited in about:config) (test URL https://support.mozilla.org/de/kb/enterprise-roots?as=u&utm_source=inproduct)

Other parameters you can consider (website unknown)

Help, it does not work!

History

Neat URL is based on Lean URL.

Neat URL contains a few improvements: