User:Flominator/monobook.js

importScript('User:Magnus Manske/add_fist_links.js');

document.addEventListener("DOMContentLoaded", function {

insert_link_before("LI", "t-recentchangeslinked", 'WikiBlame');

if(mw.config.get('wgCanonicalNamespace')=="Image") {   if(!document.getElementById('shared-image-desc')) //local image {    insert_link_before("LI", "n-mainpage", 'auf Commons'); } } }, false);

//Insert any tag before any element with an id function insert_link_before(tagname, previous_element, linkcode) { 	var vl_logout = document.getElementById(previous_element); if (vl_logout) { 		var ins_li = document.createElement(tagname); ins_li.innerHTML=/* */linkcode;/* */ vl_logout.parentNode.insertBefore(ins_li, vl_logout); } }