移除网址中的无用段。 Neat URL cleans URLs, removing parameters such as Google Analytics' utm parameters. Example ------- Before: http://www.phoronix.com/scan.php?page=news_item&px=Ioquake3-Auto-Updater&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Phoronix+(Phoronix) After: http://www.phoronix.com/scan.php?page=news_item&px=Ioquake3-Auto-Updater Custom rules can be added using the global format or the domain specific format (parameter@domain). A domain specific parameter would be, for example, utm_campaign@phoronix.com. 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: 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: param@google.* Parameters can also apply globally (first rule), except for a (wilcard) 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 (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 $/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) $$/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) Invalid parameters: param@*.google.* (too many wildcards) !ved (this is some random string - not supported, but it might work) /ref@amazon.*$ (dollar sign should be at the beginning) History ------- Neat URL is based on Lean URL. Neat URL contains a few improvements: * set your own URL parameters on the options page (to reach feature parity with Pure URL) * fixed for recent Firefox versions * a nice animation in the toolbar (can be changed or disabled) * domain-specific blocked parameters (to reach feature parity with Pure URL) * wildcard domain-specific blocked parameters Bug reports and feature requests -------------------------------- You can open an issue on GitHub. Please include ""Neat URL"" in the title of the newly created issue: https://github.com/Smile4ever/firefoxaddons/issues/new"