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(...")
 
(update script to not need jquery)
 
(2 intermediate revisions by the same user not shown)
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" line='line'>
<syntaxhighlight lang="javascript">
let versions = $("h3").text().replace("Other Downloads", "").split("DDNet ").slice(1);
var versions = Array.from(document.querySelectorAll("h3")).map(h => h.textContent).filter(x => x !== "");


let 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)