Userscript that puts lines from "Hello, Dolly!" in the top bar of Tangled.

remove extra debug logging

+1 -2
+1 -2
hello.user.js
··· 5 // @downloadURL https://tangled.org/did:plc:jlplwn5pi4dqrls7i6dx2me7/hello-dolly/raw/main/hello.user.js 6 // @match *://tangled.org/* 7 // @match *://tangled.sh/* 8 - // @version 1.0 9 // ==/UserScript== 10 11 function hello_dolly_get_lyric() { ··· 41 // Here we split it into lines. 42 const lines = lyrics.split("\n"); 43 44 - console.log(lines); 45 // And then randomly choose a line. 46 return lines[Math.max(0, Math.round((Math.random()*lines.length) - 1))]; 47 }
··· 5 // @downloadURL https://tangled.org/did:plc:jlplwn5pi4dqrls7i6dx2me7/hello-dolly/raw/main/hello.user.js 6 // @match *://tangled.org/* 7 // @match *://tangled.sh/* 8 + // @version 1.1 9 // ==/UserScript== 10 11 function hello_dolly_get_lyric() { ··· 41 // Here we split it into lines. 42 const lines = lyrics.split("\n"); 43 44 // And then randomly choose a line. 45 return lines[Math.max(0, Math.round((Math.random()*lines.length) - 1))]; 46 }