Jump to content

User:Leyo/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Leyo (talk | contribs) at 20:33, 19 December 2010 (+1). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Bilder mittels File Upload Bot nach Commons transferieren
 if (wgNamespaceNumber == 6) addOnloadHook(function () {
    var url = "http://toolserver.org/~magnus/commonshelper.php?language=en&project=wikipedia&commonsense=1&remove_categories=1&tusc_user=Leyo&reallydirectupload=1&image=" + encodeURIComponent(wgTitle);
    addPortletLink("p-cactions", url, "→C", "ca-tocommons", "Nach Commons verschieben");
 });

// Frühere Einbindung eines Bildes anhand nachfolgender Edits des Uploaders erraten
 if (wgNamespaceNumber == 6) addOnloadHook(function () {
    var url = "http://toolserver.org/~revolus/afterUpload/?lang=en&project=en.wikipedia.org&image=" + encodeURIComponent(wgTitle);
    addPortletLink("p-cactions", url, "?", "ca-afterupload", "Frühere Verwendung erraten");
 });

// TemplateTiger-Parameterauswertung
 if (wgNamespaceNumber == 10) addOnloadHook(function () {
    var url = "http://toolserver.org/~kolossos/templatetiger/template-parameter.php?lang=enwiki&template=" + encodeURIComponent(wgTitle);
    addPortletLink("p-cactions", url, "P", "ca-parameter", "TemplateTiger-Parameterauswertung");
 });

// Anzahl Beobachter
 addOnloadHook(function () {
    var url = "http://toolserver.org/~mzmcbride/cgi-bin/watcher.py?db=enwiki_p&titles=" + wgPageName;
    addPortletLink("p-cactions", url, "ºº", "ca-watchers", "Anzahl Beobachter");
 });

// WikEd-Diff
 importScriptURI("http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js"+ "&action=raw&ctype=text/javascript");

// Benutzernamen-Tab umbenennen
 addOnloadHook( function() {
  document.getElementById('pt-userpage').getElementsByTagName('a')[0].innerHTML = 'B.S.';
 });

// Datei löschen: F8
 if (wgNamespaceNumber == 6) addOnloadHook(function () {
    var url = "http://commons.wikimedia.org/w/index.php?action=delete&wpReason=[[WP:CSD#F8|F8]]:+Media+file+available+on+Commons&title=File:" + wgPageName;
    addPortletLink("p-cactions", url, "F8", "ca-deletecommons", "Nach Commons verschobene Datei löschen");
 });