Misplaced Pages

User:Þjarkur/CleanDiffURLs

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Þjarkur
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: /search/?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

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 Misplaced Pages.)

  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 Misplaced Pages.)

  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"
Category:
User:Þjarkur/CleanDiffURLs Add topic