Bruger:Jan Friberg/modern.js
Udseende
Bemærk, efter at have gemt, er du almindeligvis nødt til at tømme din browsers cache for at kunne se ændringerne.
Mozilla/Firefox/Safari/Konqueror: Hold shifttasten nede og klik på reload eller tryk på ctrl-shift-r
Internet Explorer: Ctrl-F5
Opera: F5
Safari til Mac: ⌥⌘E
Mozilla/Firefox/Safari/Konqueror: Hold shifttasten nede og klik på reload eller tryk på ctrl-shift-r
Internet Explorer: Ctrl-F5
Opera: F5
Safari til Mac: ⌥⌘E
// oversætelser
document.write('<script type="text/javascript" src="'
+ 'http://da.wikipedia.org/w/index.php?title=Bruger:Barklund/strings-da.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[User:Lupin/popupsdev.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popupsdev.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
popupAdminLinks=true;
//sidebar
// If you should need help, ask [[wikt:de:User:Melancholie]]!
function $(ID) {return document.getElementById(ID);}
url = document.URL;
barnStar = "http://upload.wikimedia.org/wikipedia/commons/a/a2/Tireless_Contributor_Barnstar.gif";
alertSidebarBug = 0; // switch for user scripts
// Cache flusher for [[MediaWiki:Sidebar]], see [[MediaZilla:5092]]!
function flushSidebar() {
var groupArray = '#'+wgUserGroups;
if (alertSidebarBug > 0 && groupArray.indexOf("sysop") > 0 && (!$("n-verzeichnisse") && $("n-sitesupport")) || (wgDBname == "dawikipedia" && !$("p-contribution"))) {
$("p-navigation").getElementsByTagName("div")[0].innerHTML = '<div style="color: darkred; font-weight: bold; padding: 10px 0 9px 5px;">Die Seitenleiste ist auf die Vorgabeversion zurückgefallen!<a href="/wiki/MediaWiki:Sidebar?action=edit&flushSidebar=1&returnto='+wgPageName+'" style="display: block; height: 120px; margin: 0 0 4px -8px;"><img src="'+barnStar+'" alt="" \/><\/a>Bitte sofort <a href="/wiki/MediaWiki:Sidebar?action=edit&flushSidebar=1&returnto='+wgPageName+'"><u>aktualisieren<\/u>!<\/a><\/div>';
}
}
$(flushSidebar);
// autoSave for cache breaking
if (url.indexOf("flushSidebar=1") > 0) {
document.write('<style type="text/css">body {background: #f9f9f9 url('+barnStar+') center 200px no-repeat;} #globalWrapper {display: none; speak: none;}<\/style>');
function autoSave() {
var editForm = document.editform.wpTextbox1;
window.name = location.search; // not cookie, not referrer ;-)
document.editform.submit();
}
addOnloadHook(autoSave);
}
// autoReturn
if (window.name.indexOf("flushSidebar=1") > 0 && wgAction == "view") {
var returnTo = window.name.replace(/^.+returnto=(.+)$/, "$1");
window.name = "";
location.href = "/wiki/"+returnTo+"?flushSidebar=done";
}
// autoTally
if (url.indexOf("flushSidebar=done") > 0) {
function bugTally() {
var tallyComment = encodeURI("Empty sidebar edit by User:"+wgUserName+" on "+wgDBname+".");
$("globalWrapper").innerHTML += '<iframe src="http://tools.wikimedia.de/~daveross/feedback.php?mode=submit&lang=bugzilla&wiki=wikimedia&page=5092&comment='+tallyComment+'" style="display: none;"><\/iframe>';
}
addOnloadHook(bugTally);
}
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Blue-Haired_Lawyer/footnote_popups.js&action=raw&ctype=text/javascript");