Script Summary: Removes some annoying extra parameters from YouTube video links.
This script is originally based on 3ICE's Youtube Link Optimizer / Cleaner / Shortener / Tracking Remover but has been greatly modified based on the suggestions by ranch2thedressing from this thread. The script "cleans" parameters from YouTube video URLs that one may find disturbing. In particular, it
- deletes the parameters feature, aq, blend, suggested_categories, lclk, gclid, kw, eurl, context, annotation_id and src_vid,
- deletes the parameter nr if its value is 1 (position in playlists) and
- replaces YouTube redirection links with a direct link to the redirection's target.
It modifies YouTube links on all pages, not only on YouTube.
New in version 1.3: Fixed Chrome support.
New in version 1.4: Added @include rules for Greasemonkey (not sure if necessary).
New in version 1.5: Parameters gclid and kw are deleted (related to AdWords); param nr is deleted if its value is 1.
New in version 1.6: Removed @include again since Greasemonkey supports @match now.
New in version 1.7: Run at document-start to avoid visible page reloads. Delete parameter eurl.
New in version 1.8: Parameter context from new YouTube design is now deleted.
New in version 1.9: Parameters annotation_id and src_vid are deleted.
New in version 1.10: Fixed really stupid bug that could (and did!) break some websites.