Getting those pesky URL parameters out of your diffs.

Ever wanted to point to a diff or a permalink in an edit summary but can't because the URLs look like this and can't be linked: /w/index.php?title=Main_Page&diff=864711889&oldid=864629150&diffmode=source?

Fret not! With this script, all diffs and permalink URLs will be converted into a beautiful, copy-pastable, and linkable form like this: Special:Diff/864711889.

Installation

edit
Method 1

Get ScriptInstaller, then navigate to User:Þjarkur/CleanDiffURLs.js and click "Install" at the top.

Method 2

(This can be used on any-language Wikipedia.)

  1. Place {{subst:lusc|1=User:Þjarkur/CleanDiffURLs.js}} on the bottom of your common.js page or your skin.js page.
  2. Press "Publish Changes"
Method 3

(This can only be used on the English Wikipedia.)

  1. Place {{subst:iusc|1=User:Þjarkur/CleanDiffURLs.js}} on the bottom of your common.js page or your skin.js page.
  2. Press "Publish Changes"