aboutsummaryrefslogtreecommitdiffstats
path: root/wacca
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-21 01:26:05 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-21 01:26:05 -0800
commitcbacc1cd7924c558c27c89ab0b6723dc73d0db08 (patch)
tree1daea8aee6e5f221c457459abb5f8e6f365635d3 /wacca
parent579056de198595979ae2cf692a32d0456353764f (diff)
remove old tachi_to_tachi userscripts (use universal)
Diffstat (limited to 'wacca')
-rw-r--r--wacca/tachi/README.md1
-rw-r--r--wacca/tachi/tachi_to_tachi_pb.js76
-rw-r--r--wacca/tachi/tachi_to_tachi_session.js0
3 files changed, 0 insertions, 77 deletions
diff --git a/wacca/tachi/README.md b/wacca/tachi/README.md
deleted file mode 100644
index bc1c4c2..0000000
--- a/wacca/tachi/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Not Maintained. Use the universal script for sessions
diff --git a/wacca/tachi/tachi_to_tachi_pb.js b/wacca/tachi/tachi_to_tachi_pb.js
deleted file mode 100644
index 286bbfe..0000000
--- a/wacca/tachi/tachi_to_tachi_pb.js
+++ /dev/null
@@ -1,76 +0,0 @@
-javascript:(function(){
- var rows = document.querySelectorAll("table tbody tr"),
- songs = [];
- rows.forEach(function(row) {
- var songAnchor = row.querySelector("td:nth-child(4) a");
- if (!songAnchor) return;
- var cells = row.cells;
- var chartDiv = cells[1].querySelector("div.d-none.d-lg-block"),
- chart = chartDiv ? chartDiv.textContent.trim() : cells[1].textContent.trim();
- var songTitle = "", artist = "";
- if (songAnchor) {
- var parts = songAnchor.innerHTML.split("<br>");
- if (parts.length >= 2) {
- var temp = document.createElement("div");
- temp.innerHTML = parts[0];
- songTitle = temp.textContent.trim();
- temp.innerHTML = parts[1];
- artist = temp.textContent.trim();
- } else {
- songTitle = songAnchor.textContent.trim();
- }
- }
-
- var scoreCell = cells[5],
- scoreText = scoreCell.textContent.replace((scoreCell.querySelector("strong") || {}).textContent.trim() || "", "").trim(),
- scorePoints = parseInt(scoreText.replace(/,/g, ""));
-
- var judgementText = cells[6].textContent.trim(),
- judgements = judgementText.split("-").map(function(item) {
- return parseInt(item.trim());
- });
-
- var lamp = cells[7].textContent.trim();
-
- var timeCell = cells[10];
- var timeString = timeCell ? timeCell.querySelector("small")?.textContent?.trim() : null;
- var timeUnix = timeString ? new Date(timeString).getTime() : null;
-
- songs.push({
- difficulty: chart.split(" ")[0],
- matchType: "songTitle",
- identifier: songTitle,
- artist: artist,
- score: scorePoints,
- judgements: {
- marvelous: judgements[0],
- great: judgements[1],
- good: judgements[2],
- miss: judgements[3]
- },
- lamp: lamp,
- timeAchieved: timeUnix
- });
- });
-
- const results = {
- meta: {
- game: "wacca",
- playtype: "Single",
- service: "Tachi to Tachi PB Export"
- },
- scores: songs
- };
-
- var json = JSON.stringify(results, null, 2),
- blob = new Blob([json], { type: "application/json" }),
- url = URL.createObjectURL(blob),
- a = document.createElement("a");
- a.setAttribute("download", "songs.json");
- a.setAttribute("href", url);
- a.style.display = "none";
- document.body.appendChild(a);
- a.click();
- document.body.removeChild(a);
- URL.revokeObjectURL(url);
-})();
diff --git a/wacca/tachi/tachi_to_tachi_session.js b/wacca/tachi/tachi_to_tachi_session.js
deleted file mode 100644
index e69de29..0000000
--- a/wacca/tachi/tachi_to_tachi_session.js
+++ /dev/null
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage