QuickDiff lets you quickly view (hopefully) any diff link on a wiki, whether on Recent Changes, Wiki Activity, history pages, the diff view itself, or elsewhere.
Note this will only work for links to the same wiki you're currently on (for example, a diff link on a page at community.wikia.com for a page at dev.wikia.com will load normally, rather than in QuickDiff).
QuickDiff was originally based on the 'DiffAnchored' script, written by Gguigui1, though it has since completely diverged. If you notice any issues or would like to give feedback, leave a message on the talk page.
Usage
- Importing multiple scripts? This quick guide shows how to combine the imports.
- For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:QuickDiff/code.js
- For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:QuickDiff/code.js',
]
});
Translations
If you can contribute a translation, it'd be very much appreciated!
If you are familiar with JavaScript syntax, feel free to add a translation to the code directly by copying an existing language object and translating the strings. If not, you can copy the text in the box below and leave a message on the talk page with your new translation.
error : Something went wrong while getting the page at “%url”. link : open link loading : Loading… title : Changes: %pagename
The default English translations (with usage notes) are below:
- error
- English: Something went wrong while getting the page at “%url”.
- Shown if the diff content could not be loaded.
%url
is replaced with the URL of the page that failed to load. - link
- English: open link
- Label for button that opens a link to the displayed diff in a new tab.
- loading
- English: Loading…
- Used as the title of the modal window while the diff content is being loaded.
- title
- English: Changes: %pagename
- Used as the title of the modal window.
%pagename
is replaced with the title of the page that the viewed diff represents.