/*
* WatchReload
* Läd die Beobachtungsliste automatisch alle 15 Minuten neu
*/
function watchReload() {
var titel = document.getElementsByTagName('h1');
var Artikel_Name = encodeURIComponent(titel.firstChild.data);
if (Artikel_Name=="Beobachtungsliste") {window.setTimeout('location.reload()', 900000);}
}
// onload
$(watchReload);
/*
* addGoogleLinks
* Fügt drei Links zur Googlesuchen zum Artikeltitel neben denselben hinzu.
* Original by Michael Kümmling
* Modified by FGodard
*/
function addGoogleLinks() {
if (document.getElementsByTagName('body').attributes.nodeValue.indexOf("ns-0")!=-1) { //Nur ANR
var Heading = document.getElementsByTagName('h1');
var Artikel_Name = encodeURIComponent(Heading.firstChild.data);
var GoogleLinksSpan = document.createElement("span");
GoogleLinksSpan.setAttribute("style", "font-size:10pt; font-weight:normal;");
Heading.appendChild(GoogleLinksSpan);
var GoogleLinksText= document.createTextNode(" ");
GoogleLinksSpan.appendChild(GoogleLinksText);
function linkerzeugen(url,linktext) {
var GoogleLinksT = document.createTextNode(" | ");
GoogleLinksSpan.appendChild(GoogleLinksT);
var GoogleLinks = document.createElement("a");
GoogleLinks.setAttribute("href", url+Artikel_Name);
GoogleLinks.setAttribute("target", "_blank");
var GoogleLinksT = document.createTextNode(linktext);
GoogleLinks.appendChild(GoogleLinksT);
GoogleLinksSpan.appendChild(GoogleLinks);
}
linkerzeugen("http://www.google.com/search?hl=de&q=","Google");
linkerzeugen("http://images.google.com/images?hl=de&q=","Images");
linkerzeugen("http://maps.google.com/?hl=de&q=","Maps");
}
}
// onload
$(addGoogleLinks);
/*
* addContributeLinks
* Ergänzt ein paar Links im Mitmachen-Linkbereich.
*/
function addContributeLinks() {
var contribiuteUl = document.getElementById("p-tb").getElementsByTagName("ul");
var linksPrefix = "http://de.wikipedia.orghttps://wiki95.com/de/";
var links = new Array();
links = new Array(2);
links = "Freiburg im Breisgau";
links = "Freiburg";
links = new Array(2);
links = "Albert-Ludwigs-Universität Freiburg";
links = "Uni";
links = new Array(2);
links = "Wikipedia:QSH";
links = "Qualitätssicherung";
links = new Array(2);
links = "Wikipedia:Löschkandidaten";
links = "Löschkandidaten";
links = new Array(2);
links = "WP:T/FR";
links = "Stammtisch FR";
links = new Array(2);
links = "Wikipedia:Freiburg im Breisgau/FReview";
links = "FRreview";
links = new Array(2);
links = "Javascript:OKHide()";
links = "OKHide";
links = new Array(2);
links = "Wikipedia:Auskunft";
links = "Auskunft";
links = new Array(2);
links = "Wikipedia:Fragen zur Wikipedia";
links = "Fragen zur Wikipedia";
links = new Array(2);
links = "#";
links = "Top";
linksLength = links.length;
for (var i=0; i < linksLength; ++i) {
var li = document.createElement("li");
li.style.whiteSpace = "nowrap";
contribiuteUl.appendChild(li);
var a = document.createElement("a");
if ((i!=6) && (i!=9)) a.setAttribute("href", linksPrefix+links);
else a.setAttribute("href", links);
a.setAttribute("title", links);
li.appendChild(a);
var aText = document.createTextNode(links);
a.appendChild(aText);
}
}
// onload
$(addContributeLinks);
if(wgCanonicalSpecialPageName=="Booksources")
{
isbn = document.getElementById("isbn").value;
insert_link_before("DIV", "isbn_wo", '<a href="http://www.ub.uni-freiburg.de/xopac/wwwolix.cgi?field1=sb&db=ubfr&quicksearch=1&name1=' + isbn + '">Universitätsbibliothek Freiburg</a><br /><a href="http://katalog.stadtbibliothek.freiburg.de/webOPACClient/start.do?BaseURL=this&Login=extern&qp=&Query=540+%3D+' + isbn + '">Stadtbibliothek Freiburg</a>');
}
// http://de.wikipedia.orghttps://wiki95.com/de/Benutzer:FGodard/OKHide
document.write('<script type="text/javascript" src="'
+ 'http://de.wikipedia.org/w/index.php?title=Benutzer:FGodard/okhide.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');