MediaWiki:Common.js: diferenças entre revisões

Fonte: Ymirheim Wiki
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: (function(){ var doc = document.getElementById('mw-content-block'); if (doc) { var a = document....")
 
mSem resumo de edição
 
(Há 3 edições intermédias do mesmo utilizador que não estão a ser apresentadas)
Linha 1: Linha 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
(function(){
(function(){
var doc = document.getElementById('mw-content-block');
var doc = document.getElementById('mw-content-wrapper');
if (doc) {
if (doc) {
doc.style = 'padding-top: 48px;';
var a = document.createElement('a');
var a = document.createElement('a');
a.href="https://supportukrainenow.org/";
a.href="https://supportukrainenow.org/";
a.target="_blank";
a.target="_blank";
a.rel = "noindex nofollow";
a.rel = "noindex nofollow";
a.style = 'display: block; margin: 20px 0;';
var img = document.createElement('img');
img.src = "https://ymirheim.org/files/images/19ee4f9fe1e6a0c3286d40c55f5c80465fadad01.png";
img.style = 'width: 100%; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);';
img.alt = "";
a.append(img);
doc.insertBefore(a, doc.firstChild);
doc.insertBefore(a, doc.firstChild);
}
}
})();
})();

Edição atual desde as 15h09min de 25 de maio de 2022

/* Any JavaScript here will be loaded for all users on every page load. */
(function(){
	var doc = document.getElementById('mw-content-wrapper');
	if (doc) {
		doc.style = 'padding-top: 48px;';
		var a = document.createElement('a');
		a.href="https://supportukrainenow.org/";
		a.target="_blank";
		a.rel = "noindex nofollow";
		a.style = 'display: block; margin: 20px 0;';
		var img = document.createElement('img');
		img.src = "https://ymirheim.org/files/images/19ee4f9fe1e6a0c3286d40c55f5c80465fadad01.png";
		img.style = 'width: 100%; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);';
		img.alt = "";
		a.append(img);
		doc.insertBefore(a, doc.firstChild);
	}
})();