User:DerHexer/revisionjumper

Source: Wikipedia, the free encyclopedia.


Short description

Using this script allows you to easily navigate diffs, articles' histories and articles themselves. A feature-rich drop down menu offers various functions to jump to a certain revision which is situated before or after the selected revision. Besides default parameters, configurable requests can be done. Further, the default setting can be personalized.

How can I use that script?

Activation of the gadget

With default setting as a gadget

With individual setting in your skin

To activate your script with all functions simply add following lines to your monobook or vector skin:

// Module: revisionjumper.js Allows to jump between diffs and permanent links
mw.loader.load('//de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-revisionjumper.js&action=raw&ctype=text/javascript'); // [[MediaWiki:Gadget-revisionjumper.js]]

The script can now be used without further changes. Who wants to adjust display and functions of the script can do that with the actions mentioned below. After having saved the changes clear the cache of your current browser: For Internet Explorer hold down the Ctrl key and click the Refresh or Reload button. For Firefox hold down the Shift key while clicking Reload (or press Ctrl-Shift-R). Konqueror and Safari users can just click the Reload button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.

Kjjbj

Where are those functions available?

The functions are not only available in diffs but also in permanent links. In both cases a diff from the selected to the calculated revision will be opened. Who wants to jump inbetween permanent links so that no diff but permanent links are shown can add following lines to his/her monobook resp. vector skin:

var getoldid = true;
Individual addition of the script in articles' histories

This technique can also be switched on in articles' histories where a diff between the upper and the calculated revision will be opened. Thereto following lines have to be added to your monobook or vector skin:

var displayonhistory = true;


Individual addition of the script in the usual article view

The functions can also be switched on in the usual article view. Thereto following lines have to be added to your monobook or vector skin:

var displayonview = true;

Whether a diff or a permanent link will opened while jumping from the selected to an older or newer revision also depends the addition of var getoldid = true; as described above.

Functions in permanent links

Generally all functions are only displayed when that's useful to do. However, who wants to disable them in diffs resp. permanent links can customize that. To disable those functions in permanent links following lines have to be added to your monobook or vector skin:

var disabledisplayonpermalink = true;


Functions in diffs

To disable those functions in diffs following lines have to be added to your monobook or vector skin:

var disabledisplayondiff = true;

Function: ← next-to-last editor

This function initiates a diff between all changes of the last user. They are only shown if the current diff shows on both sides the same user and there's not only one author. To disable this function following lines have to be added to your monobook or vector skin:

var disablepenultimateeditor = true;
  • revision before clicking
    revision before clicking
  • revision after having clicked
    revision after having clicked

Function: ← changes since my last edit →

This function initiates a diff between my last edit in that given article and the current revision. They are only shown if you're not the only or last editor. To disable this function following lines have to be added to your monobook or vector skin:

var disablechangessincemylastedit = true;
  • revision before clicking
    revision before clicking
  • revision after having clicked
    revision after having clicked

My question was not answered here!

So please write your question onto the talk page.

Changelog

  • 0.0.1–<1.0.0: Development partially here and there.
  • 1.0.0: first stable version
  • 1.0.1: first fix for IE
  • 1.1.0: functions only shown when useful; another button to show all changes since one's last own edit; for action=history enabled
  • 1.1.1: each function can be switched on or off; diffs and permanant links are default, articles' histories and usual article view addable
  • 1.1.2: the script can now globally be included by document.write('<script type="text/javascript" src="'+wgServer+wgScriptPath+'/index.php?title=MediaWiki:Gadget-revisionjumper.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); The texts can be localized on de:MediaWiki:Gadget-revisionjumper-config.js.
  • 1.2.0: another link shows the diff of candidates of
    dewiki's 11th writing contest
    from 2009-09-01 00:00 UTC+2 until 2009-09-30 24:00 UTC+2
  • 1.2.1: script now useable on secure
  • 1.2.2: fix for the writing contest
  • 1.2.3: writing contest removed
  • 1.2.3: fix for secure
  • 1.2.4: fix for secure
  • 1.2.4: fix for https
  • 1.2.5 fix for Google Chrome
  • 1.2.6 fix for IPv6
  • 1.2.7 another fix for IPv6 and encoding