Участник:Abiyoyo/ShowCurId.js

function ShowCurId() {
	var ListItem = document.createElement("li");
	var LinkItem = document.createElement("a");
	
	var ptList = document.getElementById("p-coll-print_export").getElementsByTagName("ul")[0];
	
	LinkItem.setAttribute("href", mw.config.get('wgServer')+'/?curid='+mw.config.get('wgArticleId'));
	LinkItem.innerHTML='Краткая ссылка';
	
	ListItem.appendChild(LinkItem);
	ListItem.setAttribute("id", "shorturl");
	
	ptList.appendChild(ListItem);
}

jQuery(ShowCurId);
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya