General URL Cleaner

Cleans URL's from various popular sites.

These are versions of this script where the code was updated. Show all versions.

  • v3.3 2020-03-24 Exclude hangouts
  • v3.3 2020-03-24 Clean more ebay parameters
  • v3.2 2020-01-12
  • v3.2 2020-01-12 Fixed more ebay issues
  • v3.2 2020-01-12 Fixed more ebay issues
  • v3.1.1 2020-01-12 Fixed ebay issue
  • v3.1 2020-01-12 Fixed a bunch of things
  • v3.0 2019-12-29 Simplified and cleaned
  • v2.12.3 2018-04-13
  • v2.12.2 2018-02-24 Added IMDB https support
  • v2.12.1 2017-09-14 Google search: delete dcr parameter
  • v2.12 2017-09-13 fixed imdb cleaning
  • v2.12 2017-09-13 added disqus support
  • v2.11 2017-08-01 Google image search improvements
  • v2.10.3 2017-08-01
  • v2.10.2 2017-08-01 google image search outgoing links fixed
  • v2.10.1 2017-08-01
  • v2.10 2017-07-28
  • v2.9 2017-01-19 Added support for facebook, twitter, staticice
  • v2.8.3 2017-01-16 Fixed Amazon Look Inside for Firefox
  • v2.8.2 2016-09-22 Fixed script name
  • v2.8.1 2016-09-21 fixed google regex
  • v2.8 2016-09-21 Fixed newegg, added hash deleter
  • v2.7.4 2016-09-09 fixed ebay "view original listing"
  • v2.7.3 2016-09-08 fixed tld matching
  • v2.7.2 2016-09-06 Fixed parameter cleaning to not accidentally delete hashes
  • v2.7.1 2016-08-30 Bug fixes
  • v2.7 2016-08-30 Improved google instant handling
  • v2.6.2 2016-08-29 fixed issue where it wouldn't run on some google instant searches
  • v2.6.1 2016-08-29 Performance improvements
  • v2.6 2016-08-29 Performance improvements
  • v2.5 2016-08-23 Added IMDB support, general optimisations
  • v2.4.1 2016-08-22 Catch errors where href attribute doesn't exist
  • v2.4 2016-08-02 Now only cleans links when the number of links has increased
  • v2.3 2016-07-19
  • v2.2.9 2016-07-18
  • v2.2.9 2016-07-18 Went overkill adding safeguards against infinite loops, because I can't see why they should even be happening at all.
  • v2.2.8 2016-06-29 Fixed ebay, and now using the most standard for loop available.
  • v2.2.7 2016-06-08
  • v2.2.6 2016-06-08
  • v2.2.5 2016-06-06 Ebay, amazon and newegg are now http/https agnostic
  • v2.2.4 2016-06-04 Properly fixed amazon
  • v2.2.3.1 2016-06-01 added https support for Amazon
  • v2.2.3 2016-06-01 Improved performance
  • v2.2.2.2 2016-05-25 fixed google search parameters regex
  • v2.2.2.0 2016-05-25
  • v2.2.1.0 2016-05-25 removed a debugging statement
  • v2.2.1.0 2016-05-25 Fixed Google Instant cleaning not working in Chrome
  • v2.2.0.0 2016-05-24 Google now uses history.pushState, so onhashchange no-longer works. But there is no onpushstate trigger available, so we monitor the search input box (id:'lst-ib') for changes instead.
  • v2.1.0.0 2016-05-19
  • v2.1.0 2016-05-19 Deleted "test" from title
  • v2.1 2016-05-19 Improved mutationobserver behavior to not clean links multiple times, and reduced size of script.
  • v2.0.4.14 2016-05-18 fixed google hangouts links
  • v2.0.4.13 2016-04-09 Allows some ebay hash links for things like shipping, etc
  • v2.0.4.12 2015-09-23 fixed case where ebay link cleaning didn't run
  • v2.0.4.11 2015-09-09 Discovered that Google search results redirection can different based on user agent string. Modified regex to work with a number of different user agent strings.
  • v2.0.4.10 2015-09-08 Updated regex's
  • v2.0.4.9 2015-09-08 Google changed results redirection, fixed script so it keeps working
  • v2.0.4.8 2015-08-30 Improved youtube video url cleaning
  • v2.0.4.7 2015-08-29 Fixed: bing url cleaning only worked on https. Going from http to https requires a page reload, which history.replacestate doesn't do.
  • v2.0.4.6 2015-08-27 Added more link cleaning to youtube description links
  • v2.0.4.5 2015-08-26
  • v2.0.4.4 2015-08-26 Found easier way to check which links to disable redirection and SPF
  • v2.0.4.3 2015-08-26 Forgot to actually put in the youtubeClasses regex
  • v2.0.4.2 2015-08-25
  • v2.0.4.1 2015-08-25 Uses history.replaceState() instead of history.pushState, given that the old URL is not wanted.
  • v2.0.4.0 2015-08-25 Now uses history.pushState() instead of location.replace() so the page doesn't need to reload
  • v2.0.3.8 2015-08-24 Fixed issue with disabling SPF state
  • v2.0.3.7 2015-08-24 Now disables SPF on Youtube
  • v2.0.3.6 2015-08-24 Fixed amazon link cleaning on Google and Bing searches
  • v2.0.3.5 2015-08-24 Finally fixed youtube redirection links without breaking HTML5 player buttons
  • v2.0.3.4 2015-08-23 Fixed youtube link redirection cleaner not working in Chrome/Opera
  • v2.0.3.3 2015-08-23
  • v2.0.3.2 2015-08-23 Fixed issue causing youtube player controls to disappear
  • v2.0.3.1 2015-08-22
  • v2.0.3.1 2015-08-22
  • v2.0.3.0 2015-08-22 Really fixed youtube redirect links
  • v2.0.2.0 2015-08-22 Added newegg general link cleaning
  • v2.0.1.0 2015-08-22 Now uses mutationObserver instead of EventListener; Fixed amazon item cleaner; some other fixes.
  • v2.0.0.3 2015-08-22 Fixed incorrect youtube redirect variable name
  • v2.0.0.2 2015-08-21
  • v2.0.0.1 2015-08-21
  • v2.0.0.0 2015-08-21
  • v2.0.0.0 2015-08-21
  • v2.0 2015-08-21 Major rewrite, also removes "class" attribute from youtube redirect links.
  • v1.9.2.2 2015-08-12 Shortened ebay include rule just made greasyfork page messier
  • v1.9.2.3 2015-08-12 Shortened ebay include rule
  • v1.9.2.2 2015-08-12 Reduced number of lines required to match google tld's
  • v1.9.2.1 2015-08-12
  • v1.9.2.0 2015-08-12 Added support for youtube redirect URL
  • v1.9.1.3 2015-08-04 Cleaned up code a bit
  • v1.9.1.2 2015-07-16
  • v1.9.1.1 2015-07-14 Fixed image search redirect
  • v1.9.1.0 2015-07-03 Fixed amazon url cleaning
  • v1.9.0.10 2015-07-02
  • v1.9.0.10 2015-07-02
  • v1.9.0.10 2015-07-02
  • v1.9.0.10 2015-07-02
  • v1.9.0.10 2015-07-02
  • v1.9.0.10 2015-07-02
  • v1.9.0.9 2015-07-02
  • v1.9.0.8 2015-07-02
  • v1.9.0.7 2015-07-01
  • v1.9.0.6 2015-07-01 Fixed google tld regex
  • v1.9.0.5 2015-06-30
  • v1.9.0.4 2015-06-26
  • v1.9.0.3 2015-06-26 Restricted domains in case it breaks some sites
  • v1.9.0.2 2015-06-26 Implemented workaround for image redirection
  • v1.9.0.1 2015-06-01
  • v1.9.0 2015-06-01
  • v1.8.6 2015-05-30 Fixed accidentally removed cleaning of google search results redirection
  • v1.8.5 2015-05-30 Fixed captcha, cleaned code, added ebay search URL cleaning
  • v1.7.7 2015-05-29 Consolidation of stuff
  • v1.7.6 2015-05-29 Fixed google image search onhashchange
  • v1.7.5 2015-05-27