Benutzer:Ricardo02/monobook.js: Unterschied zwischen den Versionen

Aus ConanWiki
Zur Navigation springen Zur Suche springen
Inhalt hinzugefügt Inhalt gelöscht
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 15: Zeile 15:
 
var ul = document.createElement('ul');
 
var ul = document.createElement('ul');
 
var li = document.createElement('li');
 
var li = document.createElement('li');
var a = document.createElement('a');
 
 
var a = document.createElement('a');
 
var a = document.createElement('a');
 
a.href = "/wiki/DCW:TB";
 
a.href = "/wiki/DCW:TB";
 
a.appendChild(document.createTextNode('Bilder'));
 
a.appendChild(document.createTextNode('Bilder'));
li.appendChild(a);
+
li.appendChild(a);
 
var a = document.createElement('a');
  +
a.href = "/wiki/DetektivConan-Wiki Diskussion:Team Bilder";
  +
a.appendChild(document.createTextNode('a'));
  +
li.appendChild(a);
 
ul.appendChild(li);
 
ul.appendChild(li);
 
divi.appendChild(ul);
 
divi.appendChild(ul);

Version vom 29. April 2010, 18:41 Uhr

document.write('<script type="text/javascript" src="http://de.wikipedia.org/w/index.php?title='
     + 'MediaWiki:Gadget-Extra-Editbuttons.js&action=raw&ctype=text/javascript"><\/script>')
var rmEditButtons = [6,7,10]
customEditButtons = "A3,R1,T,H,K,J1,S"
var usersignature = '\~\~\~\~'

function addFastLinks() {
  var div = document.createElement('div');
    div.className = "generated-sidebar portlet";
    var h5 = document.createElement('h5');
      h5.appendChild(document.createTextNode('Schnelllinks'));
    div.appendChild(h5);
    var divi = document.createElement('div');
      divi.className = "pBody";
      var ul = document.createElement('ul');
        var li = document.createElement('li');
          var a = document.createElement('a');
            a.href = "/wiki/DCW:TB";
            a.appendChild(document.createTextNode('Bilder'));
          li.appendChild(a);
          var a = document.createElement('a');
            a.href = "/wiki/DetektivConan-Wiki Diskussion:Team Bilder";
            a.appendChild(document.createTextNode('a'));
          li.appendChild(a);
        ul.appendChild(li);
      divi.appendChild(ul);
    div.appendChild(divi);
  document.getElementById('column-one').insertBefore(div,document.getElementById('p-Navigation'));
}
addOnloadHook(addFastLinks);