14 lines
371 B
JavaScript
14 lines
371 B
JavaScript
(function() {
|
|
"use strict";
|
|
document.querySelectorAll("#apidoc td:first-child").forEach(el => {
|
|
var text = el.textContent;
|
|
if (text.startsWith("love")) {
|
|
el.textContent = "";
|
|
var link = document.createElement("a");
|
|
link.href = "https://love2d.org/wiki/"+text.replace(".handlers.", ".");
|
|
link.textContent = text;
|
|
el.appendChild(link);
|
|
};
|
|
});
|
|
})();
|