MediaWiki:Common.js:修订间差异

来自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...."
 
无编辑摘要
第7行: 第7行:
a.target="_blank";
a.target="_blank";
a.rel = "noindex nofollow";
a.rel = "noindex nofollow";
var img = document.createElement('img');
img.src = "https://forum.ymirheim.org/uploads/default/original/2X/1/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);
}
}
})();
})();

2022年5月12日 (四) 18:43的版本

/* 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.createElement('a');
		a.href="https://supportukrainenow.org/";
		a.target="_blank";
		a.rel = "noindex nofollow";
		var img = document.createElement('img');
		img.src = "https://forum.ymirheim.org/uploads/default/original/2X/1/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);
	}
})();