Talk:Versions: Difference between revisions

From DDraceNetwork
Created page with "I generated this page using this js script after loading jquery to the browser console: <syntaxhighlight lang="javascript" line='line'> let versions = $("h3").text().replace(..."
 
upd script
Line 2: Line 2:


<syntaxhighlight lang="javascript" line='line'>
<syntaxhighlight lang="javascript" line='line'>
let versions = $("h3").text().replace("Other Downloads", "").split("DDNet ").slice(1);
var versions = $("h3").text().replace("Other Downloads", "").split("DDNet ").slice(1);


let changelogs = $('div.dlinfo > ul').map(function(){
var changelogs = $('div.dlinfo > ul').map(function(){
               return $(this).prop('outerHTML');
               return $(this).prop('outerHTML');
             }).get();
             }).get();

Revision as of 21:54, 7 November 2021

I generated this page using this js script after loading jquery to the browser console:

var versions = $("h3").text().replace("Other Downloads", "").split("DDNet ").slice(1);

var changelogs = $('div.dlinfo > ul').map(function(){
               return $(this).prop('outerHTML');
            }).get();

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)