Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
  • Opera: Strg+F5
/* this script is http://www.jshint.com/ valid! */
/*global $:false, mw:false, duepTabsNachGanzLinks:false */
/*jshint scripturl:true*/
if (mw.config.get("wgNamespaceNumber") === 6) { //only on file pages
  if (typeof (duepTabsNachGanzLinks) === "boolean") {
    window.duepTabsNachGanzLinks = duepTabsNachGanzLinks; // legacy parameter conversion
  }

  $(document).ready(function () {
    'use strict';

    // init parameters
    if (typeof (window.duepTabsNachGanzLinks) !== "boolean") {
      window.duepTabsNachGanzLinks = false; //standardsetting to false and make it a boolean
    }
    if (typeof (window.duepLinksInToolbox) !== "boolean") {
      window.duepLinksInToolbox = false; //standardsetting to false and make it a boolean
    }
    if (typeof (window.linkShortcut) !== "string") {
      window.linkShortcut = ""; //standardsetting no shortcut
    }

    //let the action start:
    mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Ireas/d%C3%BCp-helperfunctions-monobook.js&action=raw&ctype=text/javascript"); // load helper functions - should be pushed into the main script TODO
    var targetContainer = "";
    var label = "";
    var linkID = "";
    if (window.duepLinksInToolbox) {
      targetContainer = "p-tb";
      label = "Dateiüberprüfung";
      linkID = "t-Duepsetzen";
    } else {
      targetContainer = "p-cactions";
      label = "DÜP";
      linkID = "ca-Duepsetzen";
    }
    mw.util.addPortletLink(targetContainer, 'javascript:mw.loader.load("//de.wikipedia.org/w/index.php?title=Benutzer:Ireas/d%C3%BCp-setzen-monobook/main.js&action=raw&ctype=text/javascript");', label, linkID, '', window.linkShortcut);

    if (window.duepTabsNachGanzLinks) { // if duepTabsNachGanzLinks is set to "true" ...
      ($("#ca-Duepsetzen").parent()).prepend($('#ca-Duepsetzen')); //move to front
    }
  });
}