Talk:Versions: Difference between revisions

From DDraceNetwork
No edit summary
update script to not need jquery
 
Line 1: Line 1:
I generated this page using this js script after loading jquery to the browser console:
I generated this page using this js script on browser console:


<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
var versions = $("h3").text().replace("Other Downloads", "").split("DDNet ").slice(1);
var versions = Array.from(document.querySelectorAll("h3")).map(h => h.textContent).filter(x => x !== "");


var changelogs = $('div.dlinfo > ul').map(function(){
var changelogs = Array.from(document.querySelectorAll("div.dlinfo > ul")).map(x => x.outerHTML);
              return $(this).prop('outerHTML');
            }).get();


var result = "";
var result = "";

Latest revision as of 06:40, 1 April 2022

I generated this page using this js script on browser console:

var versions = Array.from(document.querySelectorAll("h3")).map(h => h.textContent).filter(x => x !== "");

var changelogs = Array.from(document.querySelectorAll("div.dlinfo > ul")).map(x => x.outerHTML);

var result = "";
var i = 0;
for(var c of changelogs) {
	result += "\n== Version: " + versions[i] + " ==\n";
	result += c
	result += "\n";
	i++;
}
console.log(result);
copy(result);

Ryozuki (talk) 14:39, 1 March 2021 (CET)