It will clean these URLs regardless of what top level domain (.com, .ca, .fr, etc) or subdomain (unless excluded, various Google sites break easily like Docs, Hangouts, Takeout, etc)
Feel free to report issues or make pull requests for fixes, enhancements, etc: https://github.com/dividedby/General-URL-Cleaner-Revived
https://greasyfork.org/en/scripts/432387-general-url-cleaner-revived [Add] Properly support all Amazon TLDs: #12 [Add] Strip "sclient" parameter from Google search results: #4
[Fix] Resolve issue with "undefined" being added to end of cleaned URLs: #5
[Fix] Updated regex of site matching to better catch sites and any top level domain (.com, .co.uk. .fr, etc): https://greasyfork.org/en/scripts/432387-general-url-cleaner-revived/discussions/143277
[Add] Add additional Bing parameters to be cleaned: https://greasyfork.org/en/scripts/432387-general-url-cleaner-revived/discussions/143277
[Add] New parameters for most supported sites, script runs at document-end to better catch any changes made to URLs that can be cleaned, updates to the core script to formatting and correct JS conventions
Cleans Google search URL's
A normal google search URL might look like this: https://www.google.com/search?num=100&q=google&oq=google&gs_l=serp.3..0l10.7976.8565.0.9999.6.6.0.0.0.0.358.617.2-1j1.2.0....0...1c.1.64.serp..4.2.615.BQ3ZvdzuPGE
A cleaned google search url: https://www.google.com/search?q=google
Removes redirection of Google results links
Works with international Google sites (not just .com) Cleans Bing search URL's
A normal google search URL might look like this: https://www.bing.com/search?q=google&qs=n&form=QBLH&pq=google&sc=9-2&sp=-1&sk=&cvid=97312C9A5750490FB6C424E46C6759EF
A cleaned bing search url: https://www.bing.com/search?q=google Cleaned url always looks like this: https://www.youtube.com/watch?v=[video-id]
Removes redirection of description links Cleaned url always looks like this: http://www.amazon.com/gp/product/[item-id]/ Or this: http://www.amazon.com/dp/[item-id]/
Works with international sites (not just .com) Typical Facebook link looks like this: https://www.facebook.com/photo/?fbid=3121744148088497&set=pcb.3121748278088084
Cleaned URL looks like this: https://www.facebook.com/photo/?fbid=3121744148088497 Cleaned url always looks like this: http://www.newegg.com/Product/Product.aspx?Item=[item-id] Cleaned url always looks like this: http://www.ebay.com/itm/[item-id]
Works with international sites (not just .com) Removes redirection of Pocket links Target product URLs must be reloaded when coming from search results as they load in via code and not a page refresh
Cleaned url always looks like this: https://www.target.com/p/A-[item-id]
Removes unnecessary parameters Removes unnecessary parameters from, Twitter, StaticICE, Disqus
Removes redirection of links
This script forked from beck's script. https://greasyfork.org/en/scripts/395298-general-url-cleaner
[Fix] Google Takeout downloads, added takeout.google.com to the exclusions: https://greasyfork.org/en/scripts/395298-general-url-cleaner/discussions/95974
[Fix] Resolved issue with Google search parameter sa, without it certain search links aren't able to redirect properly: https://greasyfork.org/en/scripts/395298-general-url-cleaner/discussions/95974
[Add] Strip s parameter from Twitter post links: https://greasyfork.org/en/scripts/395298-general-url-cleaner/discussions/71892
[Fix] Opening images from normal Google search now expands the selected image: https://greasyfork.org/en/scripts/395298-general-url-cleaner/discussions/87398